@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  --bg: #040b16;
  --bg-soft: #08111f;
  --surface: rgba(10, 18, 34, 0.82);
  --surface-strong: rgba(9, 16, 30, 0.95);
  --surface-elevated: rgba(14, 25, 46, 0.95);
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(34, 197, 94, 0.18);
  --text: #edf4ff;
  --muted: #9fb1ca;
  --muted-2: #7f93b2;
  --accent: #22c55e;
  --accent-strong: #16a34a;
  --accent-soft: rgba(34, 197, 94, 0.14);
  --blue: #38bdf8;
  --orange: #fb923c;
  --red: #f87171;
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(34, 197, 94, 0.22), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(56, 189, 248, 0.12), transparent 20%),
    radial-gradient(circle at 85% 20%, rgba(34, 197, 94, 0.14), transparent 26%),
    linear-gradient(180deg, #06101f 0%, #030814 100%);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.5;
}

body.auth-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

body.app-body,
body:not(.auth-page) {
  padding: 18px;
}

img {
  max-width: 100%;
}

button,
a,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.inter-text {
  font-family: 'Inter', sans-serif;
}

.hidden {
  display: none !important;
}

main {
  display: block;
}

.app {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(6, 12, 24, 0.94), rgba(4, 10, 21, 0.96)),
    linear-gradient(135deg, rgba(34, 197, 94, 0.02), rgba(56, 189, 248, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: clamp(18px, 3vw, 32px);
}

.app-shell {
  min-height: calc(100vh - 36px);
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
}

.sidebar {
  background: linear-gradient(180deg, rgba(8, 16, 31, 0.92), rgba(8, 14, 27, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.24), rgba(56, 189, 248, 0.16));
  border: 1px solid rgba(34, 197, 94, 0.2);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.16);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 1.02rem;
  font-weight: 800;
}

.brand span {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 2px;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-nav a,
.bottom-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.sidebar-nav a:hover,
.bottom-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transform: translateX(2px);
}

.sidebar-nav a.active,
.bottom-nav a.active {
  color: #f8fffb;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(56, 189, 248, 0.08));
  border-color: rgba(34, 197, 94, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 10px 24px rgba(34, 197, 94, 0.08);
}

.sidebar-panel {
  margin-top: auto;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 24, 43, 0.95), rgba(10, 18, 34, 0.88));
  border: 1px solid rgba(255,255,255,0.06);
  display: grid;
  gap: 8px;
}

.sidebar-panel strong {
  font-size: 1rem;
}

.sidebar-panel span,
.sidebar-panel p,
.location,
.summary-meta,
.hero-label,
.card p,
.topbar p,
label,
.auth-links a,
.notifications-list,
.activity-item span,
.empty-state,
.card li,
.card li span {
  color: var(--muted);
}

.main-panel {
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 26px;
}

.dashboard-topbar {
  margin-bottom: 28px;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.topbar p {
  margin: 8px 0 0;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 800;
  color: #a7f3d0;
}

.icons {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-notifications {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.icon,
.notification-btn,
.icon-btn,
.edit-btn,
.delete-btn,
.pw-toggle {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.icon:hover,
.notification-btn:hover,
.icon-btn:hover,
.edit-btn:hover,
.delete-btn:hover,
.pw-toggle:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(34, 197, 94, 0.2);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.1);
}

.notification-btn,
.icon-btn,
.edit-btn,
.delete-btn,
.pw-toggle,
.btn,
.btn-primary,
.btn-ghost,
.add-card {
  cursor: pointer;
}

.edit-btn, .delete-btn {
  opacity: 0.8;
  transition: 0.2s;
}

.edit-btn:hover, .delete-btn:hover {
  opacity: 1;
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #fb7185, #ef4444);
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.4);
}

.notifications-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, 90vw);
  padding: 12px;
  border-radius: 18px;
  background: rgba(10, 18, 34, 0.96);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-md);
  z-index: 30;
}

.notifications-panel::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 16px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: rgba(10, 18, 34, 0.96);
  border-left: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.notifications-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}


.notifications-panel__header {
  font-weight: 800;
  margin-bottom: 10px;
}

.notifications-empty {
  margin: 0;
  color: var(--muted);
}

.notification-item {
  list-style: none;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}

.notification-item.is-unread {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.08);
}

.notification-link {
  display: block;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
}

