/* ─────────────────────────────────────────────────────────────────────────
   Sokha Eang PREC — shared dashboard styles (navy/gold)
   Used by index.html (Home), listings.html, buyers.html, birthdays.html
   ───────────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #0b1220; color: #e8edf5; min-height: 100vh; padding-bottom: 60px; }
a { color: inherit; }

/* HEADER + NAV */
.header { background: linear-gradient(135deg, #0d1b2e 0%, #132240 100%); border-bottom: 2px solid #1e3a5f; padding: 22px 40px 0; }
.header-top { display: flex; justify-content: space-between; align-items: flex-end; }
.header h1 { font-size: 22px; font-weight: 700; color: #fff; }
.header p  { font-size: 13px; color: #7a9cc0; margin-top: 4px; }
.header-right .date { font-size: 13px; color: #7a9cc0; text-align: right; }
.header-right .time { font-size: 20px; font-weight: 600; color: #c9a84c; margin-top: 2px; text-align: right; }
.nav { display: flex; gap: 4px; margin-top: 18px; flex-wrap: wrap; }
.nav a { font-size: 13px; font-weight: 600; color: #9cb8d8; text-decoration: none; padding: 10px 16px; border-radius: 8px 8px 0 0; display: flex; align-items: center; gap: 7px; border-bottom: 2px solid transparent; }
.nav a:hover { background: rgba(255,255,255,0.04); color: #d0e0f0; }
.nav a.active { color: #c9a84c; border-bottom-color: #c9a84c; background: #0b1220; }
.nav .nav-count { font-size: 11px; background: rgba(201,168,76,0.18); color: #c9a84c; padding: 1px 7px; border-radius: 10px; }

/* SECTIONS */
.section { padding: 28px 40px 0; }
.section-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: #5a7fa8; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: #1e3a5f; }
.page-intro { padding: 26px 40px 0; font-size: 13px; color: #7a9cc0; }

/* ── BENTO GRID (Home) ── */
.bento { padding: 28px 40px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1100px; }
.tile { background: #111d30; border: 1px solid #1e3a5f; border-radius: 14px; padding: 20px; text-decoration: none; color: inherit; display: block; }
a.tile:hover { border-color: #2e5a8a; }
.tile.span2 { grid-column: span 2; }
.tile.span3 { grid-column: span 3; }
.tile-label { font-size: 12px; color: #7a9cc0; }
.tile-big   { font-size: 34px; font-weight: 800; color: #fff; line-height: 1.1; margin-top: 4px; }
.tile-sub   { font-size: 13px; color: #9cb8d8; margin-top: 6px; }
.tile-gold  { color: #c9a84c; }
.tile-green { color: #4ade80; }
.tile-red   { color: #f87171; }
.tile.danger { background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.3); }
.tile-head  { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tile-head .ic { font-size: 18px; }
.tile-head .nm { font-weight: 700; color: #fff; font-size: 15px; }
.tile-head .ct { margin-left: auto; font-size: 12px; color: #5a7fa8; }
.tile-line  { font-size: 13px; color: #c9d6e8; margin-top: 6px; }
.tile-line .muted { color: #7a9cc0; }
.tile-line .hot   { color: #f87171; }
.tile-cta   { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12px; font-weight: 600; color: #9cc0ec; }
.crit-bar { grid-column: span 3; background: #111d30; border: 1px solid #1e3a5f; border-left: 4px solid #f87171; border-radius: 0 12px 12px 0; padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.crit-bar .ic { color: #f87171; font-size: 18px; }
.crit-bar .txt { font-size: 13px; color: #d0e0f0; }
.crit-bar .txt strong { color: #f87171; }

/* GRID for deal cards */
.deals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 20px; }

/* CARDS (deal) */
.deal-card { background: #111d30; border: 1px solid #1e3a5f; border-radius: 12px; overflow: hidden; }
.deal-card.at_risk     { border-left: 4px solid #f87171; }
.deal-card.subjects_in { border-left: 4px solid #fbbf24; }
.deal-card.firm        { border-left: 4px solid #4ade80; }
.deal-card.listing     { border-left: 4px solid #818cf8; }
.card-header { padding: 18px 20px 14px; border-bottom: 1px solid #1a2e4a; display: flex; justify-content: space-between; align-items: flex-start; }
.card-address { font-size: 16px; font-weight: 700; color: #fff; }
.card-city    { font-size: 12px; color: #5a7fa8; margin-top: 3px; }
.badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; padding: 4px 10px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; margin-left: 12px; }
.badge-at_risk     { background: rgba(248,113,113,0.15); color: #f87171; border: 1px solid rgba(248,113,113,0.3); }
.badge-subjects_in { background: rgba(251,191,36,0.15);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.badge-firm        { background: rgba(74,222,128,0.12);  color: #4ade80; border: 1px solid rgba(74,222,128,0.25); }
.badge-listing     { background: rgba(129,140,248,0.12); color: #818cf8; border: 1px solid rgba(129,140,248,0.25); }
.card-body { padding: 18px 20px; }
.countdown-banner { border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.cb-urgent  { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.25); }
.cb-warning { background: rgba(251,191,36,0.1);  border: 1px solid rgba(251,191,36,0.25); }
.cb-info    { background: rgba(129,140,248,0.1); border: 1px solid rgba(129,140,248,0.2); }
.cb-neutral { background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.2); }
.cb-label   { font-size: 12px; color: #9cb8d8; }
.cb-sub     { font-size: 11px; color: #5a7fa8; margin-top: 2px; }
.cb-days    { font-size: 30px; font-weight: 800; line-height: 1; text-align: right; }
.cb-suffix  { font-size: 11px; color: #9cb8d8; text-align: right; margin-top: 2px; }
.days-urgent  { color: #f87171; } .days-warning { color: #fbbf24; } .days-info { color: #818cf8; } .days-neutral { color: #4ade80; }
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.data-full  { grid-column: 1 / -1; }
.dk { font-size: 10px; text-transform: uppercase; letter-spacing: 0.7px; color: #4d7099; margin-bottom: 4px; }
.dv { font-size: 14px; font-weight: 600; color: #d0e0f0; }
.dv.money { color: #c9a84c; } .dv.green { color: #4ade80; } .dv.warn { color: #fbbf24; }
.dv.sm    { font-size: 12px; font-weight: 400; color: #9cb8d8; }
.divider { height: 1px; background: #1a2e4a; margin: 14px 0; }
.sub-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.7px; color: #4d7099; margin-bottom: 10px; }
.dates-list { display: flex; flex-direction: column; gap: 7px; }
.date-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #0d1726; border-radius: 6px; border: 1px solid #1a2e4a; }
.date-name { font-size: 12px; color: #7a9cc0; }
.date-val  { font-size: 13px; font-weight: 600; color: #d0e0f0; }
.date-tag  { font-size: 10px; padding: 2px 7px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.tag-hot    { background: rgba(248,113,113,0.15); color: #f87171; }
.tag-warm   { background: rgba(251,191,36,0.15);  color: #fbbf24; }
.tag-future { background: rgba(74,222,128,0.1);   color: #4ade80; }
.tag-far    { background: rgba(129,140,248,0.1);  color: #818cf8; }
.contacts-list { display: flex; flex-direction: column; gap: 8px; }
.contact-row { display: grid; grid-template-columns: 110px 1fr; gap: 8px; font-size: 12px; }
.contact-role { color: #4d7099; }
.contact-info { color: #9cb8d8; }
.contact-info span { display: block; }
.contact-info .email { color: #4d7099; font-size: 11px; }
.comm-box { background: #0d1726; border: 1px solid #1a2e4a; border-radius: 8px; padding: 14px 16px; }
.comm-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid #1a2e4a; font-size: 12px; }
.comm-row:last-child { border-bottom: none; }
.comm-label { color: #7a9cc0; }
.comm-val   { font-weight: 600; color: #c9a84c; text-align: right; }
.comm-total { font-size: 14px; color: #f0c040; }
.comm-note  { font-weight: 400; color: #4d7099; font-size: 11px; }
.alert-box { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.25); border-radius: 8px; padding: 10px 14px; font-size: 12px; color: #f9a8a8; margin-top: 12px; line-height: 1.6; }
.alert-box strong { color: #f87171; }
.checklist { display: flex; flex-direction: column; gap: 7px; }
.check-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.4; }
.ci { width: 16px; height: 16px; border-radius: 3px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 9px; margin-top: 1px; }
.ci-missing { background: rgba(248,113,113,0.2); color: #f87171; border: 1px solid rgba(248,113,113,0.4); }
.ci-done    { background: rgba(74,222,128,0.15); color: #4ade80; border: 1px solid rgba(74,222,128,0.3); }
.ct-missing { color: #f9a8a8; }
.ct-done    { color: #5a7fa8; text-decoration: line-through; }
.note-item { font-size: 12px; color: #7a9cc0; padding: 6px 0; border-bottom: 1px solid #1a2e4a; line-height: 1.5; }
.note-item:last-child { border-bottom: none; }
.client-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding: 11px 16px; background: #13233c; border: 1px solid #2e5a8a; border-radius: 8px; color: #9cc0ec; font-size: 12px; font-weight: 600; text-decoration: none; }
.client-link:hover { background: #16294a; border-color: #3a6ea5; }
.client-link .cl-arrow { color: #5a7fa8; font-weight: 700; }

/* SHOWINGS */
.showings-agenda { display: flex; flex-direction: column; }
.showing-dayhdr { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; color: #c9a84c; padding: 8px 0 6px; border-bottom: 1px solid #1a2e4a; margin-bottom: 6px; }
.showing-dayhdr.next { margin-top: 8px; }
.showing-arow { display: flex; align-items: center; gap: 10px; padding: 7px 4px; }
.showing-time { font-size: 12px; font-weight: 700; color: #d0e0f0; min-width: 74px; }
.showing-name { flex: 1; font-size: 12px; color: #c9d6e8; }
.showing-name span { color: #5a7fa8; }
.showing-contact { font-size: 11px; color: #4d7099; margin-top: 2px; }
.showing-notes { font-size: 11px; color: #7a9cc0; margin-top: 3px; font-style: italic; line-height: 1.5; }
.showing-status { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 8px; border-radius: 11px; white-space: nowrap; }
.ss-requested { background: rgba(251,191,36,0.15); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.ss-confirmed { background: rgba(74,222,128,0.12); color: #4ade80; border: 1px solid rgba(74,222,128,0.25); }
.ss-completed { background: rgba(129,140,248,0.12); color: #818cf8; border: 1px solid rgba(129,140,248,0.25); }
.showing-prop  { font-size: 11px; color: #818cf8; font-weight: 600; }
.showings-empty { font-size: 12px; color: #4d7099; padding: 12px 14px; background: #0d1726; border: 1px dashed #1e3a5f; border-radius: 8px; line-height: 1.5; }

/* CLIENT OUTREACH */
.outreach-wrap { background:#111d30; border:1px solid #1e3a5f; border-radius:12px; padding:24px 28px; }
.outreach-sub { font-size:11px; text-transform:uppercase; letter-spacing:0.7px; color:#c9a84c; margin:18px 0 10px; }
.outreach-sub:first-child { margin-top:0; }
.ev-list { display:flex; flex-direction:column; gap:7px; }
.ev-row { display:grid; grid-template-columns:62px 1fr auto; gap:12px; align-items:center; padding:9px 14px; background:#0d1726; border:1px solid #1a2e4a; border-radius:8px; }
.ev-row.bday { border-left:3px solid #f0a6d0; }
.ev-row.anni { border-left:3px solid #6cc8a0; }
.ev-icon { font-size:20px; text-align:center; }
.ev-main .ev-name { font-size:13px; font-weight:700; color:#fff; }
.ev-main .ev-detail { font-size:11px; color:#7a9cc0; margin-top:2px; }
.ev-main .ev-reach { font-size:11px; color:#4d7099; margin-top:2px; }
.ev-right { text-align:right; }
.ev-when { font-size:12px; font-weight:600; color:#d0e0f0; }
.ev-empty { font-size:12px; color:#4d7099; padding:12px 14px; background:#0d1726; border:1px dashed #1e3a5f; border-radius:8px; line-height:1.5; }
.roster { width:100%; border-collapse:collapse; font-size:12px; }
.roster th { text-align:left; font-size:10px; text-transform:uppercase; letter-spacing:0.6px; color:#4d7099; padding:8px 10px; border-bottom:1px solid #1e3a5f; white-space:nowrap; }
.roster td { padding:9px 10px; border-bottom:1px solid #14233a; color:#c9d6e8; vertical-align:top; }
.roster tr:last-child td { border-bottom:none; }
.roster .r-name { font-weight:700; color:#fff; }
.roster .r-prop { color:#9cb8d8; }
.roster .r-muted { color:#5a7fa8; }
.pill { font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; padding:2px 7px; border-radius:10px; white-space:nowrap; }
.pill-buyer  { background:rgba(108,200,160,0.14); color:#6cc8a0; }
.pill-seller { background:rgba(129,140,248,0.14); color:#a3acff; }
.pill-both   { background:rgba(201,168,76,0.16);  color:#e0c060; }
.pill-past   { background:rgba(122,156,192,0.14); color:#9cb8d8; }
.need-dob { color:#f87171; font-weight:700; }
.contact-method { font-size:10px; text-transform:uppercase; letter-spacing:0.5px; color:#7a9cc0; }

/* SUMMARY STRIP (sub-pages) */
.summary-strip { background: #111d30; border-bottom: 1px solid #1e3a5f; padding: 16px 40px; display: flex; gap: 40px; flex-wrap: wrap; }
.si-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: #5a7fa8; margin-bottom: 3px; }
.si-value { font-size: 20px; font-weight: 700; color: #c9a84c; }
.si-value.white { color: #fff; } .si-value.green { color: #4ade80; } .si-value.red { color: #f87171; }

.footer { text-align: center; padding: 40px 40px 0; font-size: 11px; color: #2a4060; line-height: 1.8; }

@media (max-width: 900px) {
  .header, .summary-strip, .section, .bento, .page-intro { padding-left: 20px; padding-right: 20px; }
  .deals-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile.span2, .tile.span3, .crit-bar { grid-column: span 1; }
  .roster-scroll { overflow-x:auto; }
}
