/* Trang kho BĐS và trang đăng nhập là tài liệu HTML độc lập, không đi qua layout của theme
   nên phải tự reset margin mặc định 8px của <body>, nếu không sẽ thấy viền trắng quanh trang. */
html,
body {
    margin: 0;
    padding: 0;
}

/* Kho BĐS Vin Villa — dựng lại từ mockup vinvillav2-docs/index.html mà không cần Tailwind runtime. */
:root {
    --re-pri: #c81e2c;
    --re-pri-dark: #a6141f;
    --re-pri-light: #fce9ea;
    --re-ink: #1b1b1f;
    --re-sub: #6b6e76;
    --re-line: #e7e7ea;
    --re-bg: #f5f5f7;
    --re-hot: #e8622c;
    --re-radius: 16px;
}

.re-app,
.re-app * {
    box-sizing: border-box;
}

.re-app {
    background: var(--re-bg);
    color: var(--re-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
}

.re-app a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Sidebar ---------- */
.re-sidebar {
    width: 250px;
    flex: 0 0 250px;
    background: #fff;
    border-right: 1px solid var(--re-line);
    padding: 18px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.re-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 6px 18px;
}

.re-brand__mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--re-pri);
    color: #fff;
    font-weight: 800;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.re-brand__name {
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.re-brand__sub {
    font-size: 10.5px;
    color: var(--re-sub);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.re-nav__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #4b4d54;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.re-nav__item:hover {
    background: var(--re-bg);
    color: var(--re-ink);
}

.re-nav__item.is-active {
    background: var(--re-pri-light);
    color: var(--re-pri);
    font-weight: 600;
}

.re-nav__count {
    margin-left: auto;
    background: var(--re-pri);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.re-support {
    margin-top: 22px;
    padding: 14px;
    border-radius: 12px;
    background: var(--re-pri-light);
}

.re-support__label {
    font-size: 12px;
    color: var(--re-sub);
}

.re-support__phone {
    font-weight: 800;
    font-size: 17px;
    color: var(--re-pri);
}

/* ---------- Main ---------- */
.re-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.re-topbar {
    background: #fff;
    border-bottom: 1px solid var(--re-line);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 5;
}

.re-content {
    padding: 20px 24px 48px;
}

/* ---------- Filter panel ---------- */
.re-panel {
    background: #fff;
    border: 1px solid var(--re-line);
    border-radius: var(--re-radius);
    padding: 18px 20px;
    margin-bottom: 18px;
}

.re-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.re-panel__title {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.re-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.re-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.re-field__label {
    font-size: 12px;
    color: var(--re-sub);
    font-weight: 500;
}

.re-input,
.re-select {
    width: 100%;
    border: 1px solid var(--re-line);
    border-radius: 12px;
    padding: 10px 13px;
    font-size: 14px;
    font-family: inherit;
    color: var(--re-ink);
    background: #fff;
    transition: border-color 0.15s;
}

.re-input:hover,
.re-select:hover {
    border-color: #c4c4c8;
}

.re-input:focus,
.re-select:focus {
    outline: none;
    border-color: var(--re-pri);
}

.re-search {
    flex: 1 1 auto;
    max-width: 460px;
    position: relative;
}

.re-price-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--re-line);
}

.re-price-row .re-field {
    max-width: 160px;
}

.re-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.re-btn--primary {
    background: var(--re-pri);
    color: #fff;
}

.re-btn--primary:hover {
    background: var(--re-pri-dark);
}

.re-btn--ghost {
    background: #fff;
    border-color: var(--re-line);
    color: var(--re-sub);
}

.re-btn--ghost:hover {
    border-color: #c4c4c8;
    color: var(--re-ink);
}

.re-btn--outline {
    background: #fff;
    border-color: var(--re-pri);
    color: var(--re-pri);
}

.re-btn--outline:hover {
    background: var(--re-pri);
    color: #fff;
}

.re-btn--link {
    background: none;
    border: none;
    color: var(--re-sub);
    padding: 6px 2px;
}

/* ---------- Result bar ---------- */
.re-resultbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.re-resultbar__count strong {
    font-size: 18px;
    font-weight: 800;
}

.re-resultbar__tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- Card grid ---------- */
.re-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.re-card {
    background: #fff;
    border: 1px solid #ededef;
    border-radius: var(--re-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

.re-card:hover {
    box-shadow: 0 8px 24px rgba(20, 20, 30, 0.08);
    transform: translateY(-2px);
}

.re-card__media {
    position: relative;
    aspect-ratio: 3 / 2;
    background: var(--re-bg);
    overflow: hidden;
}

.re-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.re-badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--re-pri);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.03em;
}

.re-save {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: #fff;
    color: var(--re-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.re-save.is-saved {
    background: var(--re-pri);
    border-color: var(--re-pri);
    color: #fff;
}

.re-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
}

.re-card__code {
    font-weight: 700;
    font-size: 15px;
    color: var(--re-pri);
}

.re-card__addr {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    color: var(--re-sub);
    line-height: 1.35;
    min-height: 34px;
}

.re-card__price {
    font-size: 22px;
    font-weight: 800;
}

.re-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 12.5px;
    color: var(--re-sub);
}

.re-card__specs span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.re-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12.5px;
    color: var(--re-sub);
}