.notification-item__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.notification-item__top span {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.notification-link p {
  margin: 6px 0 0;
  color: var(--muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.stats-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.summary-card,
.hero-card,
.card,
.modal-card,
.auth-card,
.add-card {
  background:
    linear-gradient(180deg, rgba(13, 22, 39, 0.95), rgba(8, 15, 30, 0.94));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 18px 40px rgba(0, 0, 0, 0.24);
}

.summary-card,
.card,
.hero-card,
.auth-card {
  padding: 20px;
}

.summary-card {
  position: relative;
  overflow: hidden;
  min-height: 164px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.summary-card::after {
  content: '';
  position: absolute;
  inset: auto -10% -40% auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.16;
}

.summary-card:hover,
.card:hover,
.add-card:hover,
.hero-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 22px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(34, 197, 94, 0.02);
}

.summary-electricity::after,
.summary-properties::after {
  background: rgba(34, 197, 94, 0.8);
}

.summary-gas::after {
  background: rgba(251, 146, 60, 0.8);
}

.summary-water::after {
  background: rgba(56, 189, 248, 0.8);
}

.summary-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.summary-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
}

.summary-electricity .summary-icon,
.summary-properties .summary-icon {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.summary-gas .summary-icon {
  background: rgba(251, 146, 60, 0.12);
  color: #fdba74;
}

.summary-water .summary-icon {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

.summary-label {
  font-weight: 700;
}

.summary-value {
  display: block;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2,
.card h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-card {
  min-width: 0;
}

.chart-card {
  min-height: 236px;
}

.hero-metrics,
.kpi-grid,
.grid-3,
.content,
.cards {
  display: grid;
  gap: 16px;
}

.hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-metrics > div,
.kpi-grid > * {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.hero-metrics strong,
.kpi-value {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.properties-card {
  min-height: 280px;
}

.activity-card {
  min-height: 280px;
}

.cards,
.property-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card h2 {
  margin-bottom: 8px;
}

.card ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.card li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.card li strong,
.activity-item strong,
.brand strong {
  color: var(--text);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card-link {
  display: block;
}

.card-link:hover {
  color: inherit;
}

.add-card {
  min-height: 160px;
  padding: 22px;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.08), rgba(8, 15, 30, 0.9));
  border: 1px dashed rgba(34, 197, 94, 0.28);
  color: #c9fbd8;
}

.add-card:hover {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.12), rgba(8, 15, 30, 0.94));
}

.btn,
.btn-primary,
.btn-ghost {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #f7fff9;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 10px 26px rgba(34, 197, 94, 0.26);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(34, 197, 94, 0.34);
}

.btn-ghost,
.btn {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.btn-ghost:hover,
.btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(34, 197, 94, 0.18);
}

.btn-danger,
.delete-btn:hover {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.28);
  color: #fecaca;
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.activity-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.activity-dot {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(16, 185, 129, 0.9));
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.08);
  color: transparent;
  margin-top: 6px;
}

.form,
.modal-form,
.content {
  display: grid;
  gap: 14px;
}

.content {
  margin-top: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(34, 197, 94, 0.34);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
  background: rgba(255,255,255,0.05);
}

.pw-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.auth-card {
  max-width: 580px;
  margin: 0 auto;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.auth-links {
  margin-top: 6px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 6, 16, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 22px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(94vw, 720px);
  padding: 10px;
  border-radius: 22px;
  background: rgba(7, 13, 25, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  display: none;
  gap: 8px;
  z-index: 40;
}

.bottom-nav a {
  justify-content: center;
}

.mobile-only {
  display: none;
}

.empty-state {
  padding: 26px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.08);
}

.chart-wrap,
canvas.chart {
  width: 100%;
}

canvas.chart {
  display: block;
  height: 220px;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-only,
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .app {
    padding-bottom: 92px;
  }
}

@media (max-width: 760px) {
  body.app-body,
  body:not(.auth-page) {
    padding: 10px;
  }

  .app {
    border-radius: 22px;
    padding: 16px;
  }

  .topbar,
  .section-head,
  .auth-actions,
  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-grid,
  .grid-3,
  .hero-metrics,
  .cards,
  .property-grid,
  .content {
    grid-template-columns: 1fr;
  }

  .summary-card,
  .card,
  .hero-card,
  .auth-card {
    padding: 18px;
  }

  .topbar h1 {
    font-size: 2rem;
  }

  .notifications-panel {
    right: 0;
  }
}

@media (max-width: 520px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  canvas.chart {
    height: 200px;
  }

  .bottom-nav a {
    padding: 11px 8px;
    font-size: 0.86rem;
  }
}


/* ===== Shared app pages ===== */
.page-stack {
  display: grid;
  gap: 22px;
}

.page-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.page-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.filters-card {
  padding: 20px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.kpi-grid .card,
.page-grid-3 .card {
  min-height: 100%;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.metric-pill {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.metric-pill span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.metric-pill strong {
  display: block;
  margin-top: 8px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.page-section-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 800;
}

.stacked-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.stacked-list li {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.page-note {
  color: var(--muted);
  margin: 0;
}

.wide-card {
  min-height: 100%;
}

.canvas-card .chart-wrap {
  margin-top: 14px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.back-link {
  min-width: 44px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.16);
  color: #d1fae5;
  font-weight: 700;
}

.info-card {
  display: grid;
  gap: 10px;
}

.info-card strong {
  font-size: 1rem;
}

@media (max-width: 1180px) {
  .page-grid-2,
  .page-grid-3 {
    grid-template-columns: 1fr;
  }
}


.summary-heat::after,
.summary-wood::after,
.summary-coal::after,
.summary-pellets::after,
.summary-briquettes::after {
  background: rgba(34, 197, 94, 0.75);
}

.summary-heat .summary-icon,
.summary-wood .summary-icon,
.summary-coal .summary-icon,
.summary-pellets .summary-icon,
.summary-briquettes .summary-icon {
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.property-card {
  min-height: 320px;
}

.property-card__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.property-actions {
  display: flex;
  gap: 10px;
}

.property-actions button {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
}

.property-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.property-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.26);
  color: #d7ffe4;
  font-weight: 700;
}

.property-last {
  color: var(--text);
  font-weight: 600;
}

.commodity-list {
  margin-top: 20px;
}

.commodity-row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.commodity-row:last-child {
  border-bottom: 0;
}

.commodity-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.commodity-icon {
  width: 22px;
  text-align: center;
}

.commodity-row.is-active strong {
  color: var(--text);
}

.commodity-row.is-empty strong {
  color: #fcd34d;
}

.commodity-row.is-missing strong {
  color: var(--muted);
}

.property-card__footer {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.detail-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #dce8fb;
  font-weight: 700;
}


.full-span {
  grid-column: 1 / -1;
}

.properties-overview-card {
  display: grid;
  gap: 24px;
}

.section-head--compact {
  margin-bottom: 0;
}

.section-copy {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 760px;
}

.property-metrics {
  margin-top: 0;
}

.properties-overview-card .property-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.activity-card.full-span {
  min-height: auto;
}

@media (max-width: 900px) {
  .properties-overview-card .property-grid {
    grid-template-columns: 1fr;
  }
}


.member-permissions {
  display: grid;
  gap: 10px;
}

.member-permissions-title {
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 2px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  cursor: pointer;
}

.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
  accent-color: #22c55e;
}

.check-row span {
  line-height: 1.35;
}

.meter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.meter-main {
  min-width: 0;
}

.meter-title {
  font-weight: 600;
  color: #e5e7eb;
}

.meter-subtitle {
  margin-top: 4px;
}

.meter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}


/* ===== Property detail layout ===== */
.property-layout {
  gap: 24px;
}

.property-top-grid {
  align-items: stretch;
}

#metersCard,
#overviewCard,
.property-readings-card {
  min-width: 0;
}

#overviewCard {
  align-self: start;
}

.property-meters-list,
.property-overview-list,
.property-readings-list {
  align-content: start;
}

.property-meters-list li,
.property-overview-list li,
.property-readings-list li {
  display: block;
}


#membersList li {
  display: block;
}

.member-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.member-item__main {
  min-width: 0;
}

.member-item__title {
  font-weight: 600;
  color: #e5e7eb;
}

.member-item__subtitle {
  margin-top: 4px;
}

.member-item__permissions {
  margin-top: 6px;
}

.member-item__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.property-overview-list li {
  min-height: 74px;
}

.overview-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  column-gap: 18px;
  width: 100%;
}

.overview-item__title {
  min-width: 0;
  color: #cbd5e1;
  font-weight: 500;
  line-height: 1.35;
}

.overview-item__value {
  justify-self: end;
  text-align: right;
  color: #ffffff;
  white-space: nowrap;
  min-width: 96px;
}


.property-readings-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.property-readings-list li {
  height: 100%;
}

.reading-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.reading-item__main {
  min-width: 0;
}

.reading-item__title {
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1.35;
}

.reading-item__meta {
  margin-top: 8px;
}

.reading-item__side {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: end;
  gap: 12px;
  min-width: max-content;
}

.reading-item__value {
  min-width: 110px;
  font-weight: 700;
  color: #ffffff;
  text-align: right;
  white-space: nowrap;
  justify-self: end;
}

.reading-item__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}


