/* ==========================================================================
   rv-header.css — Complete Header/Navbar Stylesheet
   Layout: Logo | Nav | Right (actions + post button)
   Height: 72px desktop, 56px mobile
   ========================================================================== */

/* Chiều cao dùng chung để các phần tử sticky xếp chồng đúng nhau */
:root {
    --rv-header-h: 72px;
    --rv-marquee-h: 30px;
}

/* ============ DATE / LUNAR BAR (marquee) ============ */
/* Nam o vi tri tren cung cua trang (truoc header), sticky top:0 — header sticky
   tiep ngay duoi no qua bien --rv-marquee-h. Nho, mem va de doc.
   Track rong tu noi dung (max-content) va cuon vong; so ban sao do JS nhan them
   de luon lap day be rong, nen khong bao gio bi cat chu o man hinh hep. */
.rv-marquee {
    position: sticky;
    top: 0;
    z-index: 1049;
    height: var(--rv-marquee-h);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(90deg, var(--rv-accent-light) 0%, var(--rv-surface) 55%, var(--rv-surface) 100%);
    border-bottom: 1px solid var(--rv-border);
    box-shadow: none;
    color: var(--rv-text-secondary);
    font-size: .75rem;
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.rv-marquee__track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: rv-marquee-scroll var(--rv-marquee-dur, 34s) linear infinite;
    will-change: transform;
}

.rv-marquee__seq {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 0 26px 0 16px;
    font-size: .75rem;
    line-height: 1.3;
    white-space: nowrap;
}

@keyframes rv-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Dừng lại khi rê chuột để đọc, và tôn trọng thiết lập giảm chuyển động của hệ điều hành */
.rv-marquee:hover .rv-marquee__track,
.rv-marquee:focus-within .rv-marquee__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
    .rv-marquee__track { animation: none; }
}

.rv-marquee__group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.rv-marquee__item {
    color: var(--rv-text-secondary);
    white-space: nowrap;
}
.rv-marquee__item b {
    color: var(--rv-text);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.rv-marquee__dow {
    color: var(--rv-accent);
    font-weight: 700;
}

/* ============ KQXS HÔM NAY (nhóm nội dung trong marquee) ============ */
/* Badge "KQXS hôm nay" + ngày + 3 miền tách nhau bằng .rv-marquee__sep (gạch đứng).
   Nhan giai mau nhat, so duoi dam va dung so tabular de dong so dep. */
.rv-marquee__group--kqxs { gap: 7px; }
.rv-marquee__kqxs-date b { color: var(--rv-accent); }
.rv-marquee__kqxs-region { color: var(--rv-text); font-weight: 700; }
.rv-marquee__kqxs-region::after { content: ":"; color: var(--rv-muted); font-weight: 400; }
.rv-marquee__kqxs-station { color: var(--rv-accent); font-weight: 700; }
.rv-marquee__kqxs-station::after { content: "·"; margin-left: 5px; color: var(--rv-muted); font-weight: 400; }
.rv-marquee__kqxs-prize { display: inline-flex; align-items: baseline; gap: 3px; margin-right: 7px; }
.rv-marquee__kqxs-prize i { font-style: normal; color: var(--rv-muted); }
.rv-marquee__kqxs-prize b {
    color: var(--rv-text);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: .01em;
}
.rv-marquee__kqxs-empty { color: var(--rv-muted); font-style: italic; }
/* Ngày của kỳ khác ngày đang hiển thị ở tiêu đề (trước giờ mở thưởng -> kỳ trước). */
.rv-marquee__kqxs-day { color: var(--rv-muted); font-weight: 600; font-style: normal; margin-left: 5px; }

/* Nhãn "Hôm nay" / "Tức âm lịch" */
.rv-marquee__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: var(--rv-radius-full);
    background: var(--rv-accent);
    color: #fff;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.6;
}
.rv-marquee__badge i { font-size: .85em; }

/* Biến thể rỗng: nền trong, viền mảnh — tách bạch với badge chính.
   Sáng: nền sáng → chữ TỐI (--rv-text #111). Tối: nền tối → chữ SÁNG (xem rule dark). */
