:root {
    --brand: #b3122f;
    --brand-dark: #7b0b24;
    --brand-soft: #fff1f3;
    --gold: #d6a44d;
    --ink: #24252a;
    --muted: #7a7f89;
    --line: #ececef;
    --bg: #f7f7f8;
    --radius: 16px;
}

html { overflow-x: hidden; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(179,18,47,.28); outline-offset: 2px; }

.topbar { position: sticky; top: 0; z-index: 30; background: linear-gradient(115deg, #7b0b24, #b3122f 58%, #d34b51); box-shadow: 0 8px 25px rgba(100,8,30,.18); }
.topbar-inner { min-height: 74px; max-width: 1120px; padding: 12px 24px; }
.topbar .brand-name strong { letter-spacing: 4px; }
.page-wrap { max-width: 1120px; padding: 0 20px 88px; }
.site-back { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.section-head { gap: 16px; margin-top: 28px; }
.section-head h2 { color: #2a2023; letter-spacing: .2px; }
.section-head p { color: #8a7f83; }
.section-head a, .home-rental-body strong { color: var(--brand); }
.service-grid { gap: 12px; padding: 18px 14px; border: 1px solid #f0e4e6; box-shadow: 0 10px 28px rgba(80,20,28,.05); }
.service-item { color: #5c5d63; }
.service-item:hover { color: var(--brand); }
.icon-badge { box-shadow: 0 8px 16px rgba(100,20,30,.12); }
.cards, .home-rental-grid, .news-home-grid, .news-grid { align-items: stretch; }
.home-rental-card, .news-home-card, .news-card, .card, .panel { border-color: #eee7e8; box-shadow: 0 8px 24px rgba(50,25,30,.055); }
.home-rental-card:hover, .news-home-card:hover, .news-card:hover { border-color: #e4a8b2; box-shadow: 0 15px 30px rgba(130,10,25,.13); }
.home-rental-card > img, .home-rental-placeholder { aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.home-rental-body h3 { color: #2d2c30; }
.news-home-card > img, .news-home-placeholder { aspect-ratio: 16 / 9; height: auto; }
.news-home-placeholder, .news-card-placeholder { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #c62848, #7b0b24); font-weight: 800; letter-spacing: 2px; }
.rental-category-grid .home-rental-card { display: flex; flex-direction: column; }
.rental-category-grid .rental-card-media { display: block; }
.rental-category-grid .rental-card-media img, .rental-category-grid .rental-card-media .rental-placeholder { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; }
.rental-card-address { min-height: 2.8em; color: var(--muted); font-size: 12px; }
.rental-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.rental-card-footer strong { color: var(--brand); }
.btn { min-height: 42px; border-radius: 11px; background: var(--brand); box-shadow: 0 7px 15px rgba(179,18,47,.16); }
.btn:hover { background: var(--brand-dark); }
.btn-light { color: var(--brand); background: var(--brand-soft); box-shadow: none; }
.tag { color: var(--brand); background: var(--brand-soft); }
.tab.active, .tab:hover { color: var(--brand); background: var(--brand-soft); border-color: #efb5bd; }
.empty { border: 1px dashed #e3c5ca; border-radius: var(--radius); background: #fff; }
.mobile-nav { height: 68px; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 25px rgba(30,20,24,.08); }
.mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 5px 2px; color: #96939a; font-size: 11px; }
.mobile-nav a b { color: currentColor; font-size: 20px; line-height: 22px; }
.mobile-nav a.active { color: var(--brand); font-weight: 700; }

/* Keep the payment pages visually related to the main brand while preserving their existing flow. */
.phone-recharge-page, .unified-recharge-page { border-radius: 0 0 20px 20px; overflow: hidden; }
.phone-recharge-bar, .unified-bar { background: linear-gradient(115deg, #7b0b24, #b3122f 58%, #d34b51) !important; }
.phone-recharge-tabs a.active, .unified-tabs a.active { color: var(--brand); border-color: var(--brand); }
.phone-confirm-button, .unified-confirm { background: var(--brand); }

@media (max-width: 900px) {
    .page-wrap { padding-right: 16px; padding-left: 16px; }
    .home-rental-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .topbar-inner { min-height: 64px; padding: 10px 14px; }
    .page-wrap { padding: 0 13px 90px; }
    .service-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px 4px; }
    .home-rental-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .home-rental-card > img, .home-rental-placeholder { aspect-ratio: 1.35 / 1; }
    .news-home-card > img, .news-home-placeholder { aspect-ratio: 1.2 / 1; }
    .section-head { align-items: flex-start; margin-top: 23px; }
    .section-head h2 { font-size: 18px; }
    .section-head p { font-size: 12px; }
    .rental-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rental-card-footer .btn { padding: 7px 9px; font-size: 12px; }
}