@media (min-width: 1181px) {
  .property-top-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  }
}

@media (max-width: 920px) {
  .overview-item,
  .reading-item {
    gap: 14px;
  }

  .property-readings-list {
    grid-template-columns: 1fr;
  }
}

/* ===== Profile page ===== */
.profile-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.profile-main-grid {
  align-items: start;
}

.profile-card {
  display: grid;
  gap: 16px;
}

.profile-card--highlight {
  position: relative;
  overflow: hidden;
}

.profile-card--highlight::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34,197,94,0.18), transparent 70%);
  pointer-events: none;
}

.profile-hero-metrics,
.profile-role-metrics {
  margin-top: 6px;
}

.profile-quick-actions {
  margin-top: 4px;
}

.profile-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.profile-section-head h2 {
  margin: 4px 0 0;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-info-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  display: grid;
  gap: 8px;
}

.profile-info-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-info-item strong {
  font-size: 1rem;
  line-height: 1.35;
}

.profile-side-note {
  margin-top: -2px;
}

.profile-properties-list li {
  display: block;
}

.profile-property-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 16px;
  align-items: center;
}

.profile-property-item__main {
  min-width: 0;
}

.profile-property-item__title {
  font-weight: 700;
  color: #e5e7eb;
}

.profile-property-item__meta {
  margin-top: 6px;
}