.rv-marquee__badge--ghost {
    background: transparent;
    color: var(--rv-text);
    border: 1px solid var(--rv-border);
}
.rv-marquee__badge--ghost i { color: var(--rv-accent); }

/* Đường phân cách dọc giữa 2 nhóm */
.rv-marquee__sep {
    flex: 0 0 auto;
    width: 1px;
    height: 12px;
    background: var(--rv-border);
}

/* Chip tiết khí */
.rv-marquee__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    padding: 1px 7px;
    border-radius: var(--rv-radius-full);
    background: var(--rv-bg-tertiary);
    color: var(--rv-muted);
    font-size: .625rem;
    line-height: 1.7;
}
.rv-marquee__chip i { color: var(--rv-warning); font-size: .85em; }

/* ---------- Dark theme ---------- */
[data-theme="dark"] .rv-marquee {
    background: linear-gradient(90deg, rgba(0, 177, 79, .10) 0%, var(--rv-surface) 55%, var(--rv-surface) 100%);
    border-bottom-color: var(--rv-border);
    box-shadow: none;
}
[data-theme="dark"] .rv-marquee__item { color: var(--rv-text-secondary); }
[data-theme="dark"] .rv-marquee__item b { color: var(--rv-text); }
/* Badge chính: chữ tối trên nền xanh sáng để đủ tương phản */
[data-theme="dark"] .rv-marquee__badge {
    background: var(--rv-accent);
    color: #06281a;
}
[data-theme="dark"] .rv-marquee__badge--ghost {
    background: transparent;
    color: var(--rv-text);
    border-color: var(--rv-border);
}
[data-theme="dark"] .rv-marquee__badge--ghost i { color: var(--rv-accent); }
[data-theme="dark"] .rv-marquee__sep { background: var(--rv-border); }
[data-theme="dark"] .rv-marquee__chip { background: var(--rv-bg-tertiary); color: var(--rv-muted); }
[data-theme="dark"] .rv-marquee__chip i { color: #f0b429; }

@media (max-width: 991px) {
    .rv-marquee__chip { display: inline-flex; }
}

@media (max-width: 768px) {
    /* Phải giảm cao header thì mới khớp với .rv-header height ở dưới,
       nếu không thanh ngày sẽ lệch và hở khe giữa hai thanh. */
    :root {
        --rv-header-h: 56px;
        --rv-marquee-h: 26px;
    }
    .rv-marquee__seq {
        padding: 0 20px 0 12px;
        gap: 7px;
        font-size: .6875rem;
    }
    .rv-marquee__sep { height: 10px; }
    .rv-marquee__badge { padding: 1px 7px; font-size: .5625rem; letter-spacing: .03em; }
    .rv-marquee__chip { padding: 1px 6px; font-size: .5625rem; }
}

/* Rất hẹp: rút bớt khoảng đệm, nội dung vẫn cuộn nên không mất gì */
@media (max-width: 480px) {
    .rv-marquee__seq {
        padding: 0 16px 0 10px;
        gap: 6px;
    }
}

/* ============ HEADER SHELL ============ */
/* Sticky ngay duoi thanh ngay (--rv-marquee-h) de hai thanh khong che nhau. */
.rv-header {
    position: sticky;
    top: var(--rv-marquee-h, 0px);
    z-index: 1050;
    background: var(--rv-bg, #fff);
    border-bottom: 1px solid var(--rv-border-light, #e5e7eb);
    height: var(--rv-header-h, 72px);
    overflow: visible;
}

.rv-header__inner {
    display: flex;
    align-items: center;
    height: var(--rv-header-h, 72px);
    padding: 0 20px;
    max-width: 1280px;
    margin: 0 auto;
    gap: 12px;
}

/* ============ LOGO ============ */
.rv-header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.rv-header__logo img {
    height: 32px;
    width: auto;
    display: block;
}

/* ============ NAV (Desktop) ============ */
.rv-header__nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 1;
    min-width: 0;
    /* Man hinh hep (tablet) se cuon ngang thay vi cat mon menu. */
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rv-header__nav::-webkit-scrollbar {
    display: none;
}

.rv-header__nav-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    white-space: nowrap;
    transition: background 150ms, color 150ms;
    line-height: 1;
}

.rv-header__nav-item i {
    font-size: 14px;
    flex-shrink: 0;
}

.rv-header__nav-item:hover,
.rv-header__nav-item:focus-visible {
    background: rgba(0, 177, 79, 0.08);
    color: #00B14F;
}

/* Menu dang duoc chon */
.rv-header__nav-item.is-active {
    background: rgba(0, 177, 79, 0.12);
    color: #00B14F;
    box-shadow: inset 0 -2px 0 0 #00B14F;
}

/* ============ RIGHT SECTION ============ */
.rv-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

/* ============ ACTIONS GROUP ============ */
.rv-header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Points badge */
.rv-header__points {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #FFFBEB;
    color: #D97706;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
}

.rv-header__points i {
    font-size: 13px;
}

/* Action buttons (checkin, account, theme) */
.rv-header__action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    border-radius: 10px;
    color: #64748b;
    cursor: pointer;
    transition: background 150ms, color 150ms;
    font-size: 18px;
    flex-shrink: 0;
}

.rv-header__action:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.rv-header__action.checked {
    color: #00B14F;
}

/* Account dropdown button */
.rv-header__avatar-btn {
    font-size: 22px;
}

/* Login link */
.rv-header__login-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    white-space: nowrap;
    transition: background 150ms, color 150ms;
}

