/* EcoManage — CBRE Design System v3 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Roboto+Mono:wght@400;500&display=swap');

:root {
  --cbre-dark:          #003F2D;
  --cbre-mid:           #00593f;
  --cbre-green:         #3CA358;
  --cbre-light-green:   #e8f5e9;
  --cbre-pale:          #f0f7f3;
  --bg:                 #f0f4f2;
  --card-bg:            #ffffff;
  --text-primary:       #0d1f18;
  --text-secondary:     #3d5a4e;
  --text-muted:         #7fa296;
  --border:             #cfddd7;
  --border-light:       #e5efeb;
  --shadow-sm:          0 1px 3px rgba(0,63,45,0.07);
  --shadow:             0 2px 10px rgba(0,63,45,0.09), 0 0 0 1px rgba(0,63,45,0.04);
  --shadow-md:          0 6px 20px rgba(0,63,45,0.11), 0 1px 4px rgba(0,63,45,0.07);
  --shadow-hover:       0 10px 28px rgba(0,63,45,0.15), 0 2px 6px rgba(0,63,45,0.09);
  --radius:             14px;
  --radius-sm:          8px;
  --navbar-h:           58px;
  --subnav-h:           46px;
  --header-h:           104px;
  --footer-h:           60px;
  --warn-amber:         #f59e0b;
  --warn-red:           #ef4444;
  --warn-blue:          #3b82f6;
  --gradient-hero:      linear-gradient(145deg, #001810 0%, #002e20 45%, #003F2D 100%);
  --gradient-card:      linear-gradient(135deg, #003F2D 0%, #00593f 100%);
  --gradient-accent:    linear-gradient(135deg, #3CA358 0%, #29a047 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ══════════════════════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════════════════════ */

.lp-body {
  background: #fff;
  font-family: 'Inter', sans-serif;
}

/* Landing Nav */
.lp-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}
.lp-nav.scrolled {
  background: rgba(0, 26, 18, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.lp-nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.lp-nav-brand img { height: 24px; filter: brightness(0) invert(1); opacity: 0.9; }
.lp-brand-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.3); margin: 0 8px; }
.lp-nav-brand .brand-label { font-size: 15px; font-weight: 700; color: #fff; }
.lp-nav-brand .brand-label .acc { color: var(--cbre-green); }
.lp-nav-actions { display: flex; align-items: center; gap: 10px; }
.lp-nav-link {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.75);
  text-decoration: none; padding: 6px 14px; border-radius: 6px;
  transition: color 0.2s;
}
.lp-nav-link:hover { color: #fff; }
.lp-nav-signin {
  background: var(--cbre-green); color: #fff; border: none;
  padding: 9px 20px; border-radius: 7px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background 0.2s, transform 0.15s;
}
.lp-nav-signin:hover { background: #2d8a47; transform: translateY(-1px); }

/* Hero */
.lp-hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: flex-start;
  overflow: hidden;
}
.lp-hero-bg {
  position: absolute; inset: 0;
  background-image: url('/static/images/CBRE_One.jpg');
  background-size: cover; background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.lp-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(0,15,9,0.93) 0%, rgba(0,40,28,0.82) 40%, rgba(0,63,45,0.55) 70%, rgba(0,63,45,0.15) 100%);
}
.lp-hero-content {
  position: relative; z-index: 1;
  padding: 0 80px;
  max-width: 780px;
}
.lp-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(60,163,88,0.2); border: 1px solid rgba(60,163,88,0.45);
  border-radius: 30px; padding: 5px 14px;
  font-size: 11.5px; font-weight: 600; color: var(--cbre-green);
  letter-spacing: 0.4px; margin-bottom: 24px;
}
.lp-hero-badge i { font-size: 10px; }
.lp-hero-heading {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.lp-hero-heading .accent { color: var(--cbre-green); }
.lp-hero-sub {
  font-size: clamp(15px, 2vw, 17px);
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 560px;
}
.lp-hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lp-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient-accent); color: #fff;
  padding: 14px 28px; border-radius: 8px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(60,163,88,0.4);
}
.lp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(60,163,88,0.5); }
.lp-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 14px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  backdrop-filter: blur(4px);
}
.lp-btn-ghost:hover { background: rgba(255,255,255,0.17); border-color: rgba(255,255,255,0.4); color: #fff; }

.lp-hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.5); font-size: 12px; font-weight: 500;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: bounce 2s infinite;
  text-decoration: none;
}
.lp-hero-scroll i { font-size: 18px; }
@keyframes bounce { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,6px)} }