.profile-property-item__side {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-role-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255,255,255,0.08);
}

.profile-role-chip--owner {
  background: rgba(34, 197, 94, 0.12);
  color: #d1fae5;
  border-color: rgba(34, 197, 94, 0.18);
}

.profile-role-chip--tenant {
  background: rgba(59, 130, 246, 0.12);
  color: #dbeafe;
  border-color: rgba(59, 130, 246, 0.18);
}

.profile-property-link {
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .profile-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .profile-info-grid,
  .profile-property-item {
    grid-template-columns: 1fr;
  }

  .profile-property-item__side,
  .profile-section-head {
    justify-content: flex-start;
  }
}

/* ===== Odečty page ===== */
.odecty-layout-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  align-items: start;
}

.odecty-side-stack {
  display: grid;
  gap: 22px;
}

.odecty-filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.odecty-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.odecty-metric-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.odecty-alert-list li {
  display: grid;
  gap: 6px;
}

.odecty-alert-age {
  color: #fcd34d;
}

.odecty-readings-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.odecty-reading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.odecty-reading-row__main {
  min-width: 0;
}

.odecty-reading-row__title {
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.odecty-reading-row__property {
  margin-top: 6px;
}

.odecty-reading-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.badge-pill--muted {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #dbe7f8;
}

.odecty-reading-row__value {
  min-width: 120px;
  text-align: right;
  white-space: nowrap;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.odecty-reading-row__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  min-width: 96px;
}

.odecty-empty-state {
  padding: 28px 24px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.odecty-empty-state strong {
  display: block;
  font-size: 1rem;
  color: #ffffff;
}

.odecty-empty-state p {
  margin: 8px 0 0;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .odecty-layout-grid,
  .odecty-filters-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .odecty-reading-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .odecty-reading-row__value,
  .odecty-reading-row__actions {
    justify-self: start;
    text-align: left;
  }

  .odecty-reading-row__actions {
    min-width: 0;
  }

  .odecty-metric-strip {
    grid-template-columns: 1fr;
  }
}

/* ===== Mobile hamburger final compact override v19 ===== */
.mobile-menu-btn { display: none; }
.mobile-sidebar-overlay { display: none; }

@media (max-width: 980px) {
  body.app-body, body:not(.auth-page) { overflow-x: hidden; }
  .app-shell { grid-template-columns: 1fr !important; }
  .main-panel { min-width: 0 !important; }
  .sidebar { display: none !important; }

  .mobile-menu-btn {
    display: inline-grid !important;
    width: 30px !important; height: 30px !important;
    min-width: 30px !important; max-width: 30px !important;
    min-height: 30px !important; max-height: 30px !important;
    padding: 0 !important; margin: 0 !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    background: rgba(255,255,255,0.045) !important;
    color: #e5eefc !important;
    box-shadow: none !important;
    cursor: pointer !important;
    position: relative !important;
    place-items: center !important;
    flex: 0 0 30px !important;
    font-size: 0 !important; line-height: 0 !important;
    order: -20 !important;
    overflow: hidden !important;
  }
  .mobile-menu-btn span {
    position: absolute !important;
    left: 50% !important; top: 50% !important;
    display: block !important;
    width: 13px !important; height: 1.6px !important;
    margin: 0 !important; padding: 0 !important;
    border-radius: 999px !important;
    background: currentColor !important;
    opacity: 1 !important;
    transform-origin: center !important;
    transition: transform 0.22s ease, opacity 0.16s ease, width 0.18s ease !important;
  }
  .mobile-menu-btn span:nth-child(1) { transform: translate(-50%, calc(-50% - 4.5px)) !important; }
  .mobile-menu-btn span:nth-child(2) { transform: translate(-50%, -50%) !important; }
  .mobile-menu-btn span:nth-child(3) { transform: translate(-50%, calc(-50% + 4.5px)) !important; }
  body.sidebar-open .mobile-menu-btn span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg) !important; }
  body.sidebar-open .mobile-menu-btn span:nth-child(2) { opacity: 0 !important; width: 0 !important; }
  body.sidebar-open .mobile-menu-btn span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg) !important; }

  .topbar-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin-left: auto !important;
    flex-wrap: nowrap !important;
    min-width: max-content !important;
  }
  .topbar-actions .topbar-notifications { order: -10 !important; }

  .mobile-sidebar-overlay {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000 !important;
    background: rgba(0,0,0,0.42) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.18s ease !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body.sidebar-open .mobile-sidebar-overlay { opacity: 1 !important; pointer-events: auto !important; }
  body.sidebar-open .sidebar {
    display: flex !important;
    position: fixed !important;
    top: 10px !important; left: 10px !important; bottom: 10px !important;
    width: min(300px, calc(100vw - 34px)) !important;
    max-width: 300px !important;
    z-index: 1001 !important;
    overflow-y: auto !important;
    filter: none !important; -webkit-filter: none !important;
    box-shadow: 24px 0 70px rgba(0,0,0,0.45) !important;
  }
  body.sidebar-open .main-panel, body.sidebar-open .app, body.sidebar-open .app-shell { filter: none !important; -webkit-filter: none !important; }
  .bottom-nav, .mobile-only.bottom-nav { display: none !important; }
}

