.app { background: #f7f7f8; }
.app .pulse-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.app .sale-card { position: relative; }
.app .demo-strip { background: #fff5f5; color: #b4232a; font-weight: 600; letter-spacing: 0.2px; }
.app .header { background: #fff; border-bottom: 1px solid #f0f0f0; position: sticky; top: 0; z-index: 40; }
.app .header-inner { height: 64px; gap: 16px; }
.app .logo { gap: 0; }
.app .logo img { height: 34px; width: auto; display: block; }
.app .desktop-nav a { padding: 20px 0; font-size: 13px; }
.app .header-actions { gap: 10px; }
.app .logout-btn { border-color: #e10600; color: #e10600; background: #fff; min-height: 38px; padding: 8px 14px; }
.app .logout-btn:hover { background: #fff1f0; }
.app .session-bar { background: #111; color: #fff; font-size: 13px; }
.app .session-bar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.app .session-bar a { color: #fff; font-weight: 700; text-decoration: underline; }
.app .page-main { padding-bottom: 76px; }
.app-search { display: flex; gap: 8px; background: #fff; border: 1px solid #ececec; border-radius: 12px; padding: 8px; margin: 14px 0; }
.app-search input { border: 0; box-shadow: none; flex: 1; padding: 8px 10px; }
.app-search button { background: #e10600; color: #fff; border-radius: 8px; min-width: 46px; font-weight: 700; }
.deal-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.deal-tabs a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 10px; background: #fff; border: 1px solid #f0d0d0; color: #e10600; font-weight: 700; }
.deal-tabs a.active { background: #e10600; color: #fff; border-color: #e10600; }
.type-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 16px; }
.type-tile { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eee; text-align: center; }
.type-tile img { height: 78px; width: 100%; object-fit: cover; }
.type-tile span { display: block; font-size: 13px; font-weight: 700; padding: 8px 4px 10px; }
.chip-row { display: flex; gap: 8px; overflow: auto; padding-bottom: 8px; margin: 4px 0 14px; }
.chip-row a { flex: 0 0 auto; background: #fff; border: 1px solid #e6e6e6; border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 650; color: #333; }
.chip-row a.on { background: #fff1f0; border-color: #e10600; color: #e10600; }
.feed-list { display: flex; flex-direction: column; gap: 16px; }
.feed-card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #eee; display: block; }
.feed-media { display: grid; grid-template-columns: 1.35fr .72fr; gap: 4px; background: #111; position: relative; min-height: 210px; }
.feed-media img { width: 100%; height: 210px; object-fit: cover; }
.feed-side { display: grid; grid-template-rows: 1fr 1fr; gap: 4px; }
.feed-side img { height: 103px; }
.vip-badge { position: absolute; left: 10px; top: 10px; background: #f5b400; color: #3a2a00; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 3px 8px; }
.vip-badge.silver { background: #d9dde3; color: #243040; }
.illus-badge { position: absolute; right: 10px; bottom: 10px; background: rgba(17,17,17,.72); color: #fff; font-size: 11px; border-radius: 6px; padding: 3px 8px; }
.feed-body { padding: 12px 14px 14px; }
.feed-body h3 { font-size: 16px; line-height: 1.45; margin: 0 0 6px; min-height: 0; }
.feed-meta { color: #666; font-size: 13px; }
.feed-meta b { color: #111; }
.feed-loc { margin-top: 6px; color: #666; font-size: 13px; }
.feed-agent { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f2f2f2; font-size: 13px; }
.feed-agent img { width: 32px; height: 32px; border-radius: 50%; }
.trait-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #eee; margin: 18px 0; }
.trait { display: flex; justify-content: space-between; gap: 12px; padding: 12px 8px; border-bottom: 1px solid #eee; font-size: 14px; }
.trait span { color: #666; }
.sale-card { background: #0f6e67; color: #fff; border-radius: 18px; padding: 16px; }
.sale-card h2, .sale-card p { color: #fff; }
.sale-top { display: flex; gap: 12px; align-items: center; }
.sale-top img { width: 64px; height: 64px; border-radius: 50%; background: #fff; object-fit: cover; }
.sale-kicker { font-size: 13px; opacity: .9; }
.sale-top b { display: block; font-size: 20px; line-height: 1.25; }
.sale-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; text-align: center; }
.sale-stats small { display: block; opacity: .85; font-size: 11px; }
.sale-stats strong { font-size: 18px; }
.sale-zalo, .sale-phone { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; font-weight: 700; margin-top: 8px; }
.sale-zalo { background: #fff; color: #0b6b63; }
.sale-phone { background: #14988c; color: #fff; }
.phone-box { display: none; }
.phone-toggle { position: absolute; opacity: 0; }
.phone-toggle:checked ~ .phone-box { display: block; }
.phone-toggle:checked ~ .sale-phone { display: none; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.chart { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 14px; }
.chart h3 { margin-bottom: 8px; }
.chart-scroll { overflow-x: auto; }
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: #666; margin-top: 6px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }
.user-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.user-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid #f0d0d0; color: #e10600; font-weight: 700; }
.user-nav a.active { background: #e10600; color: #fff; border-color: #e10600; }
.profile-grid { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; }
.profile-grid img.avatar-lg { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; background: #eee; }
.profile-form label, .product-form label { display: block; margin-bottom: 12px; font-weight: 650; }
.profile-form input, .profile-form textarea, .product-form input, .product-form textarea, .product-form select { width: 100%; margin-top: 4px; }
.own-table td { vertical-align: middle; }
.narrow-form { max-width: 880px; }
.product-form.compact { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-items: end; }
.product-form.compact .full, .product-form.compact details, .product-form.compact > button { grid-column: 1 / -1; }
.product-form details { margin-bottom: 12px; }
.product-form summary { cursor: pointer; font-weight: 700; margin-bottom: 8px; }
.price-row, .mini-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.keep-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.keep-photo { width: 96px; margin: 0; font-weight: 600; }
.keep-photo img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; display: block; margin-top: 4px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; background: #111; }
.gallery img { width: 100%; height: 120px; object-fit: cover; display: block; }
.gallery img.hero { grid-column: 1 / -1; height: min(420px, 56vw); }
.portrait-video { width: min(220px, 70vw); aspect-ratio: 9 / 16; background: #000; margin: 8px; justify-self: start; border-radius: 10px; }
.place-line { margin: 4px 0 8px; color: #333; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; background: #fff; border-top: 1px solid #eee; grid-template-columns: repeat(4, 1fr); }
.tabbar a { text-align: center; font-size: 11px; font-weight: 650; padding: 8px 4px 10px; color: #667; }
.tabbar a.active { color: #e10600; }
@media (max-width: 860px) {
  .app .desktop-nav { display: none; }
  .app .menu-button { display: inline-flex; }
  .app .logo img { height: 26px; }
  .app .header-inner { height: 56px; }
  .tabbar { display: grid; }
  .chart-grid, .trait-grid, .listing-layout, .profile-grid, .product-form.compact { grid-template-columns: 1fr; }
  .feed-media, .feed-media img { min-height: 180px; height: 180px; }
  .feed-side img { height: 88px; }
  .type-row { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
  .feed-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}