/* Stats Bar */
.lp-stats {
  background: var(--gradient-card);
  padding: 40px 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.lp-stat {
  padding: 16px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.lp-stat:last-child { border-right: none; }
.lp-stat-num {
  font-size: 34px; font-weight: 800;
  color: #fff; letter-spacing: -1px;
  font-family: 'Inter', sans-serif;
  line-height: 1;
  margin-bottom: 6px;
}
.lp-stat-num .acc { color: var(--cbre-green); }
.lp-stat-label { font-size: 11.5px; color: rgba(255,255,255,0.55); font-weight: 500; letter-spacing: 0.3px; }

/* Features Section */
.lp-section {
  padding: 80px;
}
.lp-section-alt { background: #f8fbf9; }
.lp-section-dark { background: var(--gradient-hero); color: #fff; }

.lp-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--cbre-green);
  margin-bottom: 12px;
}
.lp-section-heading {
  font-size: clamp(26px, 3.5vw, 38px); font-weight: 800;
  color: var(--cbre-dark); letter-spacing: -0.8px;
  margin-bottom: 14px; line-height: 1.15;
}
.lp-section-dark .lp-section-heading { color: #fff; }
.lp-section-desc {
  font-size: 15px; color: var(--text-secondary); max-width: 540px;
  line-height: 1.65; margin-bottom: 48px;
}
.lp-section-dark .lp-section-desc { color: rgba(255,255,255,0.65); }

.lp-features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.lp-feature-card {
  background: #fff; border-radius: 16px;
  padding: 28px 26px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.2s;
}
.lp-feature-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.lp-feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.lp-feature-icon.green  { background: var(--cbre-light-green); color: var(--cbre-dark); }
.lp-feature-icon.blue   { background: #eff6ff; color: var(--warn-blue); }
.lp-feature-icon.amber  { background: #fffbeb; color: var(--warn-amber); }
.lp-feature-icon.teal   { background: #f0fdfa; color: #0d9488; }
.lp-feature-icon.purple { background: #faf5ff; color: #7c3aed; }
.lp-feature-icon.red    { background: #fff1f2; color: #e11d48; }

.lp-feature-title { font-size: 15px; font-weight: 700; color: var(--cbre-dark); margin-bottom: 8px; }
.lp-feature-desc  { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }

/* Split section (image + text) */
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.lp-split-text {}
.lp-split-img { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); }
.lp-split-img img { width: 100%; display: block; height: 360px; object-fit: cover; }
.lp-check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.lp-check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-secondary); }
.lp-check-list li i { color: var(--cbre-green); font-size: 14px; margin-top: 2px; flex-shrink: 0; }

/* CTA section */
.lp-cta {
  text-align: center; padding: 100px 80px;
  background: var(--gradient-hero);
  position: relative; overflow: hidden;
}
.lp-cta::before {
  content: '';
  position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(60,163,88,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.lp-cta h2 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  color: #fff; letter-spacing: -1px; margin-bottom: 14px;
}
.lp-cta p { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 36px; }
.lp-cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Landing Footer */
.lp-footer {
  background: #000f08; padding: 28px 80px;
  display: flex; align-items: center; justify-content: space-between;
}
.lp-footer-brand { display: flex; align-items: center; gap: 8px; }
.lp-footer-brand img { height: 20px; filter: brightness(0) invert(1); opacity: 0.7; }
.lp-footer-brand span { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.6); }
.lp-footer-center { font-size: 12px; color: rgba(255,255,255,0.4); }
.lp-footer-credit { font-size: 11px; color: rgba(255,255,255,0.4); text-align: right; }
.lp-footer-credit a { color: var(--cbre-green); text-decoration: none; }

/* ══════════════════════════════════════════════════════════
   DASHBOARD NAV
══════════════════════════════════════════════════════════ */

.em-navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  background: var(--cbre-dark);
  background-image: linear-gradient(90deg, #002318 0%, var(--cbre-dark) 40%, #004d38 100%);
  display: flex; align-items: center;
  padding: 0 24px; z-index: 1000; gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.em-navbar .brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0; margin-right: auto;
}
.em-navbar .brand img.logo {
  height: 24px; object-fit: contain;
  filter: brightness(0) invert(1); opacity: 0.9;
}
.brand-divider { width: 1px; height: 18px; background: rgba(255,255,255,0.2); margin: 0 10px; }

.em-navbar .brand .app-name {
  font-size: 16px; font-weight: 700; color: #fff;
  letter-spacing: -0.2px; white-space: nowrap;
}
.em-navbar .brand .app-name .eco    { color: rgba(255,255,255,0.82); }
.em-navbar .brand .app-name .manage { color: var(--cbre-green); }

.navbar-actions { display: flex; align-items: center; gap: 6px; }

.notif-btn {
  position: relative; width: 38px; height: 38px;
  border-radius: 9px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: background 0.15s;
}
.notif-btn:hover { background: rgba(255,255,255,0.17); color: #fff; }

.notif-badge {
  position: absolute; top: 6px; right: 6px;
  width: 15px; height: 15px;
  background: var(--warn-red); border-radius: 50%;
  font-size: 8.5px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--cbre-dark);
}

.profile-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 11px 5px 5px; border-radius: 9px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88); cursor: pointer;
  font-size: 13px; font-weight: 500;
  font-family: 'Inter', sans-serif; transition: background 0.15s;
  margin-left: 4px;
}
.profile-btn:hover { background: rgba(255,255,255,0.17); }

.profile-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(60,163,88,0.4);
}
.profile-name { font-size: 13px; font-weight: 500; }
.profile-caret { font-size: 10px; opacity: 0.55; margin-left: 2px; }

/* ── DROPDOWNS ─────────────────────────────────────── */
.dropdown-wrap { position: relative; }

.dropdown-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); min-width: 268px;
  z-index: 2000; overflow: hidden; display: none;
  animation: dropdown-in 0.16s ease;
}
.dropdown-panel.open { display: block; }