.re-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11.5px;
    color: var(--re-sub);
    padding-top: 8px;
    border-top: 1px solid rgba(231, 231, 234, 0.7);
}

.re-card__cta {
    margin-top: auto;
    padding-top: 8px;
}

.re-tag {
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.re-tag--hot {
    color: var(--re-hot);
}

.re-tag--priority {
    color: var(--re-pri);
}

/* ---------- Empty ---------- */
.re-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 16px;
    color: var(--re-sub);
}

.re-empty__title {
    font-weight: 600;
    font-size: 15px;
    color: var(--re-ink);
    margin-top: 12px;
}

.re-loadmore {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

/* ---------- Detail ---------- */
.re-detail {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 22px;
    align-items: start;
}

/* Ảnh nguồn lẫn lộn dọc 1200x1600 và ngang 800x600, nên khung phải cố định tỉ lệ,
   nếu không chiều cao ảnh chính nhảy theo từng tin và hàng thumb bị so le. */
.re-detail__gallery > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border-radius: var(--re-radius);
    display: block;
    background: var(--re-bg);
}

.re-detail__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.re-detail__thumbs img {
    display: block;
    width: 100%;
    /* Chiều cao tuyệt đối thay vì aspect-ratio: mọi ô thumb chắc chắn bằng nhau. */
    height: 68px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 10px;
    background: var(--re-bg);
    border: 2px solid transparent;
    transition: border-color 0.15s;
}

.re-detail__thumbs img:hover,
.re-detail__thumbs img.is-active {
    border-color: var(--re-pri);
}

.re-detail__price {
    font-size: 30px;
    font-weight: 800;
}

.re-detail__unit {
    color: var(--re-sub);
    font-size: 13.5px;
}

.re-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin: 18px 0;
    padding: 16px 0;
    border-top: 1px solid var(--re-line);
    border-bottom: 1px solid var(--re-line);
}

.re-spec__value {
    font-weight: 700;
    font-size: 15px;
}

.re-spec__label {
    font-size: 12px;
    color: var(--re-sub);
}

.re-prose {
    white-space: pre-line;
    color: #34363c;
}

.re-contact__row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--re-line);
    font-size: 13.5px;
}

.re-contact__row:last-child {
    border-bottom: none;
}

.re-notice {
    background: var(--re-pri-light);
    color: var(--re-pri-dark);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 12.5px;
    margin-top: 14px;
}

.re-breadcrumb {
    font-size: 13px;
    color: var(--re-sub);
    margin-bottom: 14px;
}

.re-section-title {
    font-weight: 700;
    font-size: 16px;
    margin: 26px 0 12px;
}

.re-icon {
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    fill: currentColor;
    font-size: 16px;
}

@media (max-width: 1024px) {
    .re-detail {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .re-app {
        display: block;
    }

    .re-sidebar {
        width: 100%;
        flex: none;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--re-line);
    }

    .re-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .re-nav__item {
        white-space: nowrap;
    }

    .re-support {
        display: none;
    }

    .re-content,
    .re-topbar {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ---------- Topbar mở rộng ---------- */
.re-search {
    position: relative;
}

.re-search__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--re-sub);
    pointer-events: none;
}

.re-search__input {
    padding-left: 36px;
}

.re-topbar__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.re-iconbtn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--re-sub);
    border: 1px solid var(--re-line);
    background: #fff;
}

.re-iconbtn:hover {
    color: var(--re-pri);
    border-color: var(--re-pri);
}

.re-iconbtn__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--re-pri);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.re-user {
    display: flex;
    align-items: center;
    gap: 9px;
}

.re-user__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--re-pri-light);
    color: var(--re-pri);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.re-user__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.re-user__name {
    font-weight: 600;
    font-size: 13.5px;
}

.re-user__role {
    font-size: 11.5px;
    color: var(--re-sub);
}

/* ---------- Ẩn/hiện bộ lọc ---------- */
.re-chevron {
    transition: transform 0.18s;
}

.re-panel.is-collapsed .re-chevron {
    transform: rotate(180deg);
}

.re-panel__foot {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

/* ---------- Slider khoảng giá ---------- */
.re-price {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--re-line);
}

