/* Shared navigation: keep its fixed row height aligned with Explore's viewport.
   Pills in indigo ink, one secondary button for merchants and a coral event chip for the launch, matching the homepage controls. */
:root { --iw-header-height: 65px; }
.site-header {
    --nav-ink: #141838; --nav-text: #2f3557; --nav-muted: #6a7092; --nav-line: #e4e6f5; --nav-tint: #eef0fb; --nav-tint-strong: #e3e6f7; --nav-focus: #4f57d8;
    background: #ffffffe0; border-bottom: 1px solid var(--nav-line); box-shadow: none; backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
    transition: box-shadow .3s ease, background-color .3s ease;
}
/* Once the page moves, a soft shadow separates the bar from the content under it. */
.site-header.is-scrolled { background: #fffffff0; box-shadow: 0 10px 30px -18px #1c22664d; }
.site-header .navbar { height: 64px; min-height: 64px; padding: 0; }
.site-header .navbar > .container { height: 100%; gap: 20px; position: relative; }
.site-header .site-logo { margin: 0; padding: 0; flex-shrink: 0; }
.site-header .site-logo img { width: 124px; height: auto; }
.site-header .navbar-nav { gap: 4px; }
.site-header .nav-link {
    display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px !important; border: 1px solid transparent; border-radius: 999px;
    background: transparent; color: var(--nav-text); font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.4; white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s, transform .15s cubic-bezier(.2, .7, .2, 1);
}
.site-header .nav-link:hover, .site-header .nav-link.show { color: var(--nav-ink) !important; background: var(--nav-tint); }
.site-header .nav-link.show { background: var(--nav-tint-strong); }
/* A thin chevron replaces Bootstrap's triangle and turns over while its menu is open. */
.site-header .dropdown-toggle::after {
    width: 6px; height: 6px; margin: -3px 0 0 2px; border: 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    opacity: .6; flex-shrink: 0; transform: rotate(45deg); transition: transform .25s cubic-bezier(.2, .7, .2, 1), margin .25s;
}
.site-header .dropdown-toggle.show::after { margin-top: 3px; transform: rotate(-135deg); }
.site-header .site-nav-icon { flex-shrink: 0; color: var(--nav-muted); }
.site-header .site-nav-label { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.site-header .site-avatar {
    display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; margin-inline-start: -6px; border-radius: 50%;
    background: var(--nav-ink); color: #fff; font-size: 12px; font-weight: 600;
}

/* Launch: an event chip with a live dot, the same coral as the footer's launch chip. */
.site-header .site-launch-link {
    display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px 0 10px; border: 1px solid #fcd2d5; border-radius: 999px;
    background: #fff3f4; color: #c8323a; box-shadow: none; font-size: 12px; line-height: 1; font-weight: 600; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
    transition: background .2s, border-color .2s;
}
.site-header .site-launch-link:hover { background: #ffe6e8; border-color: #f6b3b8; color: #b3262e; }
.site-launch-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #e5484f; }
.site-launch-dot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: site-launch-ping 2.4s cubic-bezier(.2, .7, .2, 1) infinite; }
@keyframes site-launch-ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

/* Merchants: the one secondary button in the bar, in coral. A shade deeper than the brand coral keeps its text legible on white. */
.site-header .merchant-link { border-color: #d63c44; color: #d63c44 !important; font-weight: 600; }
.site-header .merchant-link:hover, .site-header .merchant-link.show { border-color: #d63c44; background: #d63c44; color: #fff !important; }
.site-header .merchant-link.show:hover { border-color: #c2323a; background: #c2323a; }

/* Menus open with a short lift. */
@keyframes site-menu-in { from { opacity: 0; transform: translateY(-4px); } }
.site-header .dropdown-menu {
    min-width: 230px; max-width: calc(100vw - 32px); margin-top: 10px !important; padding: 6px; border: 1px solid var(--nav-line); border-radius: 16px;
    background: #fff; box-shadow: 0 28px 56px -24px #1c226666, 0 2px 6px #1c22660d;
}
.site-header .dropdown-menu.show { animation: site-menu-in .18s cubic-bezier(.2, .7, .2, 1); }
.site-header .dropdown-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px;
    font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--nav-text); white-space: normal; overflow-wrap: anywhere;
}
.site-header .dropdown-item:hover, .site-header .dropdown-item:focus { background: var(--nav-tint); color: var(--nav-ink); }
.site-header .dropdown-item.text-danger:hover { background: #fff3f4; color: #c8323a !important; }
.site-header .dropdown-divider { margin: 6px 4px; border-color: var(--nav-line); opacity: 1; }
.site-header .lang-menu { max-height: min(440px, calc(100dvh - 90px)); scrollbar-width: thin; scrollbar-color: #c3c8ea transparent; overscroll-behavior: contain; }
.site-header .lang-menu::-webkit-scrollbar { width: 6px; }
.site-header .lang-menu::-webkit-scrollbar-track { background: transparent; margin-block: 10px; }
.site-header .lang-menu::-webkit-scrollbar-thumb { background: #c3c8ea; border-radius: 6px; }
.site-header .lang-menu::-webkit-scrollbar-thumb:hover { background: #8d93c8; }
/* The current language carries a check at the end of its row. */
.site-header .lang-menu .dropdown-item:is(.active, .is-active) { background: var(--nav-tint); color: var(--nav-ink) !important; font-weight: 600; border: 0; }
.site-header .lang-menu .dropdown-item:is(.active, .is-active)::after {
    content: ''; width: 10px; height: 5px; margin-inline-start: auto; flex-shrink: 0; border-left: 1.8px solid #4f57d8; border-bottom: 1.8px solid #4f57d8; transform: translateY(-2px) rotate(-45deg);
}
.site-header :is(a, button):focus-visible { outline: 2px solid var(--nav-focus); outline-offset: 2px; box-shadow: none; }
.site-header :is(.nav-link, .site-launch-link, .navbar-toggler):active { transform: scale(.96); }

/* Menu button: two bars that cross into a close mark while the menu is open. */
.site-header .navbar-toggler {
    place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--nav-line); border-radius: 50%;
    background: #fff; box-shadow: none; transition: background .2s, border-color .2s, transform .15s;
}
.site-header .navbar-toggler:focus { box-shadow: none; }
.site-header .navbar-toggler[aria-expanded="true"] { background: var(--nav-ink); border-color: var(--nav-ink); }
.site-toggler-bars { position: relative; display: block; width: 18px; height: 12px; }
.site-toggler-bars i { position: absolute; left: 0; width: 100%; height: 1.8px; border-radius: 2px; background: var(--nav-ink); transition: transform .3s cubic-bezier(.2, .7, .2, 1), top .3s, background .2s; }
.site-toggler-bars i:first-child { top: 2px; }
.site-toggler-bars i:last-child { top: 8px; }
.site-header .navbar-toggler[aria-expanded="true"] .site-toggler-bars i { top: 5px; background: #fff; }
.site-header .navbar-toggler[aria-expanded="true"] .site-toggler-bars i:first-child { transform: rotate(45deg); }
.site-header .navbar-toggler[aria-expanded="true"] .site-toggler-bars i:last-child { transform: rotate(-45deg); }

@media (max-width: 991px) {
    .site-header .navbar > .container { gap: 0; }
    /* Bootstrap hides the button from lg up; only the layout inside it changes here. */
    .site-header .navbar-toggler { display: grid; }
    .site-header .navbar-collapse, .site-header .navbar-collapse.collapsing {
        position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; padding: 10px; background: #fff; border: 1px solid var(--nav-line); border-radius: 20px;
        box-shadow: 0 28px 56px -24px #1c226673; max-height: calc(100dvh - 88px); overflow-y: auto; overscroll-behavior: contain;
    }
    .site-header .navbar-nav { align-items: stretch; gap: 4px; }
    .site-header .nav-link { width: 100%; min-height: 48px; padding: 12px 14px !important; border-radius: 14px; text-align: start; }
    .site-header .dropdown-toggle::after { margin-inline-start: auto; }
    .site-header .site-nav-label { max-width: none; white-space: normal; overflow-wrap: anywhere; }
    .site-header .site-avatar { margin-inline-start: 0; }
    .site-header .nav-item:nth-child(3) { border-top: 1px solid var(--nav-line); padding-top: 8px; margin-top: 4px; }
    .site-header .site-launch-link { align-self: flex-start; margin: 4px 14px 8px; min-height: 36px; }
    .site-header .merchant-link { justify-content: center; margin-top: 6px; border-radius: 999px; }
    .site-header .merchant-link::after { margin-inline-start: 4px; }
    .site-header .dropdown-menu { min-width: 0; margin: 2px 0 6px !important; border: 0; background: #f6f7fd; border-radius: 14px; box-shadow: none; }
    .site-header .dropdown-menu.show { animation: none; }
    .site-header .dropdown-item { min-height: 44px; padding: 11px 12px; font-size: 14px; }
    .site-header .lang-menu { max-height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
    .site-header, .site-header .nav-link, .site-header .collapsing, .site-header .dropdown-toggle::after, .site-toggler-bars i { transition: none; }
    .site-header .dropdown-menu.show { animation: none; }
    .site-launch-dot::after { animation: none; opacity: 0; }
    .site-header :is(.nav-link, .site-launch-link, .navbar-toggler):active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) { .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; } }

.site-mobile-app-notice { display: none; }
@media (max-width: 767px) {
    .site-mobile-app-notice:not([hidden]) { display: block; border-top: 1px solid #e1ece8; background: #edf6f2; }
    .site-mobile-app-notice > .container { display: flex; align-items: center; gap: 8px; padding-block: 6px; }
    .site-mobile-app-notice p { flex: 1; min-width: 0; margin: 0; color: #45635b; font-size: 12px; line-height: 1.4; }
    .site-mobile-app-links { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    .site-mobile-app-links a { display: inline-flex; align-items: center; min-height: 32px; color: #22665b; font-size: 12px; font-weight: 600; text-underline-offset: 3px; }
    #dismissMobileAppNotice { flex: 0 0 28px; width: 28px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #56766c; font: 22px/1 system-ui, sans-serif; cursor: pointer; }
    #dismissMobileAppNotice:hover { background: #dfede6; }
}