@media (max-width: 760px) {
  .topbar.dashboard-topbar, .main-panel > .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 12px !important;
  }
  .topbar-actions {
    display: grid !important;
    grid-template-columns: 30px 40px !important;
    gap: 8px !important;
    justify-content: end !important;
    align-items: start !important;
    min-width: 78px !important;
  }
  .topbar-actions .mobile-menu-btn { grid-column: 1 !important; grid-row: 1 !important; }
  .topbar-actions .topbar-notifications { grid-column: 2 !important; grid-row: 1 !important; }
  .topbar-actions #addReadingBtn {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 10px 12px !important;
    font-size: 0.88rem !important;
    border-radius: 13px !important;
    white-space: normal !important;
  }
}


/* ===== Mobile hamburger v20: same size as notification, no dim overlay ===== */
@media (max-width: 980px) {
  .mobile-menu-btn {
    display: inline-grid !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    background: rgba(255,255,255,0.04) !important;
    color: var(--text) !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    place-items: center !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
    cursor: pointer !important;
  }

  .mobile-menu-btn span {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    display: block !important;
    width: 18px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: currentColor !important;
    opacity: 1 !important;
    transform-origin: center !important;
    transition: transform 0.22s ease, opacity 0.16s ease, width 0.18s ease !important;
  }

  .mobile-menu-btn span:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)) !important; }
  .mobile-menu-btn span:nth-child(2) { transform: translate(-50%, -50%) !important; }
  .mobile-menu-btn span:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)) !important; }

  body.sidebar-open .mobile-menu-btn span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg) !important; }
  body.sidebar-open .mobile-menu-btn span:nth-child(2) { opacity: 0 !important; width: 0 !important; }
  body.sidebar-open .mobile-menu-btn span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg) !important; }

  .mobile-sidebar-overlay,
  body.sidebar-open .mobile-sidebar-overlay {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.sidebar-open .main-panel,
  body.sidebar-open .app,
  body.sidebar-open .app-shell,
  body.sidebar-open main {
    filter: none !important;
    -webkit-filter: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 760px) {
  .topbar-actions {
    grid-template-columns: 42px 42px !important;
    min-width: 92px !important;
    gap: 8px !important;
  }
}