.re-price__head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 18px;
}

.re-price__track {
    position: relative;
    height: 4px;
    background: var(--re-line);
    border-radius: 4px;
    margin: 0 9px;
    touch-action: none;
}

.re-price__fill {
    position: absolute;
    height: 4px;
    background: var(--re-pri);
    border-radius: 4px;
}

.re-price__thumb {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    border-radius: 50%;
    background: var(--re-pri);
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--re-pri);
    transform: translateY(-50%);
    cursor: grab;
}

.re-price__thumb:active {
    cursor: grabbing;
}

.re-price__thumb:focus-visible {
    outline: 2px solid var(--re-pri);
    outline-offset: 3px;
}

.re-price__ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 11px;
    color: var(--re-sub);
}

/* ---------- Chuyển grid ⇄ list ---------- */
.re-viewswitch {
    display: inline-flex;
    border: 1px solid var(--re-line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.re-viewswitch__btn {
    width: 38px;
    height: 38px;
    border: none;
    background: none;
    color: var(--re-sub);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.re-viewswitch__btn.is-active {
    background: var(--re-pri-light);
    color: var(--re-pri);
}

.re-grid.is-list {
    grid-template-columns: 1fr;
}

.re-grid.is-list .re-card {
    flex-direction: row;
}

.re-grid.is-list .re-card__media {
    flex: 0 0 240px;
    aspect-ratio: 4 / 3;
}

.re-grid.is-list .re-card__body {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-content: start;
    gap: 6px 20px;
}

.re-grid.is-list .re-card__addr {
    min-height: 0;
}

.re-grid.is-list .re-card__price {
    grid-row: 1 / 3;
    grid-column: 2;
    align-self: center;
    text-align: right;
}

.re-grid.is-list .re-card__cta {
    grid-column: 2;
    margin-top: 0;
}

@media (max-width: 720px) {
    .re-grid.is-list .re-card {
        flex-direction: column;
    }

    .re-grid.is-list .re-card__media {
        flex: none;
        aspect-ratio: 3 / 2;
    }

    .re-grid.is-list .re-card__body {
        grid-template-columns: 1fr;
    }

    .re-grid.is-list .re-card__price,
    .re-grid.is-list .re-card__cta {
        grid-column: 1;
        grid-row: auto;
        text-align: left;
    }
}

/* ---------- Đăng nhập / Đăng ký ---------- */
.re-auth,
.re-auth * {
    box-sizing: border-box;
}

.re-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--re-ink);
    background: var(--re-bg);
}

.re-auth a {
    color: var(--re-pri);
    text-decoration: none;
}

.re-auth__brand {
    background: linear-gradient(150deg, var(--re-pri) 0%, var(--re-pri-dark) 100%);
    color: #fff;
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.re-auth__brand .re-brand__mark {
    background: #fff;
    color: var(--re-pri);
}

.re-auth__brand .re-brand__sub {
    color: rgba(255, 255, 255, 0.75);
}

.re-auth__pitch h1 {
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 16px;
    max-width: 15ch;
}

.re-auth__pitch p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    max-width: 46ch;
}

.re-auth__copyright {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.7);
}

.re-auth__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.re-auth__card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--re-line);
    border-radius: var(--re-radius);
    padding: 32px;
}

.re-auth__card-brand {
    display: none;
    padding-bottom: 20px;
}

.re-auth__title {
    font-size: 23px;
    font-weight: 800;
    margin: 0 0 6px;
}

.re-auth__subtitle {
    margin: 0 0 22px;
    color: var(--re-sub);
    font-size: 13.5px;
}

.re-auth__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.re-field__hint {
    font-style: normal;
    color: var(--re-sub);
    font-weight: 400;
}

.re-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13.5px;
    color: var(--re-sub);
    cursor: pointer;
}

.re-check input {
    margin-top: 2px;
    accent-color: var(--re-pri);
    width: 16px;
    height: 16px;
}

.re-btn--block {
    width: 100%;
    padding: 12px 18px;
    font-size: 14.5px;
}

.re-auth__switch {
    margin: 4px 0 0;
    text-align: center;
    font-size: 13.5px;
    color: var(--re-sub);
}

.re-alert {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 18px;
}

.re-alert--error {
    background: var(--re-pri-light);
    color: var(--re-pri-dark);
}

.re-alert ul {
    margin: 0;
    padding-left: 18px;
}

@media (max-width: 900px) {
    .re-auth {
        grid-template-columns: 1fr;
    }

    .re-auth__brand {
        display: none;
    }

    .re-auth__card-brand {
        display: flex;
    }
}

