:root {
  --navy: #0f172a;
  --navy-2: #12315f;
  --navy-3: #164e63;
  --gold: #14b8a6;
  --gold-2: #38bdf8;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f6f7fb;
  --line: #e8ebf0;
  --white: #ffffff;
  --green: #17966b;
  --red: #b3261e;
  --blue: #2563eb;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  font-family: "Segoe UI", Arial, sans-serif;
}

.aurora-upgrade-prompt {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(1, 6, 20, 0.72);
  backdrop-filter: blur(18px);
}

.aurora-upgrade-card {
  width: min(520px, 100%);
  border: 1px solid rgba(0, 210, 255, 0.55);
  border-radius: 22px;
  padding: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at top left, rgba(0, 210, 255, 0.2), transparent 35%),
    radial-gradient(circle at bottom right, rgba(174, 60, 255, 0.24), transparent 42%),
    rgba(2, 11, 30, 0.94);
  box-shadow: 0 0 40px rgba(0, 210, 255, 0.22), 0 0 60px rgba(174, 60, 255, 0.18);
}

.aurora-upgrade-close {
  float: right;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.aurora-upgrade-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(0, 210, 255, 0.38);
  border-radius: 999px;
  color: #00e5ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aurora-upgrade-card h2 {
  margin: 0 0 10px;
  font-size: 32px;
}

.aurora-upgrade-card p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.aurora-upgrade-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pricing-page {
  min-height: 100vh;
  padding: 56px 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 229, 255, 0.18), transparent 34%),
    radial-gradient(circle at 82% 24%, rgba(173, 68, 255, 0.22), transparent 32%),
    #030817;
}

.pricing-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.pricing-header {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.pricing-header img {
  width: min(360px, 80vw);
  margin-bottom: 24px;
}

.pricing-header span,
.pricing-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 13px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 999px;
  color: #22d3ee;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pricing-header h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.pricing-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

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

.pricing-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 22px;
  padding: 30px;
  background: rgba(5, 14, 34, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.pricing-card.featured {
  border-color: rgba(178, 75, 255, 0.72);
  box-shadow: 0 0 34px rgba(0, 229, 255, 0.18), 0 0 44px rgba(178, 75, 255, 0.2);
}

.pricing-card h2 {
  margin: 0 0 10px;
  font-size: 32px;
}

.pricing-card p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.pricing-price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.pricing-price-row div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.pricing-price-row strong {
  display: block;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
}

.pricing-price-row span,
.pricing-price-row small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.66);
}

.pricing-price-row small {
  color: #22d3ee;
  font-weight: 800;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.pricing-card li::before {
  content: "✓";
  margin-right: 10px;
  color: #22d3ee;
  font-weight: 900;
}

.pricing-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

  .pricing-price-row {
    grid-template-columns: 1fr;
  }
}

body.dark-theme {
  --navy: #e0f2fe;
  --navy-2: #bae6fd;
  --navy-3: #67e8f9;
  --ink: #eef2f7;
  --muted: #aab5c6;
  --soft: #07101f;
  --line: #263449;
  --white: #101b2d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --card-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--soft);
}

body.dark-theme .workspace {
  background: #07101f;
}

body.dark-theme .sidebar {
  color: #f8fafc;
}

body.dark-theme .nav-item {
  color: rgba(248, 250, 252, 0.86);
}

body.dark-theme .nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

body.dark-theme .nav-item.active {
  color: #67e8f9;
}

body.dark-theme .sidebar-footer strong {
  color: #ffffff;
}

body.dark-theme .sidebar-footer span {
  color: rgba(248, 250, 252, 0.72);
}

body.dark-theme .user-card .ghost-action {
  color: #f8fafc;
  background: rgba(21, 35, 58, 0.78);
  border-color: #31425c;
}

body.dark-theme .panel,
body.dark-theme .stat-card,
body.dark-theme .login-card,
body.dark-theme .module-table,
body.dark-theme .topbar,
body.dark-theme .notification-panel {
  background: #101b2d;
}

body.dark-theme .module-table th,
body.dark-theme .filter-row th,
body.dark-theme .topbar-date,
body.dark-theme .top-profile,
body.dark-theme .secondary-action,
body.dark-theme .table-action,
body.dark-theme .mini-kpi,
body.dark-theme .kpi-line,
body.dark-theme .notification-item,
body.dark-theme .filter-row select,
body.dark-theme .table-search-filter,
body.dark-theme input,
body.dark-theme select {
  color: var(--ink);
  background: #15233a;
  border-color: var(--line);
}

body.dark-theme .topbar p,
body.dark-theme .activity-row p,
body.dark-theme .lead-row p,
body.dark-theme .task-row p,
body.dark-theme .property-card p {
  color: var(--muted);
}

body.dark-theme .bell-icon,
body.dark-theme .stat-icon svg,
body.dark-theme .nav-icon svg {
  stroke: currentColor;
}

body.dark-theme .notification-button {
  color: #f8fafc;
  background: rgba(21, 35, 58, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

body.dark-theme .notification-button .bell-icon {
  stroke: #f8fafc;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.16));
}

body.dark-theme .notification-button:hover {
  color: #fff;
  background:
    radial-gradient(circle at 52% 35%, rgba(96, 165, 250, 0.22), transparent 62%),
    rgba(31, 48, 77, 0.92);
  border-color: rgba(96, 165, 250, 0.42);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.28),
    0 0 20px rgba(96, 165, 250, 0.16);
}

body.dark-theme .notification-button:hover .bell-icon {
  stroke: #ffffff;
  filter: drop-shadow(0 0 10px rgba(245, 210, 115, 0.28));
}

body.dark-theme .notification-count {
  color: #ffffff;
  background: #ef4444;
  border: 2px solid #101b2d;
  box-shadow:
    0 0 0 2px rgba(248, 113, 113, 0.32),
    0 0 14px rgba(248, 113, 113, 0.52);
}

body.dark-theme .notification-panel-header span {
  color: #ffffff;
  background: #ef4444;
  border: 1px solid rgba(248, 113, 113, 0.55);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.38);
}

body.dark-theme .stat-card strong,
body.dark-theme .panel h3,
body.dark-theme .kpi-meter h4,
body.dark-theme .kpi-meter-ring strong,
body.dark-theme .bar-kpi-top strong,
body.dark-theme .goal-chart-head strong,
body.dark-theme .mini-kpi strong,
body.dark-theme .kpi-line strong,
body.dark-theme .chart-summary strong,
body.dark-theme .notification-panel-header,
body.dark-theme .module-table td {
  color: #f8fafc;
}

body.dark-theme .trend b,
body.dark-theme .trend i {
  color: #31d19a;
}

body.dark-theme .trend.negative b,
body.dark-theme .trend.negative i {
  color: #ff6b62;
}

body.dark-theme .trend.neutral b,
body.dark-theme .trend span,
body.dark-theme .stat-card span,
body.dark-theme .bar-kpi-top span,
body.dark-theme .kpi-meter p,
body.dark-theme .goal-chart p {
  color: #aab5c6;
}

body.dark-theme .primary-action,
body.dark-theme .ghost-action {
  color: #0f172a;
}

body.dark-theme .subtle-link,
body.dark-theme .table-action,
body.dark-theme .secondary-action,
body.dark-theme .pill {
  color: #f8fafc;
  background: #15233a;
  border-color: #31425c;
}

body.dark-theme .subtle-link:hover,
body.dark-theme .table-action:hover,
body.dark-theme .secondary-action:hover {
  background: #1c2d47;
}

body.dark-theme .primary-action:hover:not(:disabled),
body.dark-theme .bulk-actions .primary-action:hover:not(:disabled) {
  color: #f8fafc;
  background: linear-gradient(180deg, #132b52, #0f172a);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(96, 165, 250, 0.14),
    0 0 0 1px rgba(201, 154, 46, 0.18);
}

body.dark-theme .secondary-action:hover:not(:disabled),
body.dark-theme .table-action:hover:not(:disabled),
body.dark-theme .subtle-link:hover:not(:disabled),
body.dark-theme .bulk-actions .secondary-action:hover:not(:disabled),
body.dark-theme .google-action:hover:not(:disabled),
body.dark-theme .ghost-action:hover:not(:disabled),
body.dark-theme .notification-button:hover:not(:disabled),
body.dark-theme .theme-toggle:hover:not(:disabled),
body.dark-theme .occupancy-item:hover,
body.dark-theme .calendar-day:not(.blank):hover {
  color: #f8fafc;
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(96, 165, 250, 0.1);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.26),
    0 0 22px rgba(96, 165, 250, 0.13);
}

body.dark-theme .stat-icon {
  color: #0f172a;
  background: #e8eef8;
}