@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
  padding: 11px 16px 9px;
  font-size: 10.5px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 1px solid var(--border-light);
}

.notif-item {
  display: flex; gap: 10px; padding: 11px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: background 0.1s;
}
.notif-item:hover { background: var(--cbre-pale); }
.notif-item:last-child { border-bottom: none; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.notif-text { font-size: 12px; color: var(--text-primary); line-height: 1.45; }
.notif-time { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

.profile-panel { min-width: 224px; }
.profile-info {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, var(--cbre-pale), #f8fbf9);
}
.profile-info .pi-name { font-size: 13px; font-weight: 700; color: var(--cbre-dark); }
.profile-info .pi-role { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; font-size: 13px; color: var(--text-primary);
  cursor: pointer; transition: background 0.1s; text-decoration: none;
}
.dropdown-item:hover { background: var(--cbre-pale); }
.dropdown-item i { width: 16px; color: var(--text-muted); font-size: 13px; }
.dropdown-item.danger { color: #ef4444; }
.dropdown-item.danger i { color: #ef4444; }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 4px 0; }

/* ── SUBNAV ────────────────────────────────────────── */
.em-subnav {
  position: fixed; top: var(--navbar-h); left: 0; right: 0;
  height: var(--subnav-h);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px; z-index: 900; gap: 0;
  box-shadow: 0 1px 4px rgba(0,63,45,0.05);
}

.building-select-wrap { position: relative; flex-shrink: 0; margin-right: 20px; }
.building-select-wrap select {
  padding: 6px 34px 6px 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 600;
  color: var(--cbre-dark); background: var(--cbre-pale);
  appearance: none; cursor: pointer; transition: border-color 0.2s; min-width: 204px;
}
.building-select-wrap select:focus { outline: none; border-color: var(--cbre-green); }
.building-select-wrap::after {
  content: '\25BE'; position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%); color: var(--cbre-dark); pointer-events: none; font-size: 13px;
}

.subnav-sep { width: 1px; height: 20px; background: var(--border); margin: 0 6px; }
.subnav-links { display: flex; align-items: center; gap: 2px; flex: 1; }

.subnav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 15px 10px; height: var(--subnav-h);
  font-size: 12.5px; font-weight: 500;
  color: var(--text-secondary); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.subnav-link i { font-size: 13px; }
.subnav-link:hover { color: var(--cbre-dark); background: var(--cbre-pale); }
.subnav-link.active { color: var(--cbre-dark); border-bottom-color: var(--cbre-green); font-weight: 600; }

/* ── MAIN LAYOUT ───────────────────────────────────── */
.em-main {
  padding-top: calc(var(--header-h) + 22px);
  padding-bottom: calc(var(--footer-h) + 22px);
  padding-left: 28px; padding-right: 28px;
  min-height: 100vh;
  max-width: 1480px; margin: 0 auto;
}

/* ── BUILDING CONTEXT BAR ──────────────────────────── */
.building-ctx {
  display: flex; align-items: center; gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.building-ctx::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--gradient-accent);
}
.building-ctx-img {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0; border: 2px solid var(--border);
  margin-left: 4px;
}
.building-ctx-name { font-size: 15px; font-weight: 700; color: var(--cbre-dark); line-height: 1.2; }
.building-ctx-addr { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.building-ctx-score { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ctx-badge {
  display: flex; align-items: center; gap: 7px;
  background: var(--cbre-pale); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 24px;
  font-size: 12px; font-weight: 500; color: var(--text-secondary);
}
.ctx-badge .grade-pill {
  font-size: 11px; font-weight: 700; color: #fff;
  padding: 2px 8px; border-radius: 5px;
}

/* ── PAGE HEADER ───────────────────────────────────── */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 18px; gap: 12px; flex-wrap: wrap;
}
.page-title { font-size: 21px; font-weight: 800; color: var(--cbre-dark); letter-spacing: -0.4px; }
.page-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* Export Button */
.btn-export {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card-bg); color: var(--cbre-dark);
  border: 1.5px solid var(--border);
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.btn-export:hover { border-color: var(--cbre-green); background: var(--cbre-pale); color: var(--cbre-mid); }
.btn-export i { font-size: 13px; }

/* ── KPI CARDS ─────────────────────────────────────── */
.kpi-row {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 16px; margin-bottom: 16px;
}

.kpi-card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
  display: flex; align-items: flex-start; gap: 16px;
  transition: box-shadow 0.2s; position: relative; overflow: hidden;
}
.kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gradient-accent); border-radius: 2px 0 0 2px;
}
.kpi-card.carbon-card::before { background: linear-gradient(180deg, var(--warn-blue), #2563eb); }
.kpi-card.alert-card::before  { background: linear-gradient(180deg, var(--warn-amber), #d97706); }
.kpi-card:hover { box-shadow: var(--shadow-hover); }

/* EcoScore Gauge Card */
.eco-gauge-card {
  flex-direction: column; align-items: center; justify-content: center;
  padding: 18px 22px 14px; gap: 0;
}
.eco-gauge-card::before {
  width: 4px; background: var(--gradient-accent);
}
.gauge-wrap { position: relative; display: flex; justify-content: center; }
.gauge-svg { display: block; width: 130px; height: 116px; }
.gauge-sub {
  text-align: center; margin-top: 4px;
  font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-muted); font-weight: 600;
}

.kpi-icon {
  width: 46px; height: 46px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; flex-shrink: 0;
}
.kpi-icon.green  { background: linear-gradient(135deg, #e8f5e9, #c8ead0); color: var(--cbre-dark); }
.kpi-icon.blue   { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: var(--warn-blue); }
.kpi-icon.amber  { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: var(--warn-amber); }

.kpi-content { flex: 1; min-width: 0; }
.kpi-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.9px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.kpi-value { font-size: 30px; font-weight: 700; color: var(--text-primary); line-height: 1; font-family: 'Roboto Mono', monospace; display: flex; align-items: center; gap: 8px; }
.grade-badge { display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: 5px; color: #fff; font-family: 'Inter', sans-serif; }
.kpi-sub { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* ── STAT MINI ─────────────────────────────────────── */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.stat-mini {
  background: var(--card-bg); border-radius: var(--radius-sm);
  padding: 12px 16px; border: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  transition: box-shadow 0.18s;
}
.stat-mini:hover { box-shadow: var(--shadow-sm); }
.stat-mini-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.stat-mini-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); font-weight: 600; }
.stat-mini-value { font-size: 18px; font-weight: 700; color: var(--text-primary); font-family: 'Roboto Mono', monospace; margin-top: 1px; line-height: 1; }
.stat-mini-unit { font-size: 10px; color: var(--text-muted); font-weight: 400; font-family: 'Inter', sans-serif; }

/* ── BUSINESS IMPACT ROW ───────────────────────────── */
.biz-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.biz-card {
  background: var(--cbre-dark);
  background-image: linear-gradient(135deg, #002318 0%, var(--cbre-dark) 100%);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 12px;
  position: relative; overflow: hidden;
}
.biz-card::after {
  content: ''; position: absolute; bottom: -20px; right: -20px;
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(60,163,88,0.12); pointer-events: none;
}
.biz-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--cbre-green); flex-shrink: 0;
}
.biz-body {}
.biz-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255,255,255,0.45); font-weight: 600; margin-bottom: 3px; }
.biz-value { font-size: 18px; font-weight: 700; color: #fff; font-family: 'Roboto Mono', monospace; line-height: 1; }
.biz-value .unit { font-size: 10px; color: rgba(255,255,255,0.5); font-family: 'Inter', sans-serif; font-weight: 400; }
.biz-sub { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 3px; }
.biz-status-ok  { color: var(--cbre-green); font-weight: 700; font-size: 16px; }
.biz-status-warn{ color: var(--warn-amber); font-weight: 700; font-size: 16px; }
.biz-status-bad { color: var(--warn-red);   font-weight: 700; font-size: 16px; }

/* ── SECTION HEADER ────────────────────────────────── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title {
  font-size: 14px; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ''; display: inline-block; width: 3px; height: 15px;
  background: var(--gradient-accent); border-radius: 2px;
}
.section-subtitle { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ── RANGE TABS ────────────────────────────────────── */
.range-tabs { display: flex; gap: 3px; background: var(--bg); border: 1px solid var(--border); padding: 3px; border-radius: 7px; }
.range-tab { padding: 4px 13px; border-radius: 5px; font-size: 11.5px; font-weight: 600; cursor: pointer; border: none; background: transparent; color: var(--text-secondary); font-family: 'Inter', sans-serif; transition: all 0.15s; }
.range-tab.active, .range-tab:hover { background: var(--cbre-dark); color: #fff; }

/* ── CHART CARD ────────────────────────────────────── */
.chart-card { background: var(--card-bg); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 16px; }
.chart-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.metric-toggles { display: flex; gap: 6px; flex-wrap: wrap; }
.metric-toggle { display: flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; border: 1.5px solid var(--border); cursor: pointer; font-size: 11px; font-weight: 500; background: transparent; color: var(--text-secondary); font-family: 'Inter', sans-serif; transition: all 0.15s; user-select: none; }
.metric-toggle .dot { width: 7px; height: 7px; border-radius: 50%; }
.metric-toggle.active { background: var(--bg); border-color: currentColor; }
.chart-wrap { position: relative; height: 290px; }

/* ── FORECAST CARD ─────────────────────────────────── */
.forecast-card { background: var(--card-bg); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.forecast-legend { display: flex; gap: 16px; font-size: 11px; color: var(--text-secondary); }
.forecast-legend span { display: flex; align-items: center; gap: 5px; }
.forecast-dot-inline { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.forecast-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 14px; }
.forecast-row { background: var(--cbre-pale); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 10px 8px; text-align: center; }
.forecast-date { font-size: 10px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.forecast-val { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 600; font-family: 'Roboto Mono', monospace; margin-top: 4px; color: var(--text-primary); }
.forecast-unit { font-size: 9px; color: var(--text-muted); font-family: 'Inter', sans-serif; font-weight: 400; }
.forecast-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* ── TWO COLUMN ────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 360px; gap: 16px; margin-bottom: 16px; align-items: start; }

/* ── ALERTS ────────────────────────────────────────── */
.alerts-panel { background: var(--card-bg); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.alert-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-light); font-size: 12px; }
.alert-item:last-child { border-bottom: none; }
.alert-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.alert-dot.warning { background: var(--warn-amber); }
.alert-dot.info    { background: var(--warn-blue); }
.alert-no-issues { color: var(--cbre-green); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; padding: 6px 0; }

/* ── RECOMMENDATIONS ───────────────────────────────── */
.recs-card { background: var(--card-bg); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.rec-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.rec-item:last-child { border-bottom: none; }
.rec-icon { font-size: 18px; flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--cbre-light-green), #d4eedb); border-radius: var(--radius-sm); }
.rec-title { font-size: 12px; font-weight: 700; color: var(--cbre-dark); margin-bottom: 3px; }
.rec-body  { font-size: 11px; color: var(--text-secondary); line-height: 1.5; }

/* ── PORTFOLIO ─────────────────────────────────────── */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.portfolio-tile {
  background: var(--card-bg); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  cursor: pointer; transition: all 0.22s;
  border: 2px solid transparent; display: block;
}
.portfolio-tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--cbre-green); }
.portfolio-tile img { width: 100%; height: 115px; object-fit: cover; display: block; }
.portfolio-tile-body { padding: 12px 14px; }
.portfolio-tile-name { font-size: 12.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; line-height: 1.3; }
.portfolio-tile-addr { font-size: 10.5px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.3; }
.portfolio-tile-footer { display: flex; align-items: center; justify-content: space-between; }
.score-badge { display: flex; align-items: center; gap: 5px; }
.score-badge .grade { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 4px; color: #fff; }
.score-badge .score-num { font-size: 11px; color: var(--text-secondary); font-family: 'Roboto Mono', monospace; }
.alert-pill { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 10px; background: #fef3c7; color: #92400e; }
.alert-pill.none { background: var(--cbre-light-green); color: #166534; }

/* ── MANAGE PAGE ───────────────────────────────────── */
.manage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-card { background: var(--card-bg); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 14px; font-weight: 700; color: var(--cbre-dark); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--cbre-light-green); display: flex; align-items: center; gap: 8px; }
.form-row { margin-bottom: 14px; }
.form-label { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; letter-spacing: 0.2px; }
.form-control { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-size: 13px; color: var(--text-primary); background: var(--bg); transition: border-color 0.2s, background 0.2s; }
.form-control:focus { outline: none; border-color: var(--cbre-green); background: #fff; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── BUTTONS ───────────────────────────────────────── */
.btn-primary { background: var(--gradient-card); color: #fff; border: none; padding: 9px 22px; border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity 0.2s; display: inline-flex; align-items: center; gap: 7px; }
.btn-primary:hover { opacity: 0.88; }
.btn-secondary { background: var(--gradient-accent); color: #fff; border: none; padding: 9px 22px; border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity 0.2s; display: inline-flex; align-items: center; gap: 7px; }
.btn-secondary:hover { opacity: 0.88; }
.btn-outline { background: transparent; color: var(--cbre-dark); border: 1.5px solid var(--border); padding: 8px 18px; border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 7px; }
.btn-outline:hover { border-color: var(--cbre-dark); background: var(--cbre-pale); }

/* ── LOADING ───────────────────────────────────────── */
.loading-pulse { background: linear-gradient(90deg, var(--bg) 25%, var(--border-light) 50%, var(--bg) 75%); background-size: 200% 100%; animation: pulse 1.5s infinite; border-radius: var(--radius-sm); min-height: 20px; }
@keyframes pulse { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── TOAST ─────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 76px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--cbre-dark); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px; animation: toast-in 0.25s ease; min-width: 220px; max-width: 340px; }
.toast.success { border-left: 4px solid var(--cbre-green); }
.toast.error   { border-left: 4px solid var(--warn-red); }
@keyframes toast-in  { from{transform:translateX(40px);opacity:0} to{transform:translateX(0);opacity:1} }
@keyframes toast-out { from{opacity:1} to{opacity:0;transform:translateX(40px)} }

/* ── FOOTER ────────────────────────────────────────── */
.em-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--footer-h);
  background: var(--cbre-dark);
  background-image: linear-gradient(90deg, #001a12 0%, var(--cbre-dark) 50%);
  color: rgba(255,255,255,0.65);
  display: flex; align-items: center; padding: 0 28px;
  justify-content: space-between; z-index: 900;
  border-top: 2px solid rgba(60,163,88,0.5);
}
.footer-product { font-size: 13px; font-weight: 700; color: #fff; }
.footer-tagline { font-size: 10.5px; color: rgba(255,255,255,0.4); margin-top: 1px; }
.footer-hackutd { font-size: 11.5px; font-weight: 600; color: var(--cbre-green); letter-spacing: 0.3px; }
.footer-credit  { font-size: 11px; color: rgba(255,255,255,0.45); }
.footer-credit a { color: var(--cbre-green); text-decoration: none; font-weight: 600; }
.footer-credit a:hover { text-decoration: underline; }

/* ── LOGIN PAGE ────────────────────────────────────── */
.login-page {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--gradient-hero);
  position: relative; overflow: hidden;
}
.login-page::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 550px; height: 550px; border-radius: 50%;
  background: radial-gradient(circle, rgba(60,163,88,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.login-header { display: flex; align-items: center; gap: 10px; padding: 24px 32px; }
.login-header img { height: 26px; filter: brightness(0) invert(1); opacity: 0.9; }
.login-header .app-name { font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.9); }
.login-header .app-name .manage { color: var(--cbre-green); }
.login-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; z-index: 1; }
.login-card { background: #fff; border-radius: 18px; padding: 40px 44px; width: 100%; max-width: 420px; box-shadow: 0 28px 70px rgba(0,0,0,0.28); }
.login-card-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); }
.login-card-logo img { height: 26px; }
.login-card-logo .lc-title { font-size: 14px; font-weight: 700; color: var(--cbre-dark); }
.login-card-logo .lc-sub { font-size: 11px; color: var(--text-muted); }
.login-heading { font-size: 22px; font-weight: 800; color: var(--cbre-dark); margin-bottom: 4px; letter-spacing: -0.4px; }
.login-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 26px; }
.login-form .form-row { margin-bottom: 16px; }
.login-form .form-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; display: block; }
.login-form .form-control { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 13.5px; font-family: 'Inter', sans-serif; color: var(--text-primary); transition: border-color 0.2s; }
.login-form .form-control:focus { outline: none; border-color: var(--cbre-green); box-shadow: 0 0 0 3px rgba(60,163,88,0.12); }
.login-forgot { font-size: 11.5px; color: var(--cbre-green); text-align: right; text-decoration: none; display: block; margin-top: -8px; margin-bottom: 20px; }
.login-forgot:hover { text-decoration: underline; }
.btn-login { width: 100%; padding: 12px; background: var(--gradient-card); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; font-family: 'Inter', sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity 0.2s; }
.btn-login:hover { opacity: 0.88; }
.login-note { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.login-footer { text-align: center; padding: 18px; color: rgba(255,255,255,0.35); font-size: 11px; position: relative; z-index: 1; }
.login-footer a { color: var(--cbre-green); text-decoration: none; }

/* ── UTILS ─────────────────────────────────────────── */
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1200px) {
  .two-col { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 240px 1fr 1fr; }
  .biz-row { grid-template-columns: 1fr 1fr; }
  .forecast-grid { grid-template-columns: repeat(4, 1fr); }
  .lp-features-grid { grid-template-columns: 1fr 1fr; }
  .lp-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .eco-gauge-card { grid-column: span 2; }
  .lp-split { grid-template-columns: 1fr; }
  .lp-section { padding: 50px 32px; }
  .lp-stats { padding: 32px; grid-template-columns: 1fr 1fr; }
  .lp-footer { flex-direction: column; gap: 8px; text-align: center; }
  .lp-nav { padding: 0 24px; }
  .lp-hero-content { padding: 0 32px; }
  .lp-cta { padding: 60px 32px; }
}

@media (max-width: 768px) {
  .em-main { padding-left: 16px; padding-right: 16px; }
  .kpi-row { grid-template-columns: 1fr; }
  .eco-gauge-card { grid-column: span 1; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .biz-row { grid-template-columns: 1fr 1fr; }
  .manage-grid { grid-template-columns: 1fr; }
  .forecast-grid { grid-template-columns: repeat(2, 1fr); }
  .subnav-links { overflow-x: auto; }
  .subnav-link .link-text { display: none; }
  .lp-features-grid { grid-template-columns: 1fr; }
  .lp-stats { grid-template-columns: 1fr 1fr; }
}