/* ---------- Bảng lịch sử tìm kiếm ---------- */
.re-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.re-table th, .re-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--re-line); vertical-align: middle; }
.re-table th { font-size: 12px; font-weight: 600; color: var(--re-sub); text-transform: uppercase; letter-spacing: .03em; background: var(--re-bg); }
.re-table tr:last-child td { border-bottom: none; }
.re-table__num { text-align: right; font-variant-numeric: tabular-nums; }
.re-table__muted { color: var(--re-sub); }
.re-chip { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 10px; margin: 2px 4px 2px 0; border-radius: 999px; background: var(--re-bg); color: var(--re-sub); }

/* ---------- Báo cáo thống kê ---------- */
.re-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.re-stat { background: #fff; border: 1px solid var(--re-line); border-radius: var(--re-radius); padding: 18px 20px; }
.re-stat__value { font-size: 24px; font-weight: 800; line-height: 1.2; }
.re-stat__label { margin-top: 4px; font-size: 12.5px; color: var(--re-sub); }
.re-report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.re-rank { display: grid; grid-template-columns: minmax(90px, 1.1fr) minmax(60px, 2fr) auto; align-items: center; gap: 10px; padding: 8px 0; font-size: 13.5px; border-bottom: 1px solid rgba(231,231,234,.7); }
.re-rank:last-child { border-bottom: none; }
.re-rank__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.re-rank__meter { height: 8px; border-radius: 999px; background: var(--re-bg); overflow: hidden; }
.re-rank__meter span { display: block; height: 100%; background: var(--re-pri); border-radius: 999px; }
.re-rank__value { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.re-rank__extra { grid-column: 1 / -1; font-size: 11.5px; color: var(--re-sub); margin-top: -4px; }

/* ---------- Biểu đồ cột tin theo ngày ---------- */
.re-bars { display: flex; align-items: flex-end; gap: 8px; height: 170px; }
.re-bars__item { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.re-bars__bar { width: 100%; max-width: 40px; background: var(--re-pri); border-radius: 6px 6px 0 0; }
.re-bars__item:hover .re-bars__bar { opacity: .78; }
.re-bars__value { order: -1; font-size: 11.5px; font-weight: 700; color: var(--re-sub); margin-bottom: 4px; }
.re-bars__label { margin-top: 6px; font-size: 11px; color: var(--re-sub); white-space: nowrap; }

/* ---------- Chặn xem tiếp khi chưa đăng nhập ---------- */
.re-loadmore--locked {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    text-align: left;
    background: #fff;
    border: 1px solid var(--re-line);
    border-radius: var(--re-radius);
    padding: 20px 24px;
    color: var(--re-sub);
}

.re-loadmore--locked .re-icon {
    color: var(--re-pri);
    flex: 0 0 auto;
}

.re-loadmore__title {
    font-weight: 700;
    font-size: 15px;
    color: var(--re-ink);
}

.re-loadmore__sub {
    font-size: 13px;
    margin-top: 2px;
}

/* ---------- Địa chỉ có liên kết lọc ---------- */
.re-addr {
    display: inline;
}

.re-addr__link {
    color: inherit;
    border-bottom: 1px dotted #c4c4c8;
    transition: color 0.15s, border-color 0.15s;
}

.re-addr__link:hover {
    color: var(--re-pri);
    border-bottom-color: var(--re-pri);
}

.re-addr__sep {
    margin-right: 3px;
}

.re-card__addr--detail {
    margin-top: 10px;
    font-size: 14px;
    min-height: 0;
}

/* ---------- Modal thông báo ---------- */
body.re-modal-open {
    overflow: hidden;
}

.re-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 72px 16px 16px;
}

.re-modal[hidden] {
    display: none;
}

.re-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 30, 0.45);
}

.re-modal__box {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 96px);
    background: #fff;
    border-radius: var(--re-radius);
    box-shadow: 0 20px 60px rgba(20, 20, 30, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.re-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--re-line);
}

.re-modal__title {
    font-weight: 700;
    font-size: 15px;
}

.re-iconbtn--ghost {
    border-color: transparent;
    background: none;
}

.re-modal__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 6px 10px;
    min-height: 120px;
}

.re-modal__loading,
.re-modal__empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--re-sub);
    font-size: 13.5px;
}

.re-modal__empty-sub {
    margin-top: 4px;
    font-size: 12.5px;
}

.re-modal__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--re-line);
}

.re-notif-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 8px;
    border-radius: 10px;
    transition: background 0.15s;
}

.re-notif-item:hover {
    background: var(--re-bg);
}

.re-notif-item img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 auto;
    background: var(--re-bg);
}

.re-notif-item__body {
    min-width: 0;
}

.re-notif-item__name {
    font-size: 13.5px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.re-notif-item__meta {
    margin-top: 2px;
    font-size: 12px;
    color: var(--re-sub);
}