body.dark-theme .kpi-meter-ring {
  background:
    radial-gradient(circle at center, #101b2d 0 55%, transparent 56%),
    conic-gradient(var(--gold) calc(var(--value) * 1%), #2a3950 0);
}

body.dark-theme .gauge-arc {
  background:
    radial-gradient(circle at 50% 100%, #101b2d 0 42%, transparent 43%),
    conic-gradient(from 270deg at 50% 100%, #df3b34 0deg 42deg, #f3b64f 42deg 92deg, #d8ea5a 92deg 132deg, #43b869 132deg 180deg, transparent 180deg);
}

body.dark-theme .gauge-center strong,
body.dark-theme .gauge-metrics strong {
  color: #f8fafc;
}

body.dark-theme .gauge-metrics,
body.dark-theme .bar-kpi-row,
body.dark-theme .goal-score,
body.dark-theme .goal-tile,
body.dark-theme .time-visual {
  background: rgba(21, 35, 58, 0.72);
  border-color: #263854;
}

body.dark-theme .goal-score-ring {
  background:
    radial-gradient(circle, #101b2d 0 58%, transparent 59%),
    conic-gradient(var(--gold) calc(var(--value) * 1%), #2a3950 0);
}

body.dark-theme .goal-score-ring strong,
body.dark-theme .goal-score > div:last-child strong,
body.dark-theme .goal-tile strong,
body.dark-theme .time-reading strong {
  color: #f8fafc;
}

body.dark-theme .goal-score-ring span,
body.dark-theme .goal-score > div:last-child span,
body.dark-theme .goal-score > div:last-child small,
body.dark-theme .goal-tile span,
body.dark-theme .goal-tile strong small,
body.dark-theme .goal-tile em,
body.dark-theme .time-reading span,
body.dark-theme .time-chip {
  color: #aab5c6;
}

body.dark-theme .time-reading,
body.dark-theme .time-chip {
  background: rgba(13, 24, 41, 0.78);
  border-color: #263854;
}

body.dark-theme .goal-tile-track {
  background: #223149;
}

body.dark-theme .benefit-head,
body.dark-theme .benefit-formula {
  background: rgba(21, 35, 58, 0.72);
  border-color: #263854;
}

body.dark-theme .benefit-row strong,
body.dark-theme .benefit-formula strong {
  color: #f8fafc;
}

body.dark-theme .benefit-head span,
body.dark-theme .benefit-row span,
body.dark-theme .benefit-formula span {
  color: #aab5c6;
}

body.dark-theme .benefit-track {
  background: #223149;
}

body.dark-theme .benefit-score-ring,
body.dark-theme .conversion-ring {
  background:
    radial-gradient(circle, #101b2d 0 58%, transparent 59%),
    conic-gradient(var(--green) calc(var(--value) * 1%), #2a3950 0);
}

body.dark-theme .benefit-compact.negative .benefit-score-ring,
body.dark-theme .real-benefit-chart.negative .benefit-score-ring {
  background:
    radial-gradient(circle, #101b2d 0 58%, transparent 59%),
    conic-gradient(var(--red) calc(var(--value) * 1%), #2a3950 0);
}

body.dark-theme .conversion-ring {
  background:
    radial-gradient(circle, #101b2d 0 58%, transparent 59%),
    conic-gradient(#a855f7 calc(var(--value) * 1%), #2a3950 0);
}

body.dark-theme .benefit-column-chart,
body.dark-theme .floating-chart,
body.dark-theme .conversion-funnel,
body.dark-theme .conversion-trend {
  background: #101b2d;
  border-color: #263854;
}

body.dark-theme .benefit-score-ring strong,
body.dark-theme .benefit-column strong,
body.dark-theme .conversion-ring strong,
body.dark-theme .conversion-compact h4,
body.dark-theme .floating-chart-header h3,
body.dark-theme .conversion-funnel h4,
body.dark-theme .conversion-trend h4 {
  color: #f8fafc;
}

body.dark-theme .benefit-score-ring span,
body.dark-theme .benefit-column span,
body.dark-theme .conversion-ring span,
body.dark-theme .conversion-compact p,
body.dark-theme .floating-chart-header span {
  color: #aab5c6;
}

body.dark-theme .goal-tile:hover,
body.dark-theme .time-reading:hover,
body.dark-theme .gauge-metrics div:hover,
body.dark-theme .bar-kpi-row:hover,
body.dark-theme .kpi-meter:hover {
  border-color: #4c6180;
}

body.dark-theme .goal-tile.focused,
body.dark-theme .time-reading.focused,
body.dark-theme .gauge-metrics div.focused,
body.dark-theme .bar-kpi-row.focused,
body.dark-theme .kpi-meter.focused {
  border-color: #9db7df;
  box-shadow: 0 0 0 3px rgba(157, 183, 223, 0.14);
}

body.dark-theme .gauge-needle {
  background: #f8fafc;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 12px 24px rgba(0,0,0,0.32);
}

body.dark-theme .bar-kpi-track {
  background: #223149;
}

body.dark-theme .bar-kpi-fill.navy,
body.dark-theme .bar-kpi-fill {
  background: #9db7df;
}

body.dark-theme .bulk-actions .primary-action,
body.dark-theme .primary-action.compact {
  color: #67e8f9;
  background: linear-gradient(180deg, #16243b, #0d1829);
  border: 1px solid #2c3d57;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

body.dark-theme .bulk-actions .secondary-action,
body.dark-theme .secondary-action {
  background: #15233a;
  border: 1px solid #31425c;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

body.dark-theme .bulk-actions .primary-action:hover,
body.dark-theme .primary-action.compact:hover,
body.dark-theme .bulk-actions .secondary-action:hover,
body.dark-theme .secondary-action:hover {
  background: #1b2b45;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

body.dark-theme .profile-item {
  color: #eef2f7;
  background: #15233a;
  border-color: #263854;
}

body.dark-theme .profile-hero h3,
body.dark-theme .profile-item strong {
  color: #f8fafc;
}

body.dark-theme .profile-hero p,
body.dark-theme .profile-item span {
  color: #aab5c6;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.login-screen {
  height: 100vh;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(520px, 1.03fr) minmax(440px, 0.97fr);
  background:
    radial-gradient(circle at 18% 10%, rgba(14, 165, 233, 0.16), transparent 30%),
    radial-gradient(circle at 84% 38%, rgba(192, 38, 211, 0.18), transparent 32%),
    linear-gradient(135deg, #020617 0%, #07142a 52%, #020617 100%);
  overflow: hidden;
}

.brand-panel {
  position: relative;
  min-height: 100%;
  padding: clamp(30px, 5vw, 72px);
  color: var(--white);
  background:
    radial-gradient(circle at 50% 85%, rgba(37, 99, 235, 0.26), transparent 44%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.18), rgba(8, 47, 73, 0.08));
  clip-path: none;
  overflow: hidden;
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: auto auto -20% -24%;
  width: 78%;
  height: 52%;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 50%;
  background: transparent;
  transform: rotate(18deg);
  box-shadow: 0 0 38px rgba(14, 165, 233, 0.22);
  z-index: 1;
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 64%, rgba(124, 58, 237, 0.16) 65%, transparent 82%),
    radial-gradient(circle at 16% 92%, rgba(34, 211, 238, 0.18), transparent 26%);
  opacity: 1;
}

.brand-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), transparent 34%);
}

.brand-content {
  position: relative;
  z-index: 3;
  min-height: calc(100vh - clamp(44px, 8vw, 88px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  max-width: 760px;
  text-align: center;
}

.brand-mark {
  width: min(620px, 86%);
  max-width: 100%;
  height: 260px;
  margin-top: clamp(8px, 3vh, 28px);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 6px;
  padding: 0 18px;
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.42);
  border-radius: 999px;
  background: rgba(2, 8, 23, 0.34);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.login-logo,
.sidebar-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.welcome-copy {
  margin-top: clamp(22px, 5vh, 44px);
  margin-bottom: 26px;
}

.welcome-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.35rem, 3.7vw, 4rem);
  line-height: 1.08;
  text-shadow:
    0 8px 26px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(255, 255, 255, 0.08);
}

.welcome-copy strong {
  display: block;
  margin-top: 10px;
  color: transparent;
  background: linear-gradient(90deg, #22d3ee, #2563eb 52%, #c026d3);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(2.1rem, 3.3vw, 3.55rem);
  font-weight: 850;
}

.welcome-copy span {
  display: block;
  width: 86px;
  height: 3px;
  margin: 14px auto;
  background: var(--gold-2);
}

.welcome-copy p {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(226, 232, 240, 0.92);
  font-size: 1.06rem;
  line-height: 1.55;
}

.login-metrics {
  width: min(540px, 86%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
  margin-bottom: 0;
}

.login-metrics div {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--white);
}

.metric-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.36);
  border-radius: 18px;
  background: rgba(7, 17, 38, 0.56);
  box-shadow:
    0 0 24px rgba(14, 165, 233, 0.13),
    inset 0 0 22px rgba(14, 165, 233, 0.08);
  font-size: 2rem;
}

.login-metrics strong {
  color: #ffffff;
  font-size: 1rem;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
}

.login-metrics small {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

.brand-trust-row {
  width: min(640px, 92%);
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: rgba(226, 232, 240, 0.86);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  font-size: 0.83rem;
  white-space: nowrap;
}

body.dark-theme .login-card,
.login-card {
  align-self: center;
  justify-self: center;
  width: min(560px, calc(100% - 48px));
  padding: 36px 42px 28px;
  text-align: center;
  color: #f8fafc;
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.18), transparent 34%),
    linear-gradient(150deg, rgba(7, 16, 35, 0.98), rgba(3, 8, 24, 0.96)) padding-box,
    linear-gradient(135deg, #22d3ee, #2563eb 48%, #c026d3) border-box;
  border: 1px solid transparent;
  border-radius: 28px;
  box-shadow:
    0 26px 80px rgba(2, 8, 23, 0.34),
    0 0 54px rgba(37, 99, 235, 0.16),
    0 0 90px rgba(192, 38, 211, 0.12);
  position: relative;
  overflow: hidden;
}

.login-logo-wrap {
  width: 132px;
  height: 132px;
  padding: 0;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.18),
    0 16px 36px rgba(14, 165, 233, 0.18);
  overflow: hidden;
  position: relative;
}

.login-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200%;
  height: 200%;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: none;
  transform: translate(-50%, -50%);
}

.login-card h2 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 2.25rem;
  line-height: 1.1;
}

.login-subtitle {
  margin-bottom: 26px;
  color: #cbd5e1;
  font-size: 1rem;
}

.login-card label {
  color: #f8fafc;
}

.login-card .input-shell {
  min-height: 58px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.46);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(2, 8, 23, 0.12);
}

.login-card .input-shell:focus-within {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow:
    0 0 0 4px rgba(34, 211, 238, 0.12),
    0 12px 28px rgba(14, 165, 233, 0.12);
}

.login-card input {
  color: #f8fafc;
  background: transparent !important;
  box-shadow: none !important;
}

.login-card .input-shell > span {
  color: #94a3b8;
}

.login-card .input-shell input,
.login-card .input-shell input:-webkit-autofill,
.login-card .input-shell input:-webkit-autofill:hover,
.login-card .input-shell input:-webkit-autofill:focus {
  background: transparent !important;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-text-fill-color: #f8fafc;
  caret-color: #f8fafc;
}

.login-card .password-toggle {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.26);
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 650;
  text-align: left;
}

.input-shell {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  background: var(--white);
}

.password-shell {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.password-toggle {
  min-width: 58px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--navy);
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

.input-shell > span {
  color: #8a94a6;
  font-size: 1.05rem;
}

input,
select {
  width: 100%;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}

input::placeholder {
  color: #9aa3b3;
}

.input-shell:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 154, 46, 0.12);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.remember-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.login-card .remember-check {
  color: #94a3b8;
}

.remember-check input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--gold);
}

.login-card .remember-check input {
  accent-color: #22d3ee;
}

.login-options a,
.link-action {
  color: #1f5f8b;
  background: transparent;
  border: 0;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
}

.login-card .link-action {
  color: #22d3ee;
}

.primary-action,
.ghost-action,
.nav-item,
.google-action,
.notification-button,
.table-action,
.subtle-link,
.secondary-action {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
}

.primary-action {
  width: 100%;
  min-height: 46px;
  color: var(--gold-2);
  background: var(--navy);
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(7, 20, 42, 0.16);
}

.login-card .primary-action {
  min-height: 58px;
  color: #ffffff;
  background: linear-gradient(100deg, #0ea5e9, #2563eb 52%, #c026d3);
  border-radius: 14px;
  box-shadow:
    0 18px 34px rgba(37, 99, 235, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 1.02rem;
}

.primary-action:hover {
  background: #0a1933;
}

.primary-action,
.secondary-action,
.table-action,
.subtle-link,
.google-action,
.ghost-action,
.notification-button,
.theme-toggle,
.bulk-actions .primary-action,
.bulk-actions .secondary-action,
.task-complete-action,
.stat-button,
.occupancy-item,
.calendar-day,
.booking-delete {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    filter 0.18s ease;
}

.primary-action:hover:not(:disabled),
.secondary-action:hover:not(:disabled),
.table-action:hover:not(:disabled),
.subtle-link:hover:not(:disabled),
.google-action:hover:not(:disabled),
.ghost-action:hover:not(:disabled),
.notification-button:hover:not(:disabled),
.theme-toggle:hover:not(:disabled),
.bulk-actions .primary-action:hover:not(:disabled),
.bulk-actions .secondary-action:hover:not(:disabled),
.task-complete-action:hover,
.stat-button:hover,
.occupancy-item:hover,
.calendar-day:not(.blank):hover,
.booking-delete:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 28px rgba(7, 20, 42, 0.13),
    0 0 0 1px rgba(49, 95, 156, 0.08);
  filter: saturate(1.04);
}

.primary-action:hover:not(:disabled),
.bulk-actions .primary-action:hover:not(:disabled) {
  background: linear-gradient(180deg, #10264a, #0f172a);
  box-shadow:
    0 16px 32px rgba(7, 20, 42, 0.2),
    0 0 0 1px rgba(201, 154, 46, 0.16);
}

.login-card .primary-action:hover:not(:disabled) {
  background: linear-gradient(100deg, #22d3ee, #2563eb 52%, #d946ef);
  box-shadow:
    0 22px 42px rgba(37, 99, 235, 0.32),
    0 0 0 1px rgba(34, 211, 238, 0.18);
}

.secondary-action:hover:not(:disabled),
.table-action:hover:not(:disabled),
.subtle-link:hover:not(:disabled),
.bulk-actions .secondary-action:hover:not(:disabled) {
  color: #0f172a;
  border-color: rgba(49, 95, 156, 0.26);
  background: linear-gradient(180deg, #ffffff, #eef4ff);
}

.google-action {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #4b5563;
  background: var(--white);
  border: 1px solid #e0e4eb;
  font-weight: 600;
}

.google-action img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.login-card .google-action {
  min-height: 56px;
  color: #cbd5e1;
  background: rgba(7, 17, 38, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 14px;
  font-size: 0.98rem;
}

.google-action strong {
  margin-right: 10px;
  color: #db4437;
  font-size: 1.22rem;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 12px;
  color: #7a8493;
  font-size: 0.9rem;
}

.login-card .login-divider {
  margin: 22px 0 16px;
  color: #94a3b8;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e5e8ee;
}

.login-card .login-divider::before,
.login-card .login-divider::after {
  background: rgba(148, 163, 184, 0.34);
}

.login-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.login-card .login-note {
  margin-top: 18px;
  color: #94a3b8;
  font-size: 0.84rem;
  line-height: 1.5;
}

.admin-layout {
  height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  overflow: hidden;
}

.sidebar {
  height: 100vh;
  padding: 0 0 10px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(8, 47, 73, 0.98)),
    #0f172a;
  display: flex;
  flex-direction: column;
  box-shadow: 16px 0 36px rgba(7, 20, 42, 0.08);
}

.sidebar-brand {
  height: 168px;
  padding: 18px 6px 14px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand img {
  width: 122px;
  height: 122px;
  max-height: 122px;
  object-fit: contain;
  border-radius: 28px;
}

.nav-list {
  display: grid;
  gap: 0;
  padding-top: 0;
}

.nav-item {
  min-height: 39px;
  padding: 0 15px 0 28px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  text-align: left;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  position: relative;
  font-size: 0.9rem;
  font-weight: 650;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: transparent;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: block;
  color: inherit;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item.active,
.nav-item:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
}

.nav-item.active {
  color: var(--gold-2);
  background: rgba(255, 255, 255, 0.12);
}

.nav-item.active::before {
  background: var(--gold);
}

.nav-item:disabled {
  opacity: 0.55;
}

.nav-lock {
  color: rgba(227, 185, 75, 0.85);
  font-size: 0.72rem;
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 9px;
  color: var(--white);
  cursor: pointer;
  min-height: 58px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: linear-gradient(135deg, #7dd3fc, var(--gold));
  font-weight: 900;
  overflow: hidden;
}

.sidebar-footer strong,
.sidebar-footer span {
  display: block;
}

.sidebar-footer strong {
  font-size: 0.94rem;
  line-height: 1.08;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-footer span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  line-height: 1.12;
  white-space: normal;
}

.ghost-action {
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  font-size: 1.2rem;
}

.user-card .ghost-action {
  width: auto;
  min-width: 54px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  font-weight: 800;
}

.workspace {
  min-width: 0;
  height: 100vh;
  overflow: auto;
  background: #fbfcff;
}

.topbar {
  min-height: 74px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.topbar h2 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.1;
}

.topbar p {
  margin-bottom: 0;
  color: #4b5563;
  font-size: 0.9rem;
}

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

.topbar-date {
  color: var(--muted);
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: capitalize;
}

.search-box {
  width: min(380px, 38vw);
  min-width: 270px;
  min-height: 40px;
  margin: 0;
  padding: 0 14px 0 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: #8b95a5;
  box-shadow: 0 8px 20px rgba(7, 20, 42, 0.03);
}

.search-box input {
  min-height: 36px;
}

.search-box button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--navy);
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.notification-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  position: relative;
}

.notification-button:hover {
  background: #f7f8fb;
  box-shadow: none;
}

.bell-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #0a1222;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-count {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border: 1px solid var(--white);
  border-radius: 50%;
  font-size: 0.57rem;
  font-weight: 900;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.86), 0 6px 14px rgba(179, 38, 30, 0.22);
}

.notification-count.hidden {
  display: none;
}

.notification-panel {
  position: absolute;
  top: 62px;
  right: 22px;
  z-index: 15;
  width: min(360px, calc(100vw - 44px));
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--ink);
}

.notification-panel-header span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #fff4d8;
  border-radius: 50%;
  font-weight: 850;
}

.notification-list {
  display: grid;
  gap: 8px;
}

.notification-item {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.notification-item strong,
.notification-item span {
  display: block;
}

.notification-item strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.notification-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.top-profile {
  min-height: 38px;
  padding: 0 12px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
}

.top-profile-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: var(--navy);
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(7, 20, 42, 0.04);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle:hover {
  background: #eef2f8;
}

body.dark-theme .theme-toggle {
  color: #7dd3fc;
  background: #15233a;
  border-color: #31425c;
}

body.dark-theme .theme-toggle:hover {
  background: #1c2d47;
}

.top-profile-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: linear-gradient(135deg, #7dd3fc, var(--gold));
  overflow: hidden;
  font-size: 0.78rem;
}

.top-profile-avatar img,
.user-avatar img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact {
  width: auto;
  min-height: 38px;
  padding: 0 18px;
}

.content-grid {
  padding: 16px 22px 24px;
  display: grid;
  gap: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 12px;
}

.dashboard-stats {
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  gap: 10px;
}

.dashboard-stats .stat-card {
  min-height: 98px;
  padding: 12px;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: minmax(42px, auto) auto;
  gap: 8px 10px;
}

.dashboard-stats .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.dashboard-stats .stat-icon svg {
  width: 21px;
  height: 21px;
}

.dashboard-stats .stat-card span {
  font-size: 0.76rem;
}

.dashboard-stats .stat-card strong {
  font-size: 1.05rem;
}

.dashboard-stats .stat-footer {
  padding-left: 50px;
}

.task-stats {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
}

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

.agenda-stats {
  grid-template-columns: repeat(3, minmax(190px, 1fr));
}

.transaction-stats {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.stat-card,
.panel,
.property-card,
.lead-row,
.activity-row,
.task-row {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.stat-card {
  min-height: 126px;
  padding: 18px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: minmax(54px, auto) auto;
  gap: 10px 14px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 14px;
  font-weight: 900;
}

.stat-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-card.gold .stat-icon {
  color: var(--white);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.stat-card.stat-critical .stat-icon {
  color: #fff;
  background: linear-gradient(135deg, #ef4444, var(--red));
}

.stat-card.stat-pending .stat-icon {
  color: #0f172a;
  background: linear-gradient(135deg, #67e8f9, var(--gold));
}

.stat-card.stat-progress .stat-icon {
  color: #fff;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
}

.stat-card.stat-stable .stat-icon {
  color: #fff;
  background: linear-gradient(135deg, #37c98f, var(--green));
}

.stat-card.stat-airbnb .stat-icon {
  color: #fff;
  background: linear-gradient(135deg, #ff6f8e, #ff385c);
}

.stat-card.stat-occupancy .stat-icon {
  color: #fff;
  background: linear-gradient(135deg, #38bdf8, #1d4ed8);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.stat-card strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 1.38rem;
  line-height: 1.05;
}

.stat-card small {
  font-weight: 800;
}

.stat-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-left: 62px;
}

.trend b {
  color: var(--green);
}

.trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.trend i {
  color: var(--green);
  font-style: normal;
  font-size: 0.8rem;
}

.trend.negative b {
  color: var(--red);
}

.trend.negative i {
  color: var(--red);
}

.trend.neutral b,
.trend span {
  color: var(--muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.85fr);
  gap: 10px;
}

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

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

.dashboard-grid.single {
  grid-template-columns: minmax(320px, 0.82fr);
}

.panel {
  padding: 12px;
}

.compact-dashboard-panel {
  padding: 12px;
}

.compact-panel-header {
  margin-bottom: 4px;
}

.dashboard-grid .panel {
  min-height: 180px;
  max-height: 260px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96)),
    radial-gradient(circle at 18% 0%, rgba(201, 154, 46, 0.14), transparent 28%);
}

.dashboard-grid.four .panel {
  min-height: 168px;
  max-height: 190px;
}

.dashboard-grid.four .panel:nth-child(3) {
  min-height: 176px;
  max-height: 198px;
}

.dashboard-grid.three .panel:nth-child(3) {
  min-height: 270px;
  max-height: 320px;
}

body.dark-theme .dashboard-grid .panel {
  background:
    linear-gradient(180deg, rgba(16, 27, 45, 0.98), rgba(9, 17, 31, 0.98)),
    radial-gradient(circle at 18% 0%, rgba(201, 154, 46, 0.12), transparent 30%);
  border-color: #263854;
}

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

.muted-text {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.panel-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 10px;
}

.section-title-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

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

.bulk-actions .primary-action,
.bulk-actions .secondary-action {
  width: auto;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(7, 20, 42, 0.05);
}

.bulk-actions .primary-action {
  color: var(--white);
  background: linear-gradient(180deg, #12315f, var(--navy));
  border: 1px solid rgba(7, 20, 42, 0.92);
}

.bulk-actions .secondary-action {
  color: var(--navy);
  background: linear-gradient(180deg, #ffffff, #f7f8fb);
  border: 1px solid #dfe4ec;
}

.task-row.task-critical {
  border-left-color: var(--red);
}

.task-row.task-pending {
  border-left-color: var(--gold);
}

.task-row.task-stable {
  border-left-color: var(--green);
}

.bulk-actions .danger-action {
  min-width: 142px;
  color: var(--red);
  background: linear-gradient(180deg, #fff, #fbf4f3);
  border-color: rgba(179, 38, 30, 0.22);
}

.panel h3 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.08rem;
}

.subtle-link,
.pill {
  color: var(--navy);
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 750;
}

.airbnb-link {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  color: #fff;
  background: linear-gradient(135deg, #ff6f8e, #ff385c);
  border-color: rgba(255, 56, 92, 0.34);
  border-radius: 8px;
  font-size: 0.68rem;
  box-shadow: 0 7px 16px rgba(255, 56, 92, 0.16);
}

.airbnb-link svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.airbnb-link:hover:not(:disabled) {
  color: #fff;
  background: linear-gradient(135deg, #ff7d99, #ff385c);
  border-color: rgba(255, 56, 92, 0.5);
  box-shadow: 0 12px 22px rgba(255, 56, 92, 0.24);
}

.stat-airbnb-pay .stat-icon {
  color: #fff;
  background: linear-gradient(135deg, #ff6f8e, #ff385c);
}

.agent-pay-card .stat-icon {
  color: #0f172a;
  background: linear-gradient(135deg, #5eead4, #14b8a6);
}

.airbnb-payment-modal .analytics-icon.airbnb {
  color: #fff;
  background: linear-gradient(135deg, #ff6f8e, #ff385c);
}

body.dark-theme .airbnb-link {
  color: #fff;
  background: linear-gradient(135deg, #ff6f8e, #ff385c);
  border-color: rgba(255, 56, 92, 0.48);
  box-shadow: 0 10px 22px rgba(255, 56, 92, 0.24);
}

body.dark-theme .airbnb-link:hover:not(:disabled) {
  color: #fff;
  background: linear-gradient(135deg, #ff86a0, #ff385c);
  border-color: rgba(255, 56, 92, 0.7);
  box-shadow: 0 14px 28px rgba(255, 56, 92, 0.32);
}

.subtle-link:hover,
.table-action:hover,
.secondary-action:hover {
  border-color: #cfd6e2;
  background: #f7f8fb;
}

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

.closed-chart-card {
  min-height: 168px;
  padding: 12px 14px;
}

.closed-chart-card .panel-header {
  margin-bottom: 4px;
}

.closed-chart-card .panel-header h3 {
  font-size: 0.98rem;
}

.line-chart {
  width: 100%;
  height: 190px;
}

.chart-axis {
  stroke: #e5e7eb;
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke: var(--navy);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-fill {
  fill: rgba(7, 20, 42, 0.12);
}

.period-select {
  min-height: 34px;
  padding: 0 12px;
  color: var(--navy);
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.chart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.chart-summary strong {
  color: var(--navy);
}

.kpi-meter {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 156px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.kpi-meter-ring {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 55%, transparent 56%),
    conic-gradient(var(--gold) calc(var(--value) * 1%), #e6e9ef 0);
  box-shadow: inset 0 0 0 1px var(--line);
}

.kpi-meter-ring strong {
  color: var(--navy);
  font-size: 1.18rem;
}

.kpi-meter h4 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1rem;
}

.kpi-meter p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.real-benefit-chart {
  min-height: 260px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 18px;
}

.benefit-score-ring {
  width: var(--ring-size, 220px);
  height: var(--ring-size, 220px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  justify-self: center;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--white) 0 56%, transparent 57%),
    conic-gradient(var(--green) calc(var(--value) * 1%), #e6ebf3 0);
  box-shadow: 0 24px 54px rgba(7, 20, 42, 0.12);
  cursor: pointer;
  font-family: inherit;
}

.benefit-score-ring.compact {
  width: var(--ring-size, 148px);
  height: var(--ring-size, 148px);
  gap: 4px;
  box-shadow: 0 20px 42px rgba(23, 150, 107, 0.16);
}

.real-benefit-chart.negative .benefit-score-ring {
  background:
    radial-gradient(circle, var(--white) 0 56%, transparent 57%),
    conic-gradient(var(--red) calc(var(--value) * 1%), #e6ebf3 0);
}

.benefit-compact.negative .benefit-score-ring {
  background:
    radial-gradient(circle, var(--white) 0 56%, transparent 57%),
    conic-gradient(var(--red) calc(var(--value) * 1%), #e6ebf3 0);
}

.benefit-score-ring strong {
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
  text-align: center;
  max-width: calc(var(--ring-size, 220px) * 0.58);
  overflow-wrap: anywhere;
}

.benefit-score-ring.compact strong {
  max-width: calc(var(--ring-size, 148px) * 0.64);
  font-size: 0.86rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.benefit-score-ring span {
  color: var(--muted);
  font-weight: 850;
}

.benefit-score-ring.compact span {
  font-size: 0.64rem;
  line-height: 1.05;
  text-align: center;
}

.benefit-column-chart {
  min-height: 216px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.benefit-column {
  display: grid;
  grid-template-rows: 130px auto auto;
  justify-items: center;
  gap: 7px;
}

.benefit-column i {
  width: 52px;
  height: var(--h);
  align-self: end;
  border-radius: 999px 999px 12px 12px;
  box-shadow: inset 0 0 16px rgba(255,255,255,0.18), 0 16px 34px rgba(7, 20, 42, 0.14);
}

.benefit-column.positive i,
.benefit-column.profit i {
  background: linear-gradient(180deg, #4ade80, var(--green));
}

.benefit-column.expense i {
  background: linear-gradient(180deg, #2563eb, #0f172a);
}

.benefit-column.loss i {
  background: linear-gradient(180deg, #ef4444, var(--red));
}

.benefit-column strong {
  color: var(--ink);
  text-align: center;
}

.benefit-column span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
}

.conversion-compact {
  min-height: 122px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.benefit-compact {
  min-height: 122px;
  display: grid;
  place-items: center;
  gap: 8px;
}

.benefit-score-ring.compact {
  width: var(--ring-size, 136px);
  height: var(--ring-size, 136px);
}

.benefit-score-ring.compact strong {
  max-width: 82%;
  font-size: 0.84rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.benefit-compact .compact-more {
  font-size: 0.78rem;
  padding: 0;
}

.conversion-ring {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--white) 0 58%, transparent 59%),
    conic-gradient(#7c3aed calc(var(--value) * 1%), #e9ddff 0);
  box-shadow: 0 20px 42px rgba(124, 58, 237, 0.16);
}

.conversion-ring strong {
  color: var(--ink);
  font-size: 1.18rem;
}

.conversion-ring span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
}

.conversion-compact h4 {
  margin: 0 0 5px;
  color: var(--ink);
}

.conversion-compact p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.32;
}

.floating-chart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 20, 42, 0.42);
  backdrop-filter: blur(8px);
}

.floating-chart {
  width: min(1120px, 96vw);
  max-height: 88vh;
  overflow: auto;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 34px 90px rgba(7, 20, 42, 0.28);
  animation: chartReveal 0.32s ease both;
  transform-origin: center;
}

@keyframes chartReveal {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.floating-chart-header,
.conversion-modal-grid {
  display: grid;
  gap: 18px;
}

.floating-chart-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 18px;
}

.floating-chart-header span {
  color: var(--muted);
  font-weight: 850;
}

.floating-chart-header h3 {
  margin: 4px 0 0;
  font-size: 1.8rem;
}

.conversion-modal-grid {
  grid-template-columns: 0.42fr minmax(0, 1fr);
  align-items: stretch;
}

.conversion-funnel-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.conversion-funnel {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.conversion-funnel h4,
.conversion-trend h4 {
  margin: 0;
  color: var(--ink);
}

.funnel-step {
  width: var(--w);
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  justify-self: center;
  border: 0;
  color: #fff;
  clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%);
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.funnel-step strong {
  font-size: 1.12rem;
}

.funnel-step:hover,
.funnel-step.focused {
  transform: translateY(-1px);
  filter: saturate(1.1);
  box-shadow: 0 12px 24px rgba(7, 20, 42, 0.16);
}

.funnel-step.purple { background: linear-gradient(90deg, #9333ea, #c084fc); }
.funnel-step.blue { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.funnel-step.cyan { background: linear-gradient(90deg, #0891b2, #67e8f9); }
.funnel-step.green { background: linear-gradient(90deg, #16a34a, #86efac); }

.conversion-trend {
  margin-top: 12px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.conversion-trend svg {
  width: 100%;
  height: 138px;
}

.conversion-focus-strip {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.07);
  color: var(--muted);
}

.conversion-focus-strip strong {
  min-width: 44px;
  color: #7c3aed;
  font-size: 1.35rem;
}

.conversion-focus-strip b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
}

.profitability-modal {
  width: min(1280px, 98vw);
  background:
    radial-gradient(circle at 18% 0%, rgba(34, 197, 94, 0.1), transparent 30%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  color: var(--ink);
  border-color: var(--line);
}

.profitability-modal .floating-chart-header h3,
.profitability-modal .floating-chart-header span {
  color: var(--ink);
}

.profitability-modal .floating-chart-header span {
  color: var(--muted);
}

.profitability-full {
  display: grid;
  grid-template-columns: 0.78fr 1.05fr 1.1fr;
  gap: 14px;
}

.profitability-ring-card,
.profitability-metrics,
.profitability-evolution,
.profitability-distribution,
.profitability-insight {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 18px 42px rgba(7, 20, 42, 0.08);
}

.profitability-ring-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  min-height: 300px;
  padding: 18px;
}

.profitability-ring-card h4,
.profitability-evolution h4,
.profitability-distribution h4 {
  margin: 0;
  color: var(--ink);
}

.profitability-full .benefit-score-ring {
  width: var(--ring-size, 216px);
  height: var(--ring-size, 216px);
  background:
    radial-gradient(circle, #ffffff 0 57%, transparent 58%),
    conic-gradient(#22c55e calc(var(--value) * 1%), #e6ebf3 0);
  box-shadow: 0 24px 54px rgba(34, 197, 94, 0.14);
}

.profitability-full.negative .benefit-score-ring {
  background:
    radial-gradient(circle, #ffffff 0 57%, transparent 58%),
    conic-gradient(#ef4444 calc(var(--value) * 1%), #e6ebf3 0);
}

.profitability-full .benefit-score-ring strong {
  color: var(--ink);
  max-width: calc(var(--ring-size, 216px) * 0.6);
  font-size: 1.38rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.profitability-full .benefit-score-ring span {
  color: var(--muted);
}

.profitability-metrics {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.profit-kpi {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 228px;
  padding: 18px;
  border: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.14);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.profit-kpi:first-child {
  border-left: 0;
}

.profit-kpi:hover,
.profit-kpi.focused {
  background: rgba(34, 197, 94, 0.06);
}

.profit-kpi-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.profit-kpi-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.profit-kpi.green .profit-kpi-icon { color: #4ade80; background: rgba(34, 197, 94, 0.17); }
.profit-kpi.blue .profit-kpi-icon { color: #60a5fa; background: rgba(59, 130, 246, 0.17); }
.profit-kpi.purple .profit-kpi-icon { color: #c084fc; background: rgba(168, 85, 247, 0.18); }

.profit-kpi small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.profit-kpi strong {
  color: currentColor;
  font-size: 1.55rem;
}

.profit-kpi.green strong { color: #4ade80; }
.profit-kpi.blue strong { color: #60a5fa; }
.profit-kpi.purple strong { color: #c084fc; }

.profit-kpi em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.profitability-evolution {
  grid-column: span 2;
  padding: 16px;
}

.profitability-evolution svg {
  width: 100%;
  height: 168px;
}

.profit-grid {
  fill: none;
  stroke: rgba(148, 163, 184, 0.14);
}

.profit-area {
  fill: rgba(74, 222, 128, 0.15);
}

.profit-line {
  fill: none;
  stroke: #4ade80;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profitability-evolution circle {
  fill: #4ade80;
  stroke: #ffffff;
  stroke-width: 3;
}

.profitability-evolution text {
  fill: var(--ink);
  font-size: 8px;
  font-weight: 800;
  text-anchor: middle;
}

.profitability-distribution {
  padding: 18px;
  display: grid;
  grid-template-columns: 150px minmax(220px, 1fr);
  gap: 18px;
  align-items: center;
}

.profitability-distribution h4 {
  grid-column: 1 / -1;
}

.profit-donut {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffffff 0 54%, transparent 55%),
    conic-gradient(#4ade80 0 calc(var(--commission) * 1%), #60a5fa 0 calc((var(--commission) + var(--expenses)) * 1%), #c084fc 0 100%);
}

.profit-donut strong {
  color: var(--ink);
  font-size: 1rem;
}

.profit-donut span {
  color: var(--muted);
  font-size: 0.72rem;
}

.profit-legend {
  display: grid;
  gap: 8px;
}

.profit-legend button {
  display: grid;
  grid-template-columns: 12px minmax(140px, 1fr) minmax(64px, auto);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.profit-legend button:hover {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(7, 20, 42, 0.04);
}

.profit-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.profit-legend .green { background: #4ade80; }
.profit-legend .blue { background: #60a5fa; }
.profit-legend .purple { background: #c084fc; }

.profit-legend span {
  color: var(--muted);
  min-width: 0;
}

.profit-legend strong {
  color: var(--ink);
  min-width: 64px;
  text-align: right;
  justify-self: end;
}

.profitability-insight {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: var(--ink);
}

.profitability-insight i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #16a34a, #4ade80);
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

body.dark-theme .benefit-compact .benefit-score-ring {
  background:
    radial-gradient(circle, #101b2d 0 58%, transparent 59%),
    conic-gradient(var(--green) calc(var(--value) * 1%), #2a3950 0);
}

body.dark-theme .benefit-compact.negative .benefit-score-ring {
  background:
    radial-gradient(circle, #101b2d 0 58%, transparent 59%),
    conic-gradient(var(--red) calc(var(--value) * 1%), #2a3950 0);
}

body.dark-theme .profitability-modal {
  background:
    radial-gradient(circle at 18% 0%, rgba(34, 197, 94, 0.14), transparent 30%),
    linear-gradient(180deg, #0d1728, #08111f);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.16);
}

body.dark-theme .profitability-modal .floating-chart-header h3,
body.dark-theme .profitability-modal .floating-chart-header span,
body.dark-theme .profitability-ring-card h4,
body.dark-theme .profitability-evolution h4,
body.dark-theme .profitability-distribution h4 {
  color: #f8fafc;
}

body.dark-theme .profitability-modal .floating-chart-header span {
  color: #aab5c6;
}

body.dark-theme .profitability-ring-card,
body.dark-theme .profitability-metrics,
body.dark-theme .profitability-evolution,
body.dark-theme .profitability-distribution,
body.dark-theme .profitability-insight {
  background: rgba(9, 17, 31, 0.74);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.dark-theme .profitability-full .benefit-score-ring {
  background:
    radial-gradient(circle, #0c1627 0 57%, transparent 58%),
    conic-gradient(#4ade80 calc(var(--value) * 1%), #17243a 0);
}

body.dark-theme .profitability-full.negative .benefit-score-ring {
  background:
    radial-gradient(circle, #0c1627 0 57%, transparent 58%),
    conic-gradient(#ef4444 calc(var(--value) * 1%), #17243a 0);
}

body.dark-theme .profitability-full .benefit-score-ring strong,
body.dark-theme .profit-kpi,
body.dark-theme .profit-legend button,
body.dark-theme .profitability-insight,
body.dark-theme .profit-donut strong,
body.dark-theme .profit-legend strong {
  color: #f8fafc;
}

body.dark-theme .profitability-full .benefit-score-ring span,
body.dark-theme .profit-kpi small,
body.dark-theme .profit-kpi em,
body.dark-theme .profit-donut span,
body.dark-theme .profit-legend span {
  color: #9fb0c9;
}

body.dark-theme .profit-kpi:hover,
body.dark-theme .profit-kpi.focused,
body.dark-theme .profit-legend button:hover {
  background: rgba(255, 255, 255, 0.04);
}

body.dark-theme .profitability-evolution circle {
  stroke: #0c1627;
}

body.dark-theme .profitability-evolution text {
  fill: #f8fafc;
}

body.dark-theme .profit-donut {
  background:
    radial-gradient(circle, #0c1627 0 54%, transparent 55%),
    conic-gradient(#4ade80 0 calc(var(--commission) * 1%), #60a5fa 0 calc((var(--commission) + var(--expenses)) * 1%), #c084fc 0 100%);
}

.analytics-compact {
  position: relative;
  min-height: 126px;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.analytics-compact.two-values {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-compact {
  min-height: 122px;
  grid-template-columns: 96px minmax(0, 1fr);
}

.ranking-compact .compact-spark {
  height: 36px;
  width: 50%;
}

.ranking-compact .compact-copy strong {
  font-size: 1rem;
}

.agent-commission-chart {
  min-height: 122px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.agent-commission-chart .compact-ring {
  width: 92px;
  height: 92px;
}

.agent-commission-chart .compact-ring strong {
  max-width: 74px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.agent-commission-chart .compact-spark {
  grid-column: 1 / -1;
  width: 100%;
  height: 34px;
}

.closed-compact-only {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closed-compact-only .compact-ring {
  width: 118px;
  height: 118px;
}

.closed-compact-only .compact-ring strong {
  font-size: 1.72rem;
}

.closed-compact-only .compact-ring span {
  font-size: 0.86rem;
}

.compact-ring {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--white) 0 56%, transparent 57%),
    conic-gradient(var(--ring-color, #2563eb) calc(var(--value) * 1%), #e6ebf3 0);
  box-shadow: 0 20px 42px rgba(7, 20, 42, 0.12);
  font-family: inherit;
  cursor: pointer;
}

.compact-ring.large {
  width: 190px;
  height: 190px;
}

.compact-ring strong {
  color: var(--ink);
  font-size: 1.38rem;
  line-height: 1;
}

.compact-ring span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.compact-ring.blue-purple { --ring-color: #4f7cff; }
.compact-ring.purple { --ring-color: #8b5cf6; }
.compact-ring.green { --ring-color: #22c55e; }
.compact-ring.danger { --ring-color: #ef4444; }

.compact-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
}

.compact-copy span {
  color: var(--muted);
  font-weight: 850;
}

.compact-copy strong {
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.05;
}

.compact-copy small {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.compact-spark {
  position: absolute;
  right: 6px;
  bottom: 4px;
  width: 45%;
  height: 44px;
  opacity: 0.62;
  pointer-events: none;
}

.compact-spark polyline {
  fill: none;
  stroke: #4f7cff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 12px rgba(79, 124, 255, 0.24));
}

.compact-spark circle {
  fill: #fff;
  stroke: #4f7cff;
  stroke-width: 3;
}

.compact-spark.purple polyline,
.compact-spark.purple circle { stroke: #8b5cf6; }
.compact-spark.green polyline,
.compact-spark.green circle { stroke: #22c55e; }
.compact-spark.red polyline,
.compact-spark.red circle { stroke: #ef4444; }

.closed-spark polyline {
  display: none;
}

.closed-spark-line {
  fill: none;
  stroke: #4f7cff;
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 8px 14px rgba(79, 124, 255, 0.28));
}

.closed-spark-area {
  fill: rgba(79, 124, 255, 0.12);
}

.closed-spark.purple .closed-spark-line,
.closed-spark.purple circle {
  stroke: #8b5cf6;
}

.closed-spark.purple .closed-spark-area {
  fill: rgba(139, 92, 246, 0.14);
}

.closed-spark.blue .closed-spark-line,
.closed-spark.blue circle {
  stroke: #4f7cff;
}

.closed-spark.blue .closed-spark-area {
  fill: rgba(79, 124, 255, 0.14);
}

.compact-metric {
  min-height: 72px;
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
  font-family: inherit;
  cursor: pointer;
}

.compact-metric span {
  color: var(--muted);
  font-weight: 850;
}

.compact-metric strong {
  color: var(--ink);
  font-size: 1rem;
}

.compact-metric.blue { box-shadow: inset 0 0 0 1px rgba(79, 124, 255, 0.14); }
.compact-metric.purple { box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.16); }

.compact-bars {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
}

.compact-bars i {
  display: block;
  height: 8px;
  border-radius: 999px;
}

.compact-bars .blue { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.compact-bars .purple { background: linear-gradient(90deg, #7c3aed, #c084fc); }

.analytics-modal {
  width: min(1280px, 98vw);
}

.analytics-header {
  align-items: center;
}

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

.analytics-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.14);
  border-radius: 14px;
}

.analytics-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.analytics-detail {
  display: grid;
  gap: 16px;
}

.detail-hero {
  min-height: 260px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 0.8fr;
  align-items: center;
  gap: 28px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 34%, rgba(139, 92, 246, 0.12), transparent 30%),
    rgba(248, 250, 252, 0.9);
}

.detail-hero-copy {
  display: grid;
  gap: 8px;
}

.detail-hero-copy span,
.detail-hero-copy small {
  color: var(--muted);
  font-weight: 850;
}

.detail-hero-copy strong {
  color: var(--ink);
  font-size: 4rem;
  line-height: 1;
}

.closed-detail-grid,
.ranking-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.closed-modal {
  width: min(1240px, 97vw);
  padding: 16px;
}

.closed-modal .floating-chart-header {
  margin-bottom: 12px;
}

.closed-modal .analytics-icon {
  width: 50px;
  height: 50px;
}

.closed-modal .floating-chart-header h3 {
  font-size: 1.55rem;
}

.closed-detail {
  gap: 10px;
}

.closed-goal-hero {
  min-height: 196px;
  display: grid;
  grid-template-columns: 190px minmax(0, 0.68fr) minmax(380px, 1fr) 150px;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 44%, rgba(79, 124, 255, 0.14), transparent 33%),
    linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.92));
}

.closed-goal-hero .compact-ring.large {
  width: 172px;
  height: 172px;
}

.closed-goal-hero .compact-ring.large strong {
  font-size: 2.75rem;
}

.closed-hero-copy {
  display: grid;
  gap: 5px;
}

.closed-hero-copy span,
.closed-hero-copy small {
  color: var(--muted);
  font-weight: 850;
}

.closed-hero-copy strong {
  color: var(--ink);
  font-size: 3.35rem;
  line-height: 1;
}

.closed-hero-visual {
  min-height: 145px;
  position: relative;
  display: grid;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(79, 124, 255, 0.1), rgba(139, 92, 246, 0.11)),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(49, 95, 156, 0.08) 39px 40px);
}

.closed-hero-visual .compact-spark {
  position: static;
  width: 100%;
  height: 118px;
  opacity: 0.9;
}

.closed-change {
  width: max-content;
  display: grid;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #16a34a;
  background: rgba(34, 197, 94, 0.1);
  font-size: 0.92rem;
  font-weight: 900;
}

.closed-goal-hero > .closed-change {
  justify-self: end;
}

.closed-change.negative {
  color: #e11d48;
  background: rgba(225, 29, 72, 0.1);
}

.closed-change.neutral {
  color: var(--muted);
  background: rgba(148, 163, 184, 0.12);
}

.closed-change small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.closed-progress-card {
  min-height: 212px;
  position: relative;
  display: grid;
  gap: 10px;
  align-content: stretch;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(79, 124, 255, 0.1), transparent 28%),
    rgba(248, 250, 252, 0.94);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.closed-progress-card.purple {
  background:
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.12), transparent 28%),
    rgba(248, 250, 252, 0.94);
}

.closed-progress-card.focused {
  border-color: rgba(79, 124, 255, 0.58);
  box-shadow: 0 20px 46px rgba(49, 95, 156, 0.16);
}

.closed-card-head,
.closed-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.closed-card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #4f7cff;
  background: rgba(79, 124, 255, 0.14);
  border-radius: 16px;
}

.closed-progress-card.purple .closed-card-icon {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.15);
}

.closed-card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.closed-card-body span,
.closed-progress-card em {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}

.closed-card-body strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 1.95rem;
  line-height: 1;
}

.closed-card-body strong small {
  color: var(--muted);
  font-size: 1rem;
}

.closed-card-ring {
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--white) 0 56%, transparent 57%),
    conic-gradient(#4f7cff calc(var(--value) * 1%), #e6ebf3 0);
}

.closed-progress-card.purple .closed-card-ring {
  background:
    radial-gradient(circle, var(--white) 0 56%, transparent 57%),
    conic-gradient(#8b5cf6 calc(var(--value) * 1%), #e6ebf3 0);
}

.closed-card-ring strong {
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1;
}

.closed-card-ring span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
}

.closed-progress-card .compact-spark {
  position: static;
  width: 100%;
  height: 82px;
  opacity: 0.85;
}

.closed-insight {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  min-height: 62px;
}

.analytics-icon.small {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.analytics-icon.small svg {
  width: 22px;
  height: 22px;
}

.detail-progress-card {
  min-height: 190px;
  display: grid;
  gap: 9px;
  align-content: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.detail-progress-card strong {
  color: var(--ink);
  font-size: 2.25rem;
}

.detail-progress-card small,
.detail-progress-card span,
.detail-progress-card em {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}

.detail-progress-track {
  height: 12px;
  overflow: hidden;
  background: #e6ebf3;
  border-radius: 999px;
}

.detail-progress-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: inherit;
}

.detail-progress-card.gold .detail-progress-track i {
  background: linear-gradient(90deg, #7c3aed, #c084fc);
}

.analytics-insight {
  display: grid;
  gap: 5px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
}

.analytics-insight b {
  color: var(--ink);
  font-size: 1rem;
}

.analytics-insight span,
.analytics-insight small {
  color: var(--muted);
}

.time-detail-main {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 230px;
  align-items: stretch;
  gap: 16px;
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 52% 20%, rgba(139, 92, 246, 0.12), transparent 34%),
    rgba(248, 250, 252, 0.9);
}

.time-detail-main.focus-one {
  grid-template-columns: 250px minmax(0, 1fr);
}

.time-detail-main.focus-one .time-detail-chart {
  min-height: 360px;
}

.time-side-card {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 10%, rgba(79, 124, 255, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.74);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 22px 44px rgba(37, 99, 235, 0.08);
}

.time-side-card.focused,
.expenses-row.focused,
.agent-row.focused {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12), 0 22px 44px rgba(37, 99, 235, 0.08);
}

.time-side-card.rent {
  background:
    radial-gradient(circle at 30% 10%, rgba(139, 92, 246, 0.18), transparent 38%),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 22px 44px rgba(139, 92, 246, 0.1);
}

.time-side-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.14);
}

.time-side-icon.rent {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.16);
}

.time-side-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.time-side-card strong {
  color: var(--ink);
  font-size: 3.8rem;
  line-height: 1;
}

.time-side-card strong b {
  color: #2563eb;
  font-size: 1.35rem;
}

.time-side-card.rent strong b {
  color: #c084fc;
}

.time-side-card span,
.time-side-card small {
  color: var(--muted);
  font-weight: 850;
}

.time-side-card > span:not(.time-side-icon) {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 950;
}

.time-side-card small.good {
  color: var(--green);
}

.time-side-card small.bad {
  color: var(--red);
}

.time-side-card small.neutral {
  color: var(--muted);
}

.time-detail-chart {
  position: relative;
  display: grid;
  align-items: center;
}

.time-difference {
  width: max-content;
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  text-align: center;
  box-shadow: 0 18px 34px rgba(7, 20, 42, 0.1);
}

.time-difference strong {
  display: block;
  color: var(--green);
}

.time-difference span {
  color: var(--muted);
  font-size: 0.78rem;
}

.time-curve-panel {
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: 10px 0 24px;
}

.time-curve-panel svg {
  width: 100%;
  height: 300px;
  overflow: visible;
}

.time-curve-grid {
  fill: none;
  stroke: rgba(107, 114, 128, 0.24);
  stroke-dasharray: 6 7;
}

.time-curve-area {
  fill: url(#timeCurveFill);
}

.time-curve-line {
  fill: none;
  stroke: url(#timeCurveStroke);
  stroke-width: 7;
  stroke-linecap: round;
  filter: drop-shadow(0 14px 22px rgba(139, 92, 246, 0.32));
}

.time-curve-stem {
  stroke-width: 1.5;
  opacity: 0.45;
}

.time-curve-stem.sale {
  stroke: #38bdf8;
}

.time-curve-stem.rent {
  stroke: #c084fc;
}

.time-curve-dot {
  fill: var(--white);
  stroke-width: 6;
  filter: drop-shadow(0 0 10px currentColor);
}

.time-curve-dot.sale {
  color: #38bdf8;
  stroke: #38bdf8;
}

.time-curve-dot.rent {
  color: #c084fc;
  stroke: #c084fc;
}

.time-curve-panel text {
  fill: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.time-curve-label {
  fill: var(--ink);
  font-size: 0.9rem;
  text-anchor: middle;
}

.analytics-insight.split {
  grid-template-columns: 1fr auto auto;
  align-items: center;
}

.time-insight-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(150px, 0.55fr));
  gap: 18px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
}

.time-insight-copy {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-right: 22px;
  border-right: 1px solid var(--line);
}

.time-insight-copy b {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
}

.time-insight-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.time-insight-copy p strong {
  color: #8b5cf6;
}

.time-insight-metric {
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: start;
}

.time-insight-metric strong {
  color: var(--ink);
  font-size: 1.8rem;
}

.time-insight-metric small {
  color: var(--muted);
  line-height: 1.35;
}

.analytics-icon.blue {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.14);
}

.analytics-icon.green {
  color: #16a34a;
  background: rgba(34, 197, 94, 0.14);
}

.analytics-icon.purple {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.14);
}

.expenses-progress {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
}

.expenses-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 110px;
  align-items: center;
  gap: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.expenses-progress.focus-one {
  grid-template-columns: 1fr;
}

.expenses-icon {
  min-height: 88px;
  display: grid;
  place-items: center;
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.14);
  border-radius: 14px;
  font-weight: 900;
}

.expenses-row.real .expenses-icon {
  color: #16a34a;
  background: rgba(34, 197, 94, 0.14);
}

.expenses-row div {
  display: grid;
  gap: 7px;
}

.expenses-row strong {
  color: var(--ink);
  font-size: 1.7rem;
}

.expenses-row small,
.expenses-summary span,
.expenses-summary small {
  color: var(--muted);
}

.expenses-row i {
  display: block;
  height: 13px;
  background: linear-gradient(90deg, #8b5cf6, #c084fc);
  border-radius: 999px;
}

.expenses-row.real i {
  background: linear-gradient(90deg, #16a34a, #86efac);
}

.expenses-row b {
  min-height: 74px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 1.45rem;
}

.expenses-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.expenses-summary strong,
.expenses-summary b {
  color: var(--ink);
  font-size: 1.5rem;
}

.expenses-modal {
  width: min(1240px, 97vw);
}

.expenses-modal .floating-chart-header {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
}

.expenses-title-icon {
  color: #8b5cf6;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(79, 124, 255, 0.12));
}

.expenses-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.expenses-header-actions .secondary-action,
.expenses-status {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 12px;
  font-weight: 900;
}

.expenses-header-actions svg,
.expenses-status svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.expenses-status {
  padding: 0 16px;
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.18);
  background: rgba(34, 197, 94, 0.1);
}

.expenses-status.danger {
  color: #e11d48;
  border-color: rgba(225, 29, 72, 0.18);
  background: rgba(225, 29, 72, 0.1);
}

.expenses-showcase {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 78% 8%, rgba(139, 92, 246, 0.1), transparent 28%),
    rgba(248, 250, 252, 0.94);
}

.expenses-showcase-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.expenses-showcase-title h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.35rem;
}

.expenses-showcase-title span,
.expenses-showcase-title small {
  color: var(--muted);
  font-weight: 850;
}

.expenses-showcase-title small {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.expenses-showcase .expenses-row {
  grid-template-columns: 136px minmax(0, 1fr) 128px;
  min-height: 128px;
  padding: 14px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.7)),
    rgba(255, 255, 255, 0.7);
}

.expenses-showcase .expenses-icon {
  min-height: 102px;
  display: grid;
  align-content: center;
  gap: 8px;
  color: #a855f7;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(79, 124, 255, 0.1));
}

.expenses-showcase .expenses-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.expenses-showcase .expenses-icon em {
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.expenses-showcase .expenses-row.real .expenses-icon {
  color: #22c55e;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.08));
}

.expenses-showcase .expenses-row strong {
  font-size: 1.75rem;
}

.expenses-showcase .expenses-row b {
  min-height: 86px;
  display: grid;
  place-items: center;
  gap: 3px;
  text-align: center;
}

.expenses-showcase .expenses-row b small {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
}

.expenses-summary-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) repeat(3, minmax(150px, 1fr));
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.expenses-summary-grid > div {
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 12px 16px;
  border-left: 1px solid var(--line);
}

.expenses-summary-grid > div:first-child {
  border-left: 0;
}

.expenses-summary-main {
  grid-template-columns: 62px minmax(0, 1fr);
  grid-template-areas:
    "icon value"
    "icon label";
  align-items: center;
}

.expenses-summary-icon {
  grid-area: icon;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #4f7cff;
  background: rgba(79, 124, 255, 0.14);
  border-radius: 14px;
}

.expenses-summary-icon svg,
.mini-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.expenses-summary-main strong {
  grid-area: value;
}

.expenses-summary-main span:not(.expenses-summary-icon) {
  grid-area: label;
}

.expenses-summary-grid strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.expenses-summary-grid span,
.expenses-summary-grid small {
  color: var(--muted);
  font-weight: 850;
}

.mini-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #4f7cff;
  background: rgba(79, 124, 255, 0.12);
  border-radius: 12px;
}

.expenses-insight {
  position: relative;
  min-height: 106px;
  display: grid;
  grid-template-columns: 54px minmax(280px, 0.78fr) minmax(260px, 1fr);
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 42%, rgba(79, 124, 255, 0.14), transparent 32%),
    rgba(248, 250, 252, 0.94);
}

.expenses-insight b {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 1.05rem;
}

.expenses-insight span {
  color: var(--muted);
}

.expenses-insight .closed-spark {
  position: static;
  width: 100%;
  height: 78px;
  opacity: 0.9;
}

.closed-spark.red .closed-spark-line,
.closed-spark.red circle {
  stroke: #ef4444;
}

.closed-spark.red .closed-spark-area {
  fill: rgba(239, 68, 68, 0.14);
}

.analytics-insight.with-spark {
  position: relative;
  min-height: 96px;
  overflow: hidden;
}

.ranking-kpis {
  grid-template-columns: 1.05fr repeat(3, 1fr);
}

.ranking-modal {
  width: min(1280px, 97vw);
}

.ranking-dashboard {
  gap: 16px;
}

.ranking-top-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, minmax(210px, 1fr));
  gap: 16px;
}

.ranking-best-card,
.ranking-metric-card,
.ranking-conversion-card {
  min-height: 150px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.18), transparent 38%),
    rgba(248, 250, 252, 0.94);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.ranking-best-card {
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 16px;
}

.ranking-trophy {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: #a855f7;
  background: rgba(139, 92, 246, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 36px rgba(139, 92, 246, 0.22);
}

.ranking-trophy svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ranking-best-card small,
.ranking-metric-card small,
.ranking-conversion-card small {
  color: var(--muted);
  font-weight: 850;
}

.ranking-best-card strong,
.ranking-metric-card strong,
.ranking-conversion-card strong {
  display: block;
  margin: 6px 0;
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
}

.ranking-best-card em,
.ranking-metric-card i,
.ranking-conversion-card span,
.ranking-metric-card span em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.ranking-best-card b {
  padding: 8px 12px;
  color: #f8fafc;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-radius: 12px;
}

.ranking-metric-card {
  align-content: center;
  gap: 6px;
  padding-bottom: 14px;
}

.ranking-metric-card .closed-spark {
  position: static;
  width: 100%;
  height: 46px;
  opacity: 0.86;
  margin-top: 4px;
}

.ranking-metric-card span,
.agent-trend b {
  color: #16a34a;
  font-weight: 900;
}

.ranking-metric-card span.negative,
.agent-trend.negative b {
  color: #e11d48;
}

.ranking-metric-card span.neutral,
.agent-trend.neutral b {
  color: var(--muted);
}

.ranking-metric-card.green {
  background:
    radial-gradient(circle at 80% 35%, rgba(34, 197, 94, 0.14), transparent 38%),
    rgba(248, 250, 252, 0.94);
}

.ranking-conversion-card {
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 16px;
}

.rank-donut {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--white) 0 54%, transparent 55%),
    conic-gradient(#4f7cff calc(var(--value) * 1%), #e6ebf3 0);
}

.agent-leaderboard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
}

.agent-leaderboard-head,
.agent-rank-row {
  display: grid;
  grid-template-columns: 58px minmax(210px, 1.1fr) minmax(130px, 0.72fr) minmax(170px, 0.82fr) minmax(140px, 0.72fr) minmax(210px, 1fr);
  align-items: center;
  gap: 16px;
}

.agent-leaderboard-head {
  padding: 18px 22px;
  color: var(--muted);
  font-weight: 900;
}

.agent-rank-row {
  width: 100%;
  min-height: 92px;
  padding: 16px 22px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.agent-rank-row.leader,
.agent-rank-row.focused {
  margin: 0 14px 0;
  width: calc(100% - 28px);
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 16px;
  background: rgba(139, 92, 246, 0.06);
  box-shadow: 0 16px 42px rgba(139, 92, 246, 0.12);
}

.rank-medal {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 950;
  background: rgba(255, 255, 255, 0.72);
}

.rank-medal.rank-1 {
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #5eead4);
  box-shadow: 0 8px 20px rgba(201, 154, 46, 0.28);
}

.rank-medal.rank-2 {
  background: linear-gradient(135deg, #94a3b8, #e2e8f0);
}

.rank-medal.rank-3 {
  color: #fff;
  background: linear-gradient(135deg, #b45309, #fb923c);
}

.agent-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-person i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #0f172a;
  background: #e8edf5;
  border-radius: 50%;
  font-style: normal;
  font-weight: 950;
  overflow: hidden;
}

.agent-person i img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-person span {
  color: var(--ink);
  font-weight: 900;
}

.agent-person small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.rank-metric {
  display: grid;
  gap: 8px;
}

.rank-metric strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.rank-metric i {
  display: block;
  height: 7px;
  max-width: 120px;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #a855f7);
}

.agent-trend {
  display: grid;
  grid-template-columns: 68px minmax(92px, 1fr);
  gap: 4px 12px;
  align-items: center;
}

.agent-trend small {
  color: var(--muted);
  font-weight: 800;
}

.agent-trend .closed-spark {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: static;
  width: 100%;
  height: 42px;
}

.closed-spark.green .closed-spark-line,
.closed-spark.green circle {
  stroke: #22c55e;
}

.closed-spark.green .closed-spark-area {
  fill: rgba(34, 197, 94, 0.14);
}

.ranking-kpis > div {
  position: relative;
  min-height: 140px;
  overflow: hidden;
  display: grid;
  gap: 7px;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
}

.ranking-kpis small,
.ranking-kpis em {
  color: var(--muted);
  font-style: normal;
}

.ranking-kpis strong {
  color: var(--ink);
  font-size: 1.55rem;
}

.agent-table {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
}

.agent-row {
  position: relative;
  min-height: 74px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 150px 90px 160px;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  width: 100%;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.agent-row.leader {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
}

.agent-row b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: rgba(201, 154, 46, 0.2);
}

.agent-row span {
  color: var(--ink);
  font-weight: 900;
}

.agent-row span small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 750;
}

.agent-row strong {
  color: var(--ink);
}

.agent-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}

.agent-row .compact-spark {
  position: static;
  width: 150px;
  height: 48px;
}

body.dark-theme .compact-ring {
  background:
    radial-gradient(circle, #101b2d 0 56%, transparent 57%),
    conic-gradient(var(--ring-color, #60a5fa) calc(var(--value) * 1%), #2a3950 0);
}

body.dark-theme .compact-ring strong,
body.dark-theme .compact-copy strong,
body.dark-theme .closed-hero-copy strong,
body.dark-theme .closed-card-body strong,
body.dark-theme .closed-card-ring strong,
body.dark-theme .detail-hero-copy strong,
body.dark-theme .detail-progress-card strong,
body.dark-theme .time-side-card strong,
body.dark-theme .expenses-row strong,
body.dark-theme .expenses-row b,
body.dark-theme .expenses-summary strong,
body.dark-theme .expenses-summary b,
body.dark-theme .expenses-showcase-title h4,
body.dark-theme .expenses-summary-grid strong,
body.dark-theme .expenses-insight b,
body.dark-theme .ranking-best-card strong,
body.dark-theme .ranking-metric-card strong,
body.dark-theme .ranking-conversion-card strong,
body.dark-theme .agent-person span,
body.dark-theme .rank-metric strong,
body.dark-theme .ranking-kpis strong,
body.dark-theme .agent-row span,
body.dark-theme .agent-row strong {
  color: #f8fafc;
}

body.dark-theme .compact-ring span,
body.dark-theme .compact-copy span,
body.dark-theme .compact-copy small,
body.dark-theme .closed-hero-copy span,
body.dark-theme .closed-hero-copy small,
body.dark-theme .closed-change small,
body.dark-theme .closed-card-body span,
body.dark-theme .closed-card-body strong small,
body.dark-theme .closed-card-ring span,
body.dark-theme .closed-progress-card em,
body.dark-theme .detail-hero-copy span,
body.dark-theme .detail-hero-copy small,
body.dark-theme .detail-progress-card small,
body.dark-theme .detail-progress-card span,
body.dark-theme .detail-progress-card em,
body.dark-theme .analytics-insight span,
body.dark-theme .analytics-insight small,
body.dark-theme .time-side-card span,
body.dark-theme .time-side-card small,
body.dark-theme .expenses-row small,
body.dark-theme .expenses-summary span,
body.dark-theme .expenses-summary small,
body.dark-theme .expenses-showcase-title span,
body.dark-theme .expenses-showcase-title small,
body.dark-theme .expenses-summary-grid span,
body.dark-theme .expenses-summary-grid small,
body.dark-theme .expenses-insight span,
body.dark-theme .ranking-best-card small,
body.dark-theme .ranking-best-card em,
body.dark-theme .ranking-metric-card small,
body.dark-theme .ranking-metric-card i,
body.dark-theme .ranking-conversion-card small,
body.dark-theme .ranking-conversion-card span,
body.dark-theme .agent-leaderboard-head,
body.dark-theme .agent-person small,
body.dark-theme .agent-trend small,
body.dark-theme .ranking-kpis small,
body.dark-theme .ranking-kpis em,
body.dark-theme .agent-row span small,
body.dark-theme .agent-row em {
  color: #9fb0c9;
}

body.dark-theme .compact-metric,
body.dark-theme .closed-goal-hero,
body.dark-theme .closed-progress-card,
body.dark-theme .detail-hero,
body.dark-theme .detail-progress-card,
body.dark-theme .analytics-insight,
body.dark-theme .time-insight-panel,
body.dark-theme .time-detail-main,
body.dark-theme .time-side-card,
body.dark-theme .expenses-progress,
body.dark-theme .expenses-showcase,
body.dark-theme .expenses-row,
body.dark-theme .expenses-summary,
body.dark-theme .expenses-summary-grid,
body.dark-theme .expenses-insight,
body.dark-theme .ranking-best-card,
body.dark-theme .ranking-metric-card,
body.dark-theme .ranking-conversion-card,
body.dark-theme .agent-leaderboard,
body.dark-theme .ranking-kpis > div,
body.dark-theme .agent-table,
body.dark-theme .agent-row {
  background: rgba(9, 17, 31, 0.74);
  border-color: rgba(148, 163, 184, 0.16);
}

body.dark-theme .closed-goal-hero {
  background:
    radial-gradient(circle at 85% 44%, rgba(79, 124, 255, 0.2), transparent 33%),
    linear-gradient(135deg, rgba(9, 17, 31, 0.86), rgba(12, 22, 39, 0.74));
}

body.dark-theme .closed-hero-visual {
  background:
    linear-gradient(135deg, rgba(79, 124, 255, 0.14), rgba(139, 92, 246, 0.16)),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(148, 163, 184, 0.08) 39px 40px);
}

body.dark-theme .closed-progress-card {
  background:
    radial-gradient(circle at 20% 20%, rgba(79, 124, 255, 0.18), transparent 30%),
    rgba(9, 17, 31, 0.74);
}

body.dark-theme .closed-progress-card.purple {
  background:
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.2), transparent 30%),
    rgba(9, 17, 31, 0.74);
}

body.dark-theme .closed-card-ring {
  background:
    radial-gradient(circle, #101b2d 0 56%, transparent 57%),
    conic-gradient(#60a5fa calc(var(--value) * 1%), #2a3950 0);
}

body.dark-theme .closed-progress-card.purple .closed-card-ring {
  background:
    radial-gradient(circle, #101b2d 0 56%, transparent 57%),
    conic-gradient(#a78bfa calc(var(--value) * 1%), #2a3950 0);
}

body.dark-theme .expenses-showcase {
  background:
    radial-gradient(circle at 78% 8%, rgba(139, 92, 246, 0.18), transparent 28%),
    rgba(9, 17, 31, 0.74);
}

body.dark-theme .expenses-showcase .expenses-row,
body.dark-theme .expenses-summary-grid,
body.dark-theme .expenses-insight {
  background: rgba(12, 22, 39, 0.78);
}

body.dark-theme .expenses-showcase-title small {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.16);
}

body.dark-theme .expenses-summary-grid > div {
  border-left-color: rgba(148, 163, 184, 0.16);
}

body.dark-theme .ranking-best-card,
body.dark-theme .ranking-metric-card,
body.dark-theme .ranking-conversion-card {
  background:
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.18), transparent 38%),
    rgba(9, 17, 31, 0.74);
}

body.dark-theme .ranking-metric-card.green {
  background:
    radial-gradient(circle at 80% 35%, rgba(34, 197, 94, 0.16), transparent 38%),
    rgba(9, 17, 31, 0.74);
}

body.dark-theme .rank-donut {
  background:
    radial-gradient(circle, #101b2d 0 54%, transparent 55%),
    conic-gradient(#60a5fa calc(var(--value) * 1%), #2a3950 0);
}

body.dark-theme .gauge-arc {
  background:
    radial-gradient(circle at 50% 100%, #101b2d 0 45%, transparent 46%),
    conic-gradient(from 270deg at 50% 100%, #e11d48 0deg 45deg, #fb923c 45deg 90deg, #d8ea5a 90deg 135deg, #10b981 135deg 180deg, transparent 180deg);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.34));
}

body.dark-theme .gauge-center i {
  color: #c084fc;
  background: rgba(139, 92, 246, 0.2);
}

body.dark-theme .gauge-mark,
body.dark-theme .gauge-center span,
body.dark-theme .gauge-metrics span,
body.dark-theme .gauge-metrics small {
  color: #9fb0c9;
}

body.dark-theme .gauge-mark {
  background: rgba(12, 22, 39, 0.78);
}

body.dark-theme .gauge-center strong,
body.dark-theme .gauge-metrics strong {
  color: #f8fafc;
}

body.dark-theme .gauge-metrics div {
  background: rgba(12, 22, 39, 0.82);
  border-color: rgba(148, 163, 184, 0.16);
}

body.dark-theme .gauge-metrics div > i {
  color: #c084fc;
  background: rgba(139, 92, 246, 0.2);
}

body.dark-theme .gauge-metrics div.blue > i {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.18);
}

body.dark-theme .gauge-metrics div.green > i {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.16);
}

body.dark-theme .agent-rank-row {
  border-top-color: rgba(148, 163, 184, 0.16);
}

body.dark-theme .agent-rank-row.leader,
body.dark-theme .agent-rank-row.focused {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(167, 139, 250, 0.42);
}

body.dark-theme .rank-medal {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.16);
}

body.dark-theme .agent-person i {
  color: #f8fafc;
  background: #263854;
}

body.dark-theme .time-side-card {
  background:
    radial-gradient(circle at 30% 10%, rgba(79, 124, 255, 0.18), transparent 38%),
    rgba(9, 17, 31, 0.74);
}

body.dark-theme .time-side-card.rent {
  background:
    radial-gradient(circle at 30% 10%, rgba(139, 92, 246, 0.2), transparent 38%),
    rgba(9, 17, 31, 0.74);
}

body.dark-theme .time-side-card > span:not(.time-side-icon),
body.dark-theme .time-insight-copy b,
body.dark-theme .time-insight-metric strong,
body.dark-theme .time-curve-label {
  color: #f8fafc;
}

body.dark-theme .time-insight-copy p,
body.dark-theme .time-insight-metric small,
body.dark-theme .time-curve-panel text {
  color: #9fb0c9;
  fill: #9fb0c9;
}

body.dark-theme .time-difference {
  background: #101b2d;
  border-color: rgba(148, 163, 184, 0.16);
}

body.dark-theme .time-curve-dot {
  fill: #101b2d;
}

.trend-grid {
  fill: none;
  stroke: rgba(107, 114, 128, 0.2);
}

.trend-area {
  fill: rgba(124, 58, 237, 0.16);
}

.trend-line {
  fill: none;
  stroke: #7c3aed;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.conversion-trend circle {
  fill: #fff;
  stroke: #7c3aed;
  stroke-width: 3;
}

.occupancy-gauge-card {
  display: grid;
  gap: 9px;
  min-height: 258px;
  padding: 0;
}

.occupancy-goal-visual {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.occupancy-goal-visual h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.05rem;
}

.occupancy-goal-visual p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.5;
}

.compact-ring.airbnb {
  width: 150px;
  height: 150px;
  --ring-color: #ff385c;
}

body.dark-theme .occupancy-goal-visual h4 {
  color: #f8fafc;
}

.gauge-wrap {
  position: relative;
  min-height: 190px;
  display: grid;
  place-items: end center;
  padding-top: 0;
  padding-bottom: 16px;
  cursor: pointer;
  --gauge-radius: 129px;
  --gauge-center-bottom: 16px;
}

.gauge-arc {
  width: min(258px, 94%);
  aspect-ratio: 2 / 1;
  border-radius: 390px 390px 0 0;
  background:
    radial-gradient(circle at 50% 100%, var(--white) 0 45%, transparent 46%),
    conic-gradient(from 270deg at 50% 100%, #e11d48 0deg 45deg, #fb923c 45deg 90deg, #d8ea5a 90deg 135deg, #10b981 135deg 180deg, transparent 180deg);
  filter: drop-shadow(0 18px 28px rgba(7, 20, 42, 0.14));
  box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.18);
}

.gauge-needle {
  position: absolute;
  left: 50%;
  bottom: var(--gauge-center-bottom);
  width: 82px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0));
  box-shadow: 0 0 0 1px rgba(7, 20, 42, 0.08), 0 10px 22px rgba(7, 20, 42, 0.18);
  transform-origin: 0 50%;
  transform: rotate(var(--needle));
  z-index: 4;
}

.gauge-wrap.zero-value .gauge-needle {
  left: 50%;
  bottom: var(--gauge-center-bottom);
  width: 82px;
  transform: rotate(var(--needle));
  z-index: 3;
}

.gauge-wrap.zero-value .gauge-needle::before {
  content: none;
}

.gauge-needle::before {
  content: none;
}

.gauge-center {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
}

.gauge-center i {
  width: 21px;
  height: 21px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 3px;
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 50%;
}

.gauge-center i svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gauge-center strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 1.72rem;
  line-height: 1;
}

.gauge-center span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.gauge-mark {
  position: absolute;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1;
  z-index: 7;
  padding: 1px 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.gauge-mark.m0 {
  left: calc(50% - var(--gauge-radius) - 16px);
  bottom: calc(var(--gauge-center-bottom) - 4px);
  transform: translateX(-100%);
  font-size: 0.62rem;
}

.gauge-mark.m25 {
  left: calc(50% - 91px);
  bottom: calc(var(--gauge-center-bottom) + 91px);
  transform: translateX(-50%);
}

.gauge-mark.m50 {
  left: 50%;
  bottom: calc(var(--gauge-center-bottom) + var(--gauge-radius) + 8px);
  transform: translateX(-50%);
}

.gauge-mark.m75 {
  left: calc(50% + 91px);
  bottom: calc(var(--gauge-center-bottom) + 91px);
  transform: translateX(-50%);
}

.gauge-mark.m100 {
  right: calc(50% - var(--gauge-radius) - 16px);
  bottom: calc(var(--gauge-center-bottom) - 4px);
  transform: translateX(100%);
}

.gauge-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.gauge-metrics.focus-one {
  grid-template-columns: 1fr;
}

.gauge-metrics div {
  min-height: 66px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 1px 7px;
  align-items: start;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  background: rgba(255, 255, 255, 0.68);
}

.gauge-metrics div:last-child {
  border-right: 1px solid var(--line);
}

.gauge-metrics div > i {
  grid-row: 1 / span 3;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.14);
  border-radius: 50%;
}

.gauge-metrics div.blue > i {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.13);
}

.gauge-metrics div.green > i {
  color: #16a34a;
  background: rgba(34, 197, 94, 0.13);
}

.gauge-metrics div > i svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gauge-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.25;
}

.gauge-metrics strong {
  display: block;
  margin-top: 0;
  color: var(--ink);
  color: #8b5cf6;
  font-size: 1rem;
  line-height: 1.1;
}

.gauge-metrics .blue strong {
  color: #2563eb;
}

.gauge-metrics .green strong {
  color: #16a34a;
}

.gauge-metrics small {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.6rem;
}

.bar-kpi-chart {
  display: grid;
  gap: 20px;
  min-height: 156px;
  align-content: center;
}

.bar-kpi-row {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.bar-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bar-kpi-top span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.bar-kpi-top strong {
  color: var(--navy);
  font-size: 1rem;
}

.bar-kpi-track {
  height: 12px;
  overflow: hidden;
  background: #e6ebf3;
  border-radius: 999px;
}

.bar-kpi-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--navy);
}

.bar-kpi-fill.gold {
  background: var(--gold);
}

.bar-kpi-fill.navy {
  background: var(--navy);
}

.bar-kpi-fill.danger {
  background: var(--red);
}

.bar-kpi-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-120%);
  animation: scanLine 4s ease-in-out infinite;
}

@keyframes scanLine {
  0%, 55% { transform: translateX(-120%); opacity: 0; }
  70% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

.powerbi-card {
  position: relative;
  min-height: 196px;
  overflow: hidden;
}

.powerbi-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 8%, rgba(7, 20, 42, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(7, 20, 42, 0.04), transparent 44%);
}

.closed-goal-chart {
  display: grid;
  gap: 12px;
}

.goal-score {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.goal-score-ring {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--white) 0 58%, transparent 59%),
    conic-gradient(var(--gold) calc(var(--value) * 1%), rgba(7, 20, 42, 0.12) 0);
  box-shadow: 0 18px 34px rgba(7, 20, 42, 0.12);
}

.goal-score-ring strong {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}

.goal-score-ring span {
  margin-top: -22px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.goal-score > div:last-child span,
.goal-tile span,
.goal-tile em,
.time-reading span,
.time-chip {
  color: var(--muted);
  font-weight: 850;
}

.goal-score > div:last-child strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
}

.goal-score > div:last-child small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.goal-matrix {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.goal-matrix.focus-one {
  grid-template-columns: 1fr;
}

.goal-tile {
  padding: 11px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.goal-tile:hover,
.time-reading:hover,
.gauge-metrics div:hover,
.bar-kpi-row:hover,
.kpi-meter:hover {
  border-color: rgba(7, 20, 42, 0.28);
  transform: translateY(-1px);
}

.goal-tile.focused,
.time-reading.focused,
.gauge-metrics div.focused,
.bar-kpi-row.focused,
.kpi-meter.focused {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(7, 20, 42, 0.08);
}

.goal-tile strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.25rem;
}

.goal-tile strong small {
  color: var(--muted);
  font-size: 0.72rem;
}

.goal-tile-track {
  height: 7px;
  margin: 8px 0 6px;
  overflow: hidden;
  background: rgba(7, 20, 42, 0.1);
  border-radius: 999px;
}

.goal-tile-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--navy), #2563eb);
  border-radius: inherit;
}

.goal-tile.gold .goal-tile-track i {
  background: linear-gradient(90deg, var(--gold), #7dd3fc);
}

.goal-tile em {
  font-size: 0.7rem;
  font-style: normal;
}

.average-time-chart {
  display: grid;
  gap: 12px;
}

.time-visual {
  position: relative;
  z-index: 1;
  min-height: 166px;
  padding: 10px 12px 8px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.time-visual svg {
  width: 100%;
  height: 130px;
  display: block;
}

.time-grid-line {
  fill: none;
  stroke: rgba(107, 114, 128, 0.22);
  stroke-width: 1;
}

.time-bad-line {
  fill: none;
  stroke: rgba(179, 38, 30, 0.48);
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
}

.time-area {
  fill: rgba(7, 20, 42, 0.12);
}

.time-line {
  fill: none;
  stroke: url(#timeGradient);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 10px 14px rgba(7, 20, 42, 0.16));
}

.time-dot {
  fill: var(--white);
  stroke-width: 4;
}

.time-dot.navy {
  stroke: var(--navy);
}

.time-dot.gold {
  stroke: var(--gold);
}

.focused-time .time-area {
  fill: rgba(7, 20, 42, 0.16);
}

.focused-time .time-line {
  stroke-width: 4.6;
}

.time-visual text {
  fill: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-anchor: middle;
}

.time-reading {
  position: absolute;
  top: 18px;
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(7, 20, 42, 0.08);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.time-reading.sale {
  left: 14px;
}

.time-reading.rent {
  right: 14px;
}

.time-reading strong {
  color: var(--ink);
  font-size: 0.98rem;
  white-space: nowrap;
}

.time-chip {
  position: relative;
  z-index: 1;
  padding: 9px 11px;
  background: rgba(235, 240, 247, 0.68);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  text-align: center;
}

.goal-chart {
  display: grid;
  gap: 15px;
  min-height: 156px;
  align-content: center;
}

.goal-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.goal-chart-head strong {
  color: var(--navy);
}

.goal-chart-head span {
  padding: 5px 9px;
  color: #11745a;
  background: #def5ec;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.goal-chart.danger .goal-chart-head span {
  color: #9f1d1d;
  background: #fee2e2;
}

.goal-chart p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.kpi-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mini-kpi,
.kpi-line {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-kpi span,
.kpi-line span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.mini-kpi strong,
.kpi-line strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 1rem;
}

.kpi-list {
  display: grid;
  gap: 9px;
}

.kpi-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.kpi-line strong {
  margin-top: 0;
  text-align: right;
}

.rank-badge {
  width: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  color: var(--navy);
  background: rgba(201, 154, 46, 0.2);
  border-radius: 999px;
  font-weight: 900;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 190px;
}

.donut {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--navy) 0 75%, var(--gold) 75% 100%);
}

.donut-center {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  background: var(--white);
  border-radius: 50%;
  color: var(--ink);
  text-align: center;
  box-shadow: inset 0 0 0 1px var(--line);
}

.donut-center strong {
  display: block;
  font-size: 1.35rem;
}

.donut-center span {
  color: var(--muted);
  font-size: 0.82rem;
}

.legend {
  display: grid;
  gap: 10px;
}

.legend-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
  font-size: 0.93rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--navy);
}

.legend-dot.gold {
  background: var(--gold);
}

.legend-dot.gray {
  background: #d9dde5;
}

.legend-dot.light {
  background: #eef0f4;
}

.activity-list,
.task-list,
.lead-list,
.property-list {
  display: grid;
  gap: 8px;
}

.activity-row {
  padding: 9px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  box-shadow: none;
}

.activity-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #eef4ff;
  border-radius: 50%;
  font-weight: 900;
}

.activity-row h4,
.lead-row h4,
.task-row h4,
.property-card h4 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 0.94rem;
}

.activity-row p,
.lead-row p,
.task-row p,
.property-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.activity-row time {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.table-panel {
  overflow-x: auto;
}

.module-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--white);
}

.module-table th,
.module-table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.module-table th {
  color: #4b5563;
  background: #f8fafc;
  font-size: 0.82rem;
}

.filter-row th {
  padding: 7px 8px;
  background: #ffffff;
}

.filter-row select {
  width: 100%;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.table-search-filter {
  width: 100%;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.filter-row select:focus,
.table-search-filter:focus {
  outline: none;
  border-color: #cfd6e2;
  box-shadow: 0 0 0 3px rgba(7, 20, 42, 0.06);
}

.filtered-out {
  display: none;
}

.module-table tr:last-child td {
  border-bottom: 0;
}

.thumb {
  width: 54px;
  height: 38px;
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(7, 20, 42, 0.12), rgba(201, 154, 46, 0.18)),
    linear-gradient(150deg, #dce5f3 0 34%, #c3d3e9 34% 46%, #eef3fa 46% 100%);
  border: 1px solid #d7deea;
  background-size: cover;
  background-position: center;
}

.image-upload-field {
  display: grid;
  gap: 10px;
}

.image-upload-preview {
  width: 96px;
  height: 68px;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(7, 20, 42, 0.12), rgba(201, 154, 46, 0.18)),
    linear-gradient(150deg, #dce5f3 0 34%, #c3d3e9 34% 46%, #eef3fa 46% 100%);
  background-size: cover;
  background-position: center;
}

.image-upload-field input[type="file"] {
  padding: 9px;
}

.image-upload-field select {
  min-height: 38px;
}

.status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.status.available {
  color: #11745a;
  background: #def5ec;
}

.status.process {
  color: #95670e;
  background: #fff3d8;
}

.status.pending {
  color: #95670e;
  background: #fff3d8;
}

.status.rented {
  color: #2757ad;
  background: #e8f0ff;
}

.status.closed {
  color: #9f1d1d;
  background: #fee2e2;
}

.empty-note {
  margin: 0;
  padding: 18px 4px 4px;
  color: #667085;
  font-size: 0.92rem;
}

.actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #667085;
  letter-spacing: 0;
  white-space: nowrap;
}

.table-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  padding: 0 10px;
  color: var(--navy);
  background: #f7f8fb;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
}

.stat-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.occupancy-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.occupancy-item {
  min-height: 92px;
  padding: 16px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.occupancy-item strong,
.occupancy-item span,
.occupancy-item small {
  display: block;
}

.occupancy-item strong {
  color: var(--navy);
  font-size: 1rem;
}

.occupancy-item span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.occupancy-item small {
  margin-top: 10px;
  color: var(--gold-dark);
  font-weight: 800;
}

.airbnb-calendar h4 {
  margin: 0 0 14px;
  color: var(--navy);
  text-transform: capitalize;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(52px, 1fr));
  gap: 8px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  min-height: 68px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 800;
  cursor: default;
}

.calendar-day strong,
.calendar-day span {
  display: block;
}

.calendar-day span {
  margin-top: 8px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

.booking-delete {
  display: inline-grid;
  width: 26px;
  min-height: 26px;
  place-items: center;
  margin-top: 7px;
  color: #8f1f1b;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(143, 31, 27, 0.16);
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(127, 29, 29, 0.08);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.booking-delete svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-delete:hover {
  color: #7a1714;
  background: #fff;
  border-color: rgba(143, 31, 27, 0.32);
  box-shadow: 0 8px 18px rgba(127, 29, 29, 0.14);
  transform: translateY(-1px);
}

.calendar-day.available {
  color: #0f513f;
  background: #e7f7ef;
}

.calendar-day.rented {
  color: #8a1f1b;
  background: #fde8e6;
}

.calendar-day:not(.blank):hover {
  border-color: rgba(49, 95, 156, 0.28);
  transform: translateY(-3px) scale(1.015);
}

.calendar-day.available:hover {
  background: linear-gradient(180deg, #effcf5, #dff7eb);
  box-shadow:
    0 14px 26px rgba(32, 162, 107, 0.14),
    0 0 0 1px rgba(32, 162, 107, 0.12);
}

.calendar-day.rented:hover {
  background: linear-gradient(180deg, #fff0ee, #fbd9d5);
  box-shadow:
    0 14px 26px rgba(211, 59, 50, 0.14),
    0 0 0 1px rgba(211, 59, 50, 0.12);
}

.calendar-day.blank {
  background: transparent;
  border: 0;
}

body.dark-theme .occupancy-item {
  color: #f8fafc;
  background:
    linear-gradient(180deg, rgba(16, 27, 45, 0.96), rgba(9, 17, 31, 0.96));
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

body.dark-theme .occupancy-item strong,
body.dark-theme .airbnb-calendar h4 {
  color: #f8fafc;
}

body.dark-theme .occupancy-item span {
  color: #aab5c6;
}

body.dark-theme .occupancy-item small {
  color: #5eead4;
}

body.dark-theme .calendar-weekdays span,
body.dark-theme .calendar-legend {
  color: #aab5c6;
}

body.dark-theme .calendar-day.available {
  color: #dcfce7;
  background: linear-gradient(180deg, rgba(20, 83, 45, 0.82), rgba(6, 78, 59, 0.68));
  border-color: rgba(74, 222, 128, 0.18);
}

body.dark-theme .calendar-day.rented {
  color: #fee2e2;
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.84), rgba(76, 29, 29, 0.72));
  border-color: rgba(248, 113, 113, 0.22);
}

body.dark-theme .calendar-day.available:hover {
  background: linear-gradient(180deg, rgba(22, 101, 52, 0.95), rgba(6, 95, 70, 0.82));
  box-shadow:
    0 15px 30px rgba(34, 197, 94, 0.14),
    0 0 22px rgba(74, 222, 128, 0.1);
}

body.dark-theme .calendar-day.rented:hover {
  background: linear-gradient(180deg, rgba(153, 27, 27, 0.95), rgba(127, 29, 29, 0.82));
  box-shadow:
    0 15px 30px rgba(248, 113, 113, 0.14),
    0 0 22px rgba(248, 113, 113, 0.1);
}

body.dark-theme .booking-delete {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.5);
  border-color: rgba(248, 113, 113, 0.24);
}

body.dark-theme .booking-delete:hover {
  color: #fff;
  background: rgba(185, 28, 28, 0.74);
}

.calendar-legend {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.calendar-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 999px;
}

.available-dot {
  background: #20a26b;
}

.rented-dot {
  background: #d33b32;
}

.danger-action {
  color: var(--red);
  background: rgba(179, 38, 30, 0.08);
  border-color: rgba(179, 38, 30, 0.18);
}

.select-cell,
.filter-row th:first-child,
.module-table th:first-child:has(+ th) {
  width: 44px;
}

.select-cell input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--gold);
}

[data-table-key]:not(.selection-mode) .select-cell,
[data-table-key]:not(.selection-mode) th:first-child,
[data-table-key]:not(.selection-mode) .filter-row th:first-child {
  display: none;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.floating-chart button,
.floating-chart [role="button"],
.floating-chart .profit-kpi,
.floating-chart .profit-legend button,
.floating-chart .funnel-step,
.floating-chart .closed-progress-card,
.floating-chart .time-side-card,
.floating-chart .expenses-row,
.floating-chart .ranking-best-card,
.floating-chart .ranking-metric-card,
.floating-chart .ranking-conversion-card,
.floating-chart .agent-rank-row,
.floating-chart .kpi-meter,
.floating-chart .gauge-wrap,
.floating-chart .gauge-metrics div {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    filter 0.2s ease;
}

.floating-chart button:hover:not(:disabled),
.floating-chart [role="button"]:hover,
.floating-chart .profit-kpi:hover,
.floating-chart .profit-legend button:hover,
.floating-chart .funnel-step:hover,
.floating-chart .closed-progress-card:hover,
.floating-chart .time-side-card:hover,
.floating-chart .expenses-row:hover,
.floating-chart .ranking-best-card:hover,
.floating-chart .ranking-metric-card:hover,
.floating-chart .ranking-conversion-card:hover,
.floating-chart .agent-rank-row:hover,
.floating-chart .kpi-meter:hover,
.floating-chart .gauge-wrap:hover,
.floating-chart .gauge-metrics div:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 124, 255, 0.42);
  box-shadow:
    0 18px 38px rgba(49, 95, 156, 0.16),
    0 0 0 1px rgba(79, 124, 255, 0.12);
  filter: saturate(1.05);
}

.floating-chart .secondary-action:hover,
.floating-chart .subtle-link:hover {
  color: #0f172a;
  background: rgba(79, 124, 255, 0.08);
}

.floating-chart .closed-progress-card:hover,
.floating-chart .ranking-best-card:hover,
.floating-chart .ranking-metric-card:hover,
.floating-chart .ranking-conversion-card:hover,
.floating-chart .profit-kpi:hover,
.floating-chart .expenses-row:hover {
  background:
    radial-gradient(circle at 20% 10%, rgba(79, 124, 255, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.92);
}

.floating-chart .funnel-step:hover,
.floating-chart .agent-rank-row:hover {
  box-shadow:
    0 16px 34px rgba(139, 92, 246, 0.16),
    inset 0 0 0 1px rgba(139, 92, 246, 0.2);
}

body.dark-theme .floating-chart button:hover:not(:disabled),
body.dark-theme .floating-chart [role="button"]:hover,
body.dark-theme .floating-chart .profit-kpi:hover,
body.dark-theme .floating-chart .profit-legend button:hover,
body.dark-theme .floating-chart .funnel-step:hover,
body.dark-theme .floating-chart .closed-progress-card:hover,
body.dark-theme .floating-chart .time-side-card:hover,
body.dark-theme .floating-chart .expenses-row:hover,
body.dark-theme .floating-chart .ranking-best-card:hover,
body.dark-theme .floating-chart .ranking-metric-card:hover,
body.dark-theme .floating-chart .ranking-conversion-card:hover,
body.dark-theme .floating-chart .agent-rank-row:hover,
body.dark-theme .floating-chart .kpi-meter:hover,
body.dark-theme .floating-chart .gauge-wrap:hover,
body.dark-theme .floating-chart .gauge-metrics div:hover {
  border-color: rgba(96, 165, 250, 0.46);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(96, 165, 250, 0.2),
    0 0 28px rgba(96, 165, 250, 0.14);
  filter: saturate(1.12) brightness(1.06);
}

body.dark-theme .floating-chart .secondary-action:hover,
body.dark-theme .floating-chart .subtle-link:hover {
  color: #f8fafc;
  background: rgba(96, 165, 250, 0.12);
}

body.dark-theme .floating-chart .closed-progress-card:hover,
body.dark-theme .floating-chart .ranking-best-card:hover,
body.dark-theme .floating-chart .ranking-metric-card:hover,
body.dark-theme .floating-chart .ranking-conversion-card:hover,
body.dark-theme .floating-chart .profit-kpi:hover,
body.dark-theme .floating-chart .expenses-row:hover,
body.dark-theme .floating-chart .time-side-card:hover {
  background:
    radial-gradient(circle at 20% 10%, rgba(96, 165, 250, 0.18), transparent 34%),
    rgba(12, 22, 39, 0.88);
}

body.dark-theme .floating-chart .funnel-step:hover,
body.dark-theme .floating-chart .agent-rank-row:hover {
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(167, 139, 250, 0.24),
    0 0 26px rgba(167, 139, 250, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .floating-chart,
  .floating-chart *,
  .floating-chart button,
  .floating-chart [role="button"] {
    animation: none !important;
    transition: none !important;
  }

  .floating-chart button:hover:not(:disabled),
  .floating-chart [role="button"]:hover {
    transform: none;
  }
}

input[readonly] {
  background: #f3f5f8;
  color: var(--muted);
}

.phone-field {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
}

.phone-prefix,
.phone-number {
  width: 100%;
}

.phone-prefix {
  text-align: center;
  font-weight: 900;
}

.chart-control {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.chart-control input {
  accent-color: var(--gold);
}

#chartInfo {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 0.86rem;
}

#chartInfo strong {
  color: var(--navy);
}

.task-row {
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 30px;
  gap: 10px;
  align-items: center;
  box-shadow: none;
}

.task-row input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--gold);
}

.task-check-cell {
  width: 42px;
}

.task-table-check {
  width: 18px;
  min-height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}

.task-complete-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  margin: 0 0 0 6px;
  padding: 0 9px;
  color: var(--navy);
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.task-complete-action:hover {
  border-color: rgba(201, 154, 46, 0.45);
  background: #f7f8fb;
}

body.dark-theme .task-complete-action {
  color: #f8fafc;
  background: linear-gradient(180deg, #1b2b45, #132139);
  border-color: rgba(148, 163, 184, 0.32);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

body.dark-theme .task-complete-action:hover {
  color: #ffffff;
  background: linear-gradient(180deg, #223757, #172941);
  border-color: rgba(201, 154, 46, 0.48);
}

.notification-clear {
  width: 100%;
  margin-top: 10px;
}

.task-complete-action input {
  width: 15px;
  min-height: 15px;
}

.priority-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.priority-badge.critical {
  color: #9f1d16;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.22);
}

body.dark-theme .priority-badge.critical {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.44), rgba(127, 29, 29, 0.5));
  border: 1px solid rgba(248, 113, 113, 0.58);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.2);
}

.priority-badge.pending {
  color: #1554b0;
  background: #dbeafe;
}

.priority-badge.stable {
  color: #11745a;
  background: #def5ec;
}

.task-count {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #72510b;
  background: #fff4d8;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 850;
}

.help-card {
  min-height: 118px;
  padding: 18px;
  display: grid;
  align-content: center;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(120, 79, 11, 0.16), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, #0f766e, #14b8a6);
  border: 0;
}

.help-card h3 {
  color: var(--white);
}

.help-card p {
  color: rgba(255, 255, 255, 0.9);
}

.help-card .ghost-action {
  width: max-content;
  padding: 0 16px;
  color: var(--white);
  background: var(--navy);
}

.property-card {
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  box-shadow: none;
}

.price {
  color: var(--navy);
  font-weight: 900;
  white-space: nowrap;
}

.lead-row {
  padding: 14px;
  box-shadow: none;
}

.role-warning {
  padding: 18px;
  color: var(--red);
  background: rgba(179, 38, 30, 0.08);
  border: 1px solid rgba(179, 38, 30, 0.16);
  border-radius: 12px;
}

.profile-panel {
  display: grid;
  gap: 24px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.profile-avatar {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: linear-gradient(135deg, #7dd3fc, var(--gold));
  font-size: 1.6rem;
  font-weight: 900;
  overflow: hidden;
}

.profile-photo-form {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.profile-photo-form label {
  flex: 1;
}

.profile-hero h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.65rem;
}

.profile-hero p {
  margin-bottom: 12px;
  color: var(--muted);
}

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

.profile-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcff;
}

.profile-item span,
.profile-item strong {
  display: block;
}

.profile-item span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.profile-item strong {
  color: var(--navy);
  font-size: 1rem;
}

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

.form-grid label {
  margin-bottom: 0;
}

.form-grid input,
.form-grid select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  background: var(--white);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.secondary-action {
  min-height: 40px;
  padding: 0 16px;
  color: var(--navy);
  background: #f7f8fb;
  border: 1px solid var(--line);
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 48px));
  padding: 14px 18px;
  color: var(--white);
  background: var(--navy);
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1280px) {
  .stats-grid,
  .dashboard-stats {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .dashboard-grid.four {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

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

  .conversion-modal-grid,
  .profitability-full {
    grid-template-columns: 1fr;
  }

  .profitability-metrics,
  .profitability-evolution,
  .profitability-insight {
    grid-column: auto;
  }
}

@media (max-height: 760px) and (min-width: 981px) {
  .brand-panel {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .brand-mark {
    width: min(500px, 78%);
    height: 190px;
    margin-top: 6px;
  }

  .brand-badge {
    min-height: 30px;
    margin-top: 4px;
  }

  .welcome-copy {
    margin-top: 18px;
    margin-bottom: 18px;
  }

  .welcome-copy h1 {
    font-size: clamp(2rem, 3vw, 2.9rem);
  }

  .welcome-copy strong {
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  }

  .welcome-copy p {
    font-size: 0.98rem;
  }

  .metric-icon {
    width: 60px;
    height: 60px;
  }

  .brand-trust-row {
    padding-top: 18px;
  }

  .login-card {
    padding: 24px 38px 20px;
  }

  .login-logo-wrap {
    width: 104px;
    height: 104px;
    margin-bottom: 10px;
  }

  .login-subtitle {
    margin-bottom: 18px;
  }

  .login-card .input-shell {
    min-height: 50px;
  }

  .login-card .primary-action {
    min-height: 50px;
  }

  .login-card .google-action {
    min-height: 48px;
  }

  .login-card .login-divider {
    margin: 14px 0 12px;
  }

  .login-card .login-note {
    margin-top: 12px;
  }
}

@media (max-width: 980px) {
  .login-screen,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .login-screen {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .brand-panel {
    min-height: auto;
    padding: 24px;
    clip-path: none;
  }

  .brand-content {
    min-height: auto;
    gap: 16px;
  }

  .brand-mark {
    width: 280px;
    height: 132px;
  }

  .welcome-copy {
    margin: 0;
  }

  .login-metrics {
    margin-bottom: 0;
  }

  .brand-trust-row {
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    white-space: normal;
  }

  .brand-panel::before {
    inset: auto 0 0;
    width: auto;
    height: 7px;
    transform: none;
  }

  .sidebar {
    min-height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .search-box {
    width: 100%;
  }

  .conversion-funnel-pair,
  .profitability-metrics,
  .profitability-distribution {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .login-card {
    padding: 24px 22px;
  }

  .login-metrics,
  .stats-grid,
  .donut-wrap,
  .form-grid,
  .profile-grid,
  .profile-hero {
    grid-template-columns: 1fr;
  }

  .brand-mark {
    min-width: 150px;
  }

  .welcome-copy p {
    font-size: 1rem;
  }

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

  .content-grid,
  .topbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar-actions,
  .property-card {
    align-items: stretch;
    flex-direction: column;
  }

  .compact {
    width: 100%;
    justify-content: center;
  }
}

.fixed-rent-page {
  display: grid;
  gap: 18px;
}

.fixed-rent-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.fixed-rent-header h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.72rem;
  line-height: 1.1;
}

.fixed-rent-header p {
  margin: 0;
  color: var(--muted);
}

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

.fixed-rent-actions .secondary-action svg,
.fixed-rent-month svg,
.fixed-rent-search svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.fixed-rent-month {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
}

.fixed-rent-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 14px;
}

.fixed-rent-kpi {
  position: relative;
  min-height: 146px;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 14px;
  padding: 18px 18px 54px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9)),
    var(--white);
  box-shadow: 0 16px 34px rgba(7, 20, 42, 0.08);
}

button.fixed-rent-kpi {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.fixed-rent-kpi-icon,
.fixed-rent-bottom-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
}

.fixed-rent-kpi-icon svg,
.fixed-rent-bottom-icon svg,
.fixed-rent-arrow svg,
.icon-action svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.fixed-rent-bottom-icon svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 27px;
  height: 27px;
  display: block;
  stroke-width: 2.3;
  transform: translate(-50%, -50%);
}

.fixed-rent-kpi small,
.fixed-rent-kpi em,
.fixed-rent-table small,
.fixed-rent-bottom small,
.fixed-rent-bottom span {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
}

.fixed-rent-kpi strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  line-height: 1;
}

.fixed-rent-kpi em {
  color: #16a070;
  font-weight: 800;
}

.fixed-rent-kpi.tone-purple .fixed-rent-kpi-icon,
.fixed-rent-kpi.tone-purple .fixed-rent-mini-ring {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.fixed-rent-kpi.tone-green .fixed-rent-kpi-icon {
  background: linear-gradient(135deg, #16a34a, #0f766e);
}

.fixed-rent-kpi.tone-blue .fixed-rent-kpi-icon {
  background: linear-gradient(135deg, #2563eb, #0f4b9c);
}

.fixed-rent-kpi.tone-red .fixed-rent-kpi-icon {
  background: linear-gradient(135deg, #e11d48, #7f1d1d);
}

.fixed-rent-kpi.tone-gold .fixed-rent-kpi-icon {
  background: linear-gradient(135deg, #14b8a6, #8a6113);
}

.fixed-rent-spark {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 74px;
  width: auto;
  height: 32px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.fixed-rent-spark path {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fixed-rent-kpi > div,
.fixed-rent-kpi-icon,
.fixed-rent-mini-ring {
  position: relative;
  z-index: 1;
}

.spark-purple path { stroke: #7c3aed; }
.spark-green path { stroke: #16a34a; }
.spark-blue path { stroke: #2563eb; }
.spark-red path { stroke: #e11d48; }
.spark-gold path { stroke: #14b8a6; }

.fixed-rent-kpi.occupancy {
  grid-template-columns: 90px 1fr;
  align-items: center;
}

.fixed-rent-mini-ring {
  --value: 0%;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--white) 50%, transparent 52%),
    conic-gradient(#7c3aed var(--value), rgba(124, 58, 237, 0.14) 0);
}

.fixed-rent-mini-ring strong {
  margin: 0;
  font-size: 1.18rem;
}

.fixed-rent-table-card {
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.fixed-rent-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.fixed-rent-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.fixed-rent-tabs button {
  padding: 0 0 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.fixed-rent-tabs button.active {
  color: #7c3aed;
  border-color: #7c3aed;
}

.fixed-rent-search {
  min-width: 250px;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
}

.fixed-rent-table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1;
}

.fixed-rent-table-actions .secondary-action,
.fixed-rent-table-actions .danger-action {
  margin: 0;
  min-height: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.fixed-rent-search input {
  width: 100%;
  min-height: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
  font-weight: 700;
}

.fixed-rent-table {
  min-width: 1040px;
}

.fixed-rent-table th {
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
}

.fixed-rent-table td {
  vertical-align: middle;
}

.fixed-rent-property {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fixed-rent-property strong,
.fixed-rent-table td > strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
}

.fixed-rent-thumb {
  width: 58px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 20, 42, 0.15), rgba(124, 58, 237, 0.2)),
    linear-gradient(145deg, #cbd5e1 0 28%, #e2e8f0 28% 42%, #94a3b8 42% 56%, #f8fafc 56% 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background-size: cover;
  background-position: center;
}

.icon-action {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
}

.validate-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.fixed-rent-bottom {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr 1.05fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 32px rgba(7, 20, 42, 0.07);
}

.fixed-rent-bottom > div {
  position: relative;
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px 22px;
  border-right: 1px solid var(--line);
}

.fixed-rent-bottom > div:last-child {
  border-right: 0;
}

.fixed-rent-bottom strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.fixed-rent-bottom-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(135deg, #0f766e, #16a34a);
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.18);
}

.fixed-rent-bottom-icon + small,
.fixed-rent-bottom-icon + small + strong {
  margin-left: 62px;
}

.fixed-rent-bottom-icon.alert {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.2), transparent 38%),
    linear-gradient(135deg, #ef4444, #991b1b);
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.18);
}

.fixed-rent-bottom-icon.income {
  color: #ffffff;
}

.fixed-rent-progress {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
}

.fixed-rent-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
}

.fixed-rent-arrow {
  position: absolute;
  right: 18px;
  top: 22px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  cursor: pointer;
}

body.dark-theme .fixed-rent-header h2,
body.dark-theme .fixed-rent-kpi strong,
body.dark-theme .fixed-rent-property strong,
body.dark-theme .fixed-rent-table td > strong,
body.dark-theme .fixed-rent-bottom strong,
body.dark-theme .fixed-rent-mini-ring strong {
  color: #f8fafc;
}

body.dark-theme .fixed-rent-month,
body.dark-theme .fixed-rent-kpi,
body.dark-theme .fixed-rent-table-card,
body.dark-theme .fixed-rent-bottom,
body.dark-theme .fixed-rent-search {
  color: #f8fafc;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.88)),
    #0b1222;
  border-color: rgba(99, 102, 241, 0.22);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

body.dark-theme .fixed-rent-mini-ring {
  background:
    radial-gradient(circle at center, #101b2d 50%, transparent 52%),
    conic-gradient(#8b5cf6 var(--value), rgba(139, 92, 246, 0.14) 0);
}

body.dark-theme .fixed-rent-toolbar,
body.dark-theme .fixed-rent-bottom > div {
  border-color: rgba(148, 163, 184, 0.16);
}

body.dark-theme .fixed-rent-table th {
  background: transparent;
}

body.dark-theme .fixed-rent-search input {
  color: #f8fafc;
}

.marketing-page,
.marketing-detail-page {
  display: grid;
  gap: 16px;
}

.marketing-kpi-page {
  gap: 10px;
}

.marketing-kpi-page .marketing-header h2 {
  font-size: 1.45rem;
}

.marketing-kpi-page .marketing-header p {
  margin-top: 3px;
  font-size: 0.86rem;
}

.marketing-kpi-page .marketing-manual-note {
  padding: 7px 10px;
  font-size: 0.76rem;
}

.marketing-kpi-page .marketing-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.marketing-kpi-page .marketing-kpi {
  min-height: 86px;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 68px 10px 10px;
  border-radius: 12px;
}

.marketing-kpi-page .marketing-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.marketing-kpi-page .marketing-kpi-icon svg {
  width: 18px;
  height: 18px;
}

.marketing-kpi-page .marketing-kpi small,
.marketing-kpi-page .marketing-kpi em {
  font-size: 0.68rem;
}

.marketing-kpi-page .marketing-kpi strong {
  margin: 3px 0;
  font-size: 0.98rem;
}

.marketing-kpi-page .marketing-kpi .compact-spark {
  width: 58px;
  height: 24px;
  right: 8px;
  bottom: 9px;
}

.marketing-kpi-page .marketing-main-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 10px;
}

.marketing-kpi-page .marketing-bottom-grid {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 0.86fr) minmax(0, 1.04fr);
  gap: 10px;
}

.marketing-kpi-page .marketing-chart-card {
  padding: 10px;
  border-radius: 12px;
}

.marketing-kpi-page .marketing-chart-card .panel-header {
  margin-bottom: 6px;
}

.marketing-kpi-page .marketing-chart-card .panel-header h3 {
  font-size: 0.96rem;
}

.marketing-kpi-page .marketing-chart-card .panel-header p {
  font-size: 0.72rem;
}

.marketing-kpi-page .marketing-leads-card,
.marketing-kpi-page .marketing-performance-card {
  min-height: 430px;
}

.marketing-kpi-page .marketing-line-chart svg {
  min-height: 370px;
  height: 370px;
}

.marketing-kpi-page .marketing-chart-legend {
  font-size: 0.72rem;
  gap: 14px;
}

.marketing-kpi-page .marketing-donut-wrap {
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
  min-height: 142px;
}

.marketing-kpi-page .marketing-donut {
  width: 108px;
  height: 108px;
}

.marketing-kpi-page .marketing-donut-center {
  left: 54px;
}

.marketing-kpi-page .marketing-donut-center strong {
  font-size: 1rem;
}

.marketing-kpi-page .marketing-donut-legend {
  gap: 6px;
}

.marketing-kpi-page .marketing-donut-legend span,
.marketing-kpi-page .marketing-activity-row span,
.marketing-kpi-page .marketing-activity-row em {
  font-size: 0.68rem;
}

.marketing-kpi-page .marketing-funnel.visual {
  min-height: 220px;
  gap: 14px;
}

.marketing-kpi-page .marketing-funnel-shape {
  width: 160px;
  height: 184px;
}

.marketing-kpi-page .marketing-funnel-shape i {
  height: 34px;
}

.marketing-kpi-page .marketing-funnel-shape i.level-0 { top: 0; width: 160px; }
.marketing-kpi-page .marketing-funnel-shape i.level-1 { top: 36px; width: 132px; }
.marketing-kpi-page .marketing-funnel-shape i.level-2 { top: 72px; width: 104px; }
.marketing-kpi-page .marketing-funnel-shape i.level-3 { top: 108px; width: 76px; }
.marketing-kpi-page .marketing-funnel-shape i.level-4 { top: 144px; width: 46px; height: 40px; }

.marketing-kpi-page .marketing-funnel-metrics {
  gap: 7px;
}

.marketing-kpi-page .marketing-funnel-metrics div {
  gap: 8px;
  padding-bottom: 6px;
}

.marketing-kpi-page .marketing-funnel-metrics span,
.marketing-kpi-page .marketing-funnel-metrics strong,
.marketing-kpi-page .marketing-funnel-metrics em {
  font-size: 0.68rem;
}

.marketing-kpi-page .marketing-performance-card .marketing-table th,
.marketing-kpi-page .marketing-performance-card .marketing-table td {
  padding: 6px 6px;
  font-size: 0.68rem;
}

.marketing-kpi-page .marketing-performance-card .marketing-table td small {
  font-size: 0.62rem;
}

.marketing-kpi-page .marketing-performance-card .table-action {
  min-height: 24px;
  padding: 0 7px;
  font-size: 0.64rem;
}

.marketing-kpi-page .marketing-activity-row {
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  padding: 5px 0;
}

.marketing-kpi-page .marketing-activity-row strong {
  font-size: 0.76rem;
}

.marketing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.marketing-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.8rem;
}

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

.marketing-manual-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  color: #5b6472;
  background: rgba(47, 102, 208, 0.08);
  border: 1px solid rgba(47, 102, 208, 0.16);
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 700;
}

.marketing-manual-note svg {
  width: 18px;
  height: 18px;
  stroke: #2f66d0;
}

.marketing-kpis,
.marketing-detail-kpis,
.marketing-result-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.marketing-kpi {
  position: relative;
  min-height: 112px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px 104px 16px 16px;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff, #f7f9fd);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
}

.marketing-kpi::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -42px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 65%);
}

.marketing-kpi-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(145deg, #5b21b6, #8b5cf6);
  box-shadow: 0 14px 28px rgba(91, 33, 182, 0.22);
}

.marketing-kpi-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.marketing-kpi small,
.marketing-kpi em {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
}

.marketing-kpi strong {
  display: block;
  margin: 5px 0;
  color: var(--navy);
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  line-height: 1;
}

.marketing-kpi .compact-spark {
  position: absolute;
  right: 12px;
  bottom: 16px;
  width: 82px;
  height: 34px;
  opacity: 0.72;
  z-index: 0;
}

.marketing-kpi > div,
.marketing-kpi-icon {
  position: relative;
  z-index: 1;
}

.marketing-kpi em.positive {
  color: #159467;
}

.marketing-kpi em.negative {
  color: #e14848;
}

.marketing-kpi.tone-green .marketing-kpi-icon { background: linear-gradient(145deg, #047857, #22c55e); }
.marketing-kpi.tone-blue .marketing-kpi-icon { background: linear-gradient(145deg, #1d4ed8, #38bdf8); }
.marketing-kpi.tone-cyan .marketing-kpi-icon { background: linear-gradient(145deg, #0e7490, #22d3ee); }
.marketing-kpi.tone-gold .marketing-kpi-icon { background: linear-gradient(145deg, #0e7490, #38bdf8); }

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

.marketing-main-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
}

.marketing-bottom-grid {
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 0.95fr) minmax(320px, 1.1fr);
}

.marketing-chart-card,
.marketing-table-card,
.marketing-detail-hero,
.marketing-notes-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}

.marketing-chart-card {
  padding: 18px;
}

.marketing-chart-card .panel-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.marketing-leads-card,
.marketing-performance-card {
  min-height: 350px;
}

.marketing-line-chart {
  display: grid;
  gap: 8px;
}

.marketing-chart-legend {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.marketing-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.marketing-chart-legend i {
  width: 28px;
  height: 3px;
  background: #8b5cf6;
  border-radius: 999px;
}

.marketing-chart-legend i.muted {
  background: repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.7), rgba(148, 163, 184, 0.7) 5px, transparent 5px, transparent 9px);
}

.marketing-line-chart svg {
  width: 100%;
  min-height: 420px;
}

.marketing-line-chart .grid {
  stroke: rgba(148, 163, 184, 0.18);
  stroke-width: 1;
}

.marketing-line-chart .area {
  fill: rgba(139, 92, 246, 0.16);
}

.marketing-line-chart .line {
  fill: none;
  stroke: #8b5cf6;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.45));
}

.marketing-line-chart .previous {
  fill: none;
  stroke: rgba(148, 163, 184, 0.65);
  stroke-width: 3;
  stroke-dasharray: 5 8;
}

.marketing-line-chart circle {
  fill: #c4b5fd;
  stroke: #fff;
  stroke-width: 2;
}

.marketing-line-chart text {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.marketing-channel-list {
  display: grid;
  gap: 12px;
}

.marketing-channel-row {
  display: grid;
  grid-template-columns: 1.5fr 56px minmax(90px, 1fr) 44px;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.marketing-channel-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
}

.marketing-channel-row i {
  height: 8px;
  overflow: hidden;
  background: rgba(47, 102, 208, 0.12);
  border-radius: 999px;
}

.marketing-channel-row i b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #8b5cf6);
  border-radius: inherit;
}

.channel-badge {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #2563eb, #60a5fa);
  border-radius: 9px;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.channel-badge svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.channel-badge.facebook svg path {
  stroke: none;
  fill: currentColor;
}

.channel-stack {
  display: inline-flex;
  align-items: center;
  margin-right: 2px;
}

.channel-stack .channel-badge {
  width: 24px;
  height: 24px;
  margin-right: -7px;
  border: 2px solid var(--white);
}

.channel-badge.instagram { background: linear-gradient(145deg, #db2777, #fb7185); }
.channel-badge.facebook-instagram { background: linear-gradient(145deg, #2563eb, #db2777); }
.channel-badge.whatsapp { background: linear-gradient(145deg, #047857, #25d366); }
.channel-badge.otro { background: linear-gradient(145deg, #475569, #94a3b8); }

.marketing-funnel.visual {
  display: grid;
  grid-template-columns: 38% minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 230px;
}

.marketing-funnel-shape {
  position: relative;
  width: 180px;
  height: 205px;
  margin: 0 auto;
  filter: drop-shadow(0 16px 22px rgba(79, 70, 229, 0.28));
}

.marketing-funnel-shape i {
  position: absolute;
  left: 50%;
  display: block;
  height: 38px;
  transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%);
  border-bottom: 1px solid rgba(2, 6, 23, 0.26);
}

.marketing-funnel-shape i.level-0 { top: 0; width: 180px; }
.marketing-funnel-shape i.level-1 { top: 40px; width: 150px; }
.marketing-funnel-shape i.level-2 { top: 80px; width: 120px; }
.marketing-funnel-shape i.level-3 { top: 120px; width: 88px; }
.marketing-funnel-shape i.level-4 { top: 160px; width: 52px; height: 44px; clip-path: polygon(10% 0, 90% 0, 70% 100%, 30% 100%); border-radius: 0 0 10px 10px; }
.marketing-funnel-shape i.purple { background: linear-gradient(180deg, #8b5cf6, #6d28d9); }
.marketing-funnel-shape i.blue { background: linear-gradient(180deg, #2563eb, #1d4ed8); }
.marketing-funnel-shape i.cyan { background: linear-gradient(180deg, #22d3ee, #0e7490); }
.marketing-funnel-shape i.green { background: linear-gradient(180deg, #22c55e, #15803d); }

.marketing-funnel-metrics {
  display: grid;
  gap: 10px;
}

.marketing-funnel-metrics div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.marketing-funnel-metrics div:last-child {
  border-bottom: 0;
}

.marketing-funnel-metrics span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 780;
}

.marketing-funnel-metrics strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.marketing-funnel-metrics em {
  color: #16a34a;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.marketing-table-card {
  padding: 0;
  overflow: hidden;
}

.marketing-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.marketing-table-head h3,
.marketing-table-head p {
  margin: 0;
}

.marketing-table-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.85rem;
}

.marketing-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.marketing-bulk-actions {
  align-self: center;
  justify-content: flex-end;
}

.marketing-filters label {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.marketing-filters select,
.marketing-filters input {
  min-height: 38px;
  padding: 0 12px;
  color: var(--navy);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 800;
}

.marketing-table-wrap {
  overflow-x: auto;
}

.marketing-performance-card .marketing-table-wrap {
  overflow: visible;
}

.marketing-performance-card .marketing-table {
  background: transparent;
  border: 0;
}

.marketing-performance-card .marketing-table th,
.marketing-performance-card .marketing-table td {
  padding: 11px 10px;
}

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

.marketing-table td strong,
.marketing-table td small {
  display: block;
}

.marketing-table td small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.marketing-roi {
  display: inline-flex;
  min-width: 58px;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  color: #64748b;
  background: #eef2f7;
  font-weight: 900;
}

.marketing-roi.positive {
  color: #047857;
  background: rgba(34, 197, 94, 0.14);
}

.marketing-donut-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 220px;
}

.marketing-dashboard-compact {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 124px;
  overflow: hidden;
}

.marketing-dashboard-compact .marketing-donut-wrap {
  display: block;
  width: 98px;
  min-height: 98px;
}

.marketing-dashboard-compact .marketing-donut {
  width: 98px;
  height: 98px;
}

.marketing-dashboard-compact .marketing-donut-center {
  left: 49px;
}

.marketing-dashboard-compact .marketing-donut-center strong {
  font-size: 1.02rem;
  line-height: 1;
}

.marketing-dashboard-compact > div:last-child strong,
.marketing-dashboard-compact > div:last-child span,
.marketing-dashboard-compact > div:last-child small {
  display: block;
}

.marketing-dashboard-compact > div:last-child strong {
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.15;
}

.marketing-dashboard-compact > div:last-child span {
  margin-top: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.25;
}

.marketing-dashboard-compact > div:last-child small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.marketing-dashboard-modal {
  width: min(1060px, calc(100vw - 28px));
  max-width: min(1060px, calc(100vw - 28px));
  height: min(690px, calc(100vh - 24px));
  max-height: min(690px, calc(100vh - 24px));
  overflow: hidden;
  padding: 12px;
}

.marketing-dashboard-modal .marketing-kpis,
.marketing-dashboard-modal .marketing-grid {
  margin-top: 12px;
}

.marketing-dashboard-modal .floating-chart-header {
  margin-bottom: 8px;
}

.marketing-dashboard-modal .analytics-title {
  gap: 10px;
}

.marketing-dashboard-modal .analytics-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.marketing-dashboard-modal .floating-chart-header h3 {
  font-size: 1.2rem;
}

.marketing-dashboard-modal .floating-chart-header span {
  font-size: 0.78rem;
}

.marketing-dashboard-modal .marketing-manual-note {
  padding: 7px 10px;
  font-size: 0.74rem;
}

.marketing-modal-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.marketing-mini-metric {
  min-height: 58px;
  padding: 9px 10px;
  background: rgba(248, 250, 252, 0.82);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.marketing-mini-metric span,
.marketing-mini-metric strong,
.marketing-mini-metric em {
  display: block;
}

.marketing-mini-metric span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.marketing-mini-metric strong {
  margin-top: 2px;
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.1;
}

.marketing-mini-metric em {
  margin-top: 3px;
  color: #159467;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 850;
}

.marketing-mini-metric em.negative {
  color: #e14848;
}

.marketing-dashboard-modal .marketing-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.marketing-dashboard-modal .marketing-kpi {
  min-height: 72px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 7px;
  padding: 10px;
  border-radius: 12px;
}

.marketing-dashboard-modal .marketing-kpi-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.marketing-dashboard-modal .marketing-kpi-icon svg {
  width: 16px;
  height: 16px;
}

.marketing-dashboard-modal .marketing-kpi small,
.marketing-dashboard-modal .marketing-kpi em {
  font-size: 0.7rem;
}

.marketing-dashboard-modal .marketing-kpi strong {
  font-size: 0.88rem;
  margin: 3px 0;
}

.marketing-dashboard-modal .marketing-kpi .compact-spark {
  display: none;
}

.marketing-dashboard-modal .marketing-main-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.marketing-dashboard-modal .marketing-bottom-grid {
  grid-template-columns: 0.9fr 0.9fr 1fr;
  gap: 10px;
}

.marketing-fit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
  grid-template-rows: 1fr 0.82fr;
  gap: 9px;
  height: calc(100% - 122px);
  margin-top: 9px;
}

.marketing-fit-grid .marketing-chart-card {
  min-height: 0;
  overflow: hidden;
}

.marketing-fit-grid .marketing-performance-card {
  grid-row: 1 / 3;
  grid-column: 3;
}

.marketing-fit-grid .marketing-activity-compact-card {
  grid-column: 1 / 3;
}

.marketing-dashboard-modal .marketing-chart-card {
  padding: 9px;
  border-radius: 12px;
}

.marketing-dashboard-modal .marketing-leads-card,
.marketing-dashboard-modal .marketing-performance-card {
  min-height: 198px;
}

.marketing-dashboard-modal .marketing-chart-card .panel-header {
  margin-bottom: 6px;
}

.marketing-dashboard-modal .marketing-chart-card .panel-header h3 {
  font-size: 0.95rem;
}

.marketing-dashboard-modal .marketing-chart-card .panel-header p {
  font-size: 0.74rem;
}

.marketing-dashboard-modal .marketing-line-chart svg {
  min-height: 132px;
  height: 132px;
}

.marketing-dashboard-modal .marketing-chart-legend {
  gap: 14px;
  font-size: 0.72rem;
}

.marketing-dashboard-modal .marketing-performance-card .marketing-table th,
.marketing-dashboard-modal .marketing-performance-card .marketing-table td {
  padding: 5px 5px;
  font-size: 0.64rem;
}

.marketing-dashboard-modal .marketing-performance-card .marketing-table th:nth-child(3),
.marketing-dashboard-modal .marketing-performance-card .marketing-table td:nth-child(3),
.marketing-dashboard-modal .marketing-performance-card .marketing-table th:nth-child(4),
.marketing-dashboard-modal .marketing-performance-card .marketing-table td:nth-child(4) {
  display: none;
}

.marketing-dashboard-modal .marketing-performance-card .marketing-table td small {
  font-size: 0.62rem;
}

.marketing-dashboard-modal .marketing-performance-card .table-action {
  min-height: 24px;
  padding: 0 6px;
  font-size: 0.64rem;
}

.marketing-dashboard-modal .channel-badge {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

.marketing-dashboard-modal .channel-badge svg {
  width: 15px;
  height: 15px;
}

.marketing-dashboard-modal .marketing-donut-wrap {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  min-height: 116px;
}

.marketing-dashboard-modal .marketing-donut {
  width: 92px;
  height: 92px;
}

.marketing-dashboard-modal .marketing-donut-center {
  left: 46px;
}

.marketing-dashboard-modal .marketing-donut-center strong {
  font-size: 0.92rem;
}

.marketing-dashboard-modal .marketing-donut-center span,
.marketing-dashboard-modal .marketing-donut-legend span,
.marketing-dashboard-modal .marketing-activity-row span,
.marketing-dashboard-modal .marketing-activity-row em {
  font-size: 0.68rem;
}

.marketing-dashboard-modal .marketing-donut-legend {
  gap: 4px;
}

.marketing-dashboard-modal .marketing-funnel {
  gap: 4px;
  padding-top: 0;
}

.marketing-dashboard-modal .marketing-funnel div {
  min-width: 98px;
  padding: 5px 8px;
  font-size: 0.64rem;
}

.marketing-dashboard-modal .marketing-funnel div strong {
  font-size: 0.82rem;
}

.marketing-dashboard-modal .marketing-activity-row {
  grid-template-columns: 28px 1fr auto;
  gap: 9px;
  padding: 4px 0;
}

.marketing-dashboard-modal .marketing-activity-row strong {
  font-size: 0.75rem;
}

.marketing-donut {
  width: 150px;
  height: 150px;
  transform: rotate(-90deg);
}

.marketing-donut circle {
  fill: none;
  stroke-width: 15;
  stroke-linecap: butt;
  stroke-dasharray: var(--dash) 100;
  stroke-dashoffset: var(--offset);
  stroke: var(--color);
}

.marketing-donut .base {
  stroke: rgba(148, 163, 184, 0.18);
  stroke-dasharray: 100 0;
}

.marketing-donut-center {
  position: absolute;
  left: 75px;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.marketing-donut-center strong,
.marketing-donut-center span {
  display: block;
}

.marketing-donut-center strong {
  color: var(--navy);
  font-size: 1.5rem;
}

.marketing-donut-center span {
  color: var(--muted);
  font-size: 0.8rem;
}

.marketing-donut-legend {
  display: grid;
  gap: 11px;
}

.marketing-donut-legend span {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.marketing-donut-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.marketing-donut-legend b {
  color: var(--navy);
}

.marketing-activity-list {
  display: grid;
  gap: 2px;
}

.marketing-activity-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

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

.marketing-activity-row strong,
.marketing-activity-row span,
.marketing-activity-row em {
  display: block;
}

.marketing-activity-row strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.marketing-activity-row span,
.marketing-activity-row em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.marketing-form-panel textarea {
  min-height: 110px;
  padding: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  resize: vertical;
}

.form-grid .full-field {
  grid-column: 1 / -1;
}

.property-status-field {
  align-self: start;
}

.property-status-field select {
  min-height: 48px;
  height: 48px;
}

.contracts-panel {
  padding: 24px;
}

.contracts-panel .panel-header {
  margin-bottom: 22px;
}

.contracts-table-wrap {
  overflow-x: auto;
}

.contracts-table {
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.contracts-table th,
.contracts-table td {
  padding: 16px 18px;
  vertical-align: middle;
  white-space: nowrap;
}

.contracts-table tbody tr {
  background: var(--white);
  box-shadow: 0 10px 24px rgba(5, 18, 38, 0.06);
}

.contracts-table tbody td:first-child {
  border-radius: 12px 0 0 12px;
}

.contracts-table tbody td:last-child {
  border-radius: 0 12px 12px 0;
}

body.dark-mode .contracts-table tbody tr {
  background: rgba(17, 31, 54, 0.92);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.upload-contract-action {
  font-size: 11px;
  letter-spacing: 0;
  padding: 9px 12px;
  border-color: rgba(196, 148, 52, 0.35);
  color: var(--navy);
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.upload-contract-action:hover {
  border-color: rgba(196, 148, 52, 0.65);
  transform: translateY(-1px);
}

body.dark-mode .upload-contract-action {
  color: #7dd3fc;
  background: rgba(196, 148, 52, 0.1);
  border-color: rgba(247, 210, 122, 0.35);
}

.download-contract-action {
  text-decoration: none;
  font-size: 11px;
  padding: 9px 12px;
  color: #0f7a4b;
  background: rgba(26, 164, 102, 0.1);
  border-color: rgba(26, 164, 102, 0.28);
}

.contract-upload-panel {
  max-width: 920px;
  margin-inline: auto;
}

.contract-upload-layout {
  display: grid;
  place-items: center;
}

.contract-upload-only {
  width: min(720px, 100%);
}

.contract-upload-field {
  margin-top: 12px;
}

.contract-document-preview {
  width: min(560px, 100%);
  height: auto;
  aspect-ratio: 8.5 / 11;
  margin: 0 auto;
  border-radius: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 18px 40px rgba(7, 20, 42, 0.14);
}

.contract-upload-field input[type="file"] {
  max-width: 560px;
  margin-inline: auto;
}

body.dark-mode .download-contract-action {
  color: #74e2a8;
  background: rgba(26, 164, 102, 0.12);
  border-color: rgba(116, 226, 168, 0.34);
}

.role-modal {
  max-width: min(980px, 94vw);
}

.role-name-cell {
  display: grid;
  gap: 4px;
  line-height: 1.2;
}

.role-name-cell strong,
.role-name-cell small {
  display: block;
}

.role-name-cell small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

body.dark-theme .role-name-cell small {
  color: rgba(226, 232, 240, 0.72);
}

.role-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.role-access-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-weight: 800;
}

.role-access-item input {
  min-height: auto;
  width: 16px;
  height: 16px;
}

body.dark-theme .role-access-grid,
body.dark-theme .role-access-item {
  background: rgba(15, 27, 48, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.marketing-result-preview {
  margin-bottom: 18px;
}

.marketing-detail-hero,
.marketing-notes-panel {
  padding: 18px;
}

.marketing-detail-hero .panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.marketing-budget-chart {
  display: grid;
  gap: 16px;
}

.marketing-budget-chart div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.marketing-budget-chart span {
  color: var(--muted);
  font-weight: 800;
}

.marketing-budget-chart strong {
  color: var(--navy);
}

.marketing-budget-chart i {
  grid-column: 1 / -1;
  height: 12px;
  overflow: hidden;
  background: rgba(47, 102, 208, 0.12);
  border-radius: 999px;
}

.marketing-budget-chart i b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  border-radius: inherit;
}

.marketing-budget-chart em {
  color: #047857;
  font-style: normal;
  font-weight: 900;
}

.marketing-budget-chart em.negative {
  color: #dc2626;
}

.marketing-notes-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.marketing-notes-panel h3 {
  margin: 0 0 10px;
  color: var(--navy);
}

.marketing-notes-panel p {
  margin: 0 0 8px;
  color: var(--muted);
}

body.dark-theme .marketing-header h2,
body.dark-theme .marketing-kpi strong,
body.dark-theme .marketing-dashboard-compact > div:last-child strong,
body.dark-theme .marketing-dashboard-compact > div:last-child span,
body.dark-theme .marketing-channel-row span,
body.dark-theme .marketing-donut-center strong,
body.dark-theme .marketing-donut-legend b,
body.dark-theme .marketing-activity-row strong,
body.dark-theme .marketing-funnel-metrics strong,
body.dark-theme .marketing-budget-chart strong,
body.dark-theme .marketing-notes-panel h3 {
  color: #eef2f7;
}

body.dark-theme .marketing-kpi,
body.dark-theme .marketing-chart-card,
body.dark-theme .marketing-table-card,
body.dark-theme .marketing-detail-hero,
body.dark-theme .marketing-notes-panel {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(17, 24, 39, 0.9));
  border-color: rgba(148, 163, 184, 0.16);
}

body.dark-theme .marketing-manual-note {
  color: #c7d2fe;
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(96, 165, 250, 0.22);
}

body.dark-theme .marketing-filters select,
body.dark-theme .marketing-filters input,
body.dark-theme .marketing-form-panel textarea,
body.dark-theme .marketing-mini-metric {
  color: #eef2f7;
  background: #15233a;
  border-color: var(--line);
}

body.dark-theme .marketing-mini-metric strong {
  color: #eef2f7;
}

body.dark-theme .marketing-roi {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.14);
}

body.dark-theme .channel-stack .channel-badge {
  border-color: #101b2d;
}

body.dark-theme .marketing-line-chart .grid {
  stroke: rgba(148, 163, 184, 0.16);
}

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

  .marketing-table-head {
    flex-direction: column;
  }

  .marketing-filters {
    justify-content: flex-start;
  }

  .fixed-rent-kpis {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .fixed-rent-bottom {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .marketing-header,
  .marketing-table-head,
  .marketing-notes-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .marketing-filters label,
  .marketing-filters select,
  .marketing-filters input,
  .marketing-manual-note {
    width: 100%;
  }

  .marketing-channel-row {
    grid-template-columns: 1fr 44px;
  }

  .marketing-channel-row i,
  .marketing-channel-row em {
    grid-column: 1 / -1;
  }

  .fixed-rent-header,
  .fixed-rent-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .fixed-rent-actions {
    justify-content: flex-start;
  }

  .fixed-rent-kpis,
  .fixed-rent-bottom {
    grid-template-columns: 1fr;
  }

  .fixed-rent-search {
    min-width: 0;
  }
}