.rv-header__login-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* ============ POST BUTTON ============ */
.rv-header__post-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 20px;
    background: #00B14F;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 150ms, transform 150ms, box-shadow 150ms;
    box-shadow: 0 2px 8px rgba(0, 177, 79, 0.25);
    flex-shrink: 0;
    line-height: 1;
}

.rv-header__post-btn:hover {
    background: #00993F;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 177, 79, 0.35);
    color: #fff;
}

.rv-header__post-btn i {
    font-size: 15px;
}

/* ============ DROPDOWN ============ */
.rv-dropdown {
    position: relative;
}

.rv-dropdown__menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 6px;
    z-index: 1060;
}

.rv-dropdown.open .rv-dropdown__menu {
    display: block;
}

.rv-dropdown__label {
    padding: 8px 12px 4px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.rv-dropdown__divider {
    margin: 4px 8px;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.rv-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    white-space: nowrap;
    transition: background 120ms;
}

.rv-dropdown__item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.rv-dropdown__item i {
    font-size: 15px;
    width: 18px;
    text-align: center;
    color: #64748b;
    flex-shrink: 0;
}

.rv-dropdown__item--danger {
    color: #dc2626;
}

.rv-dropdown__item--danger i {
    color: #dc2626;
}

/* ============ THEME TOGGLE ============ */
.rv-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    border-radius: 10px;
    color: #64748b;
    cursor: pointer;
    transition: background 150ms, color 150ms;
    font-size: 18px;
    flex-shrink: 0;
}

.rv-theme-toggle:hover {
    background: #f1f5f9;
    color: #0f172a;
}

[data-theme="dark"] .rv-theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .rv-theme-toggle .icon-moon { display: none; }
[data-theme="light"] .rv-theme-toggle .icon-sun { display: none; }
[data-theme="light"] .rv-theme-toggle .icon-moon { display: block; }
:root:not([data-theme]) .rv-theme-toggle .icon-sun { display: none; }
:root:not([data-theme]) .rv-theme-toggle .icon-moon { display: block; }

/* ============ HAMBURGER ============ */
.rv-header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 7px;
    border: none;
    background: none;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.rv-header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #1e293b;
    border-radius: 2px;
    transition: transform 250ms ease, opacity 200ms ease;
}

.mobile-nav-open .rv-header__hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-nav-open .rv-header__hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-open .rv-header__hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============ MOBILE DRAWER ============ */
.rv-drawer-overlay {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 1070 !important;
    opacity: 0;
    transition: opacity 250ms ease;
}

.mobile-nav-open .rv-drawer-overlay {
    display: block;
    opacity: 1;
}

.rv-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 300px !important;
    max-width: 85vw;
    height: 100vh !important;
    background: #fff !important;
    z-index: 1080 !important;
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    flex-direction: column !important;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.mobile-nav-open .rv-drawer {
    transform: translateX(0);
}

.rv-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.rv-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    font-size: 18px;
}

.rv-drawer__close:hover {
    background: #f1f5f9;
}

.rv-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.rv-drawer__section {
    padding: 0 12px;
}

.rv-drawer__divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 20px;
}

.rv-drawer__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: background 150ms;
}

.rv-drawer__link:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Muc dang duoc chon trong menu mobile */
.rv-drawer__link.is-active {
    background: rgba(0, 177, 79, 0.12);
    color: #00B14F;
    font-weight: 700;
}

.rv-drawer__link.is-active i {
    color: #00B14F;
}

.rv-drawer__link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #64748b;
    flex-shrink: 0;
}

.rv-drawer__link--danger {
    color: #dc2626;
}

.rv-drawer__link--danger i {
    color: #dc2626;
}

.rv-drawer__user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.rv-drawer__user i {
    font-size: 20px;
    color: #00B14F;
}

.rv-drawer__footer {
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.rv-header__post-btn--full {
    width: 100%;
    height: 48px;
}

/* ============ RESPONSIVE — TABLET (768-1023px) ============ */
@media (max-width: 1023px) {
    .rv-header__inner {
        padding: 0 16px;
        gap: 8px;
    }

    .rv-header__nav {
        gap: 1px;
    }

    .rv-header__nav-item {
        padding: 5px 8px;
        font-size: 12px;
    }

    .rv-header__points {
        padding: 3px 8px;
        font-size: 11px;
    }

    .rv-header__action {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .rv-header__post-btn {
        height: 40px;
        padding: 0 16px;
        font-size: 13px;
        border-radius: 10px;
    }
}

/* ============ RESPONSIVE — MOBILE (<768px) ============ */
@media (max-width: 767px) {
    .rv-header {
        height: var(--rv-header-h, 56px);
    }

    .rv-header__inner {
        height: var(--rv-header-h, 56px);
        padding: 0 12px;
        gap: 8px;
    }

    .rv-header__nav {
        display: none;
    }

    .rv-header__right {
        gap: 8px;
    }

    .rv-header__actions {
        gap: 2px;
    }

    .rv-header__points {
        padding: 2px 6px;
        font-size: 11px;
    }

    .rv-header__points span {
        display: none;
    }

    .rv-header__action {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .rv-header__login-link span {
        display: none;
    }

    .rv-header__login-link i {
        font-size: 18px;
    }

    .rv-header__post-btn span {
        display: none;
    }

    .rv-header__post-btn {
        width: 44px;
        height: 40px;
        padding: 0;
        border-radius: 10px;
    }

    .rv-header__hamburger {
        display: flex;
    }

    .rv-theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* ============ RESPONSIVE — EXTRA SMALL (<400px) ============ */
@media (max-width: 399px) {
    .rv-header__logo img {
        height: 26px;
    }

    .rv-header__points {
        display: none;
    }
}

/* ============ LARGE DESKTOP (>1440px) ============ */
@media (min-width: 1441px) {
    .rv-header__inner {
        max-width: 1360px;
    }

    .rv-header__nav-item {
        padding: 6px 16px;
        font-size: 14px;
    }
}

/* ============ DARK MODE ============ */
[data-theme="dark"] .rv-header {
    background: #111827;
    border-bottom-color: #1f2937;
}

[data-theme="dark"] .rv-header__nav-item {
    color: #94a3b8;
}

[data-theme="dark"] .rv-header__nav-item:hover {
    background: rgba(0, 177, 79, 0.12);
    color: #00B14F;
}

[data-theme="dark"] .rv-header__action {
    color: #94a3b8;
}

[data-theme="dark"] .rv-header__action:hover {
    background: #1f2937;
    color: #e2e8f0;
}

[data-theme="dark"] .rv-header__login-link {
    color: #94a3b8;
}

[data-theme="dark"] .rv-header__login-link:hover {
    background: #1f2937;
    color: #e2e8f0;
}

[data-theme="dark"] .rv-header__points {
    background: #422006;
    color: #fbbf24;
}

[data-theme="dark"] .rv-theme-toggle {
    color: #94a3b8;
}

[data-theme="dark"] .rv-theme-toggle:hover {
    background: #1f2937;
    color: #e2e8f0;
}

[data-theme="dark"] .rv-header__hamburger span {
    background: #e2e8f0;
}

[data-theme="dark"] .rv-dropdown__menu {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .rv-dropdown__label {
    color: #f1f5f9;
}

[data-theme="dark"] .rv-dropdown__divider {
    border-color: #334155;
}

[data-theme="dark"] .rv-dropdown__item {
    color: #cbd5e1;
}

[data-theme="dark"] .rv-dropdown__item:hover {
    background: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .rv-drawer {
    background: #111827;
}

[data-theme="dark"] .rv-drawer__header {
    border-color: #1f2937;
}

[data-theme="dark"] .rv-drawer__link {
    color: #cbd5e1;
}

[data-theme="dark"] .rv-drawer__link:hover {
    background: #1f2937;
}

[data-theme="dark"] .rv-drawer__user {
    color: #f1f5f9;
}

[data-theme="dark"] .rv-drawer__footer {
    border-color: #1f2937;
}

/* ---- Gio hang (module san pham so) ---- */
.rv-header__cart {
    position: relative;
    text-decoration: none;
}

.rv-header__cart-count {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Check-in: distinct action, stable width and non-blocking feedback. */
.rv-header__action.rv-checkin-button { width:auto; min-width:112px; white-space:nowrap; padding:0 10px; gap:6px; font-size:13px; position:relative; }
.rv-checkin-button.needs-checkin { background:var(--rv-primary-light); color:var(--rv-primary); box-shadow:inset 0 0 0 1px var(--rv-primary); }
.rv-checkin-button.checked { background:var(--rv-primary-light); }
.rv-checkin-button:disabled { cursor:default; }
.rv-checkin-dot { display:none; }
.needs-checkin .rv-checkin-dot { display:block; width:6px; height:6px; border-radius:50%; background:currentColor; }
.rv-checkin-notice { position:fixed; top:110px; right:16px; z-index:1080; width:340px; max-width:calc(100vw - 32px); padding:18px 36px 18px 18px; border:1px solid var(--rv-border); border-radius:12px; background:var(--rv-surface,var(--rv-bg)); color:var(--rv-text); box-shadow:0 8px 28px rgba(0,0,0,.16); animation:rv-checkin-enter .18s ease-out; }
.rv-checkin-notice p { margin:0 0 8px; font-size:14px; }
.rv-checkin-notice-close { position:absolute; top:5px; right:8px; background:none; border:0; color:var(--rv-text); font-size:24px; }
@keyframes rv-checkin-enter { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:767px) { .rv-header__action.rv-checkin-button { min-width:36px; padding:0 7px; } .rv-checkin-button [data-checkin-label] { display:none; } .rv-checkin-button .rv-checkin-dot { position:absolute; right:3px; top:4px; } }
@media(prefers-reduced-motion:reduce) { .rv-checkin-notice { animation:none; } }

#btn-checkin.checked:disabled { opacity:1; color:var(--rv-primary); }

.rv-marquee__station-link { display:inline-flex; align-items:baseline; gap:7px; color:inherit; text-decoration:none; border-radius:3px; }
.rv-marquee__station-link:hover { background:var(--rv-primary-light); text-decoration:underline; text-underline-offset:3px; }
.rv-marquee__station-link:focus-visible { outline:2px solid var(--rv-primary); outline-offset:-2px; }
