/* MoneyPro — modern charcoal dark UI */
:root {
  --mp-bg: #09090b;
  --mp-bg-2: #0c0c0f;
  --mp-panel: #121215;
  --mp-panel-2: #18181c;
  --mp-hover: #222228;
  --mp-ink: #fafafa;
  --mp-soft: #e4e4e7;
  --mp-muted: #a1a1aa;
  --mp-faint: #71717a;
  --mp-line: rgba(255, 255, 255, 0.06);
  --mp-line-2: rgba(255, 255, 255, 0.12);
  --mp-glow: rgba(255, 255, 255, 0.04);
  --mp-sky: #38bdf8;
  --mp-sky-soft: rgba(56, 189, 248, 0.16);
  --mp-amber: #f59e0b;
  --mp-amber-soft: rgba(245, 158, 11, 0.16);
  --mp-radius: 20px;
  --mp-radius-sm: 12px;
  --mp-sidebar: 272px;
  --mp-font: 'Outfit', sans-serif;
  --mp-display: 'Outfit', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  color-scheme: dark;
}

html, body,
.wrapper, .main-panel, .sidebar, .card, .btn, .form-control,
input, select, textarea, button, table, .fc, .select2-container,
.select2-container--default .select2-selection--single,
.select2-results__option {
  font-family: var(--mp-font) !important;
}

body {
  margin: 0 !important;
  font-family: var(--mp-font) !important;
  font-weight: 400 !important;
  color: var(--mp-ink) !important;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(56,189,248,0.08), transparent 50%),
    radial-gradient(700px 380px at 0% 100%, rgba(245,158,11,0.05), transparent 45%),
    var(--mp-bg) !important;
  background-attachment: fixed !important;
  -webkit-font-smoothing: antialiased;
}

body::before { display: none !important; }

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5, .title, .navbar-brand, .company,
.mp-page-title, .mp-dash-title, .mp-panel-title, .mp-pulse-title {
  font-family: var(--mp-display) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  color: var(--mp-ink) !important;
}

p, label, span, td, th, a, li, small, input, select, textarea, button {
  font-family: var(--mp-font) !important;
}

/* Keep icon fonts working */
.fa,
.fa:before,
.fas,
.far,
.fal,
.fab {
  font-family: 'FontAwesome' !important;
}
[class^="ti-"],
[class*=" ti-"],
[class^="ti-"]:before,
[class*=" ti-"]:before {
  font-family: 'themify' !important;
}
.fc-icon,
.fc-icon:before {
  font-family: 'fcicons' !important;
}

a { transition: color .15s ease, background .15s ease, border-color .15s ease; }

/* ===== Sidebar ===== */
.sidebar,
.sidebar[data-background-color],
.off-canvas-sidebar {
  position: fixed !important;
  inset: 0 auto 0 0 !important;
  width: var(--mp-sidebar) !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  background: #0b0b0e !important;
  background-image: none !important;
  border-right: 1px solid var(--mp-line) !important;
  box-shadow: none !important;
  z-index: 100 !important;
}

.sidebar:after,
.sidebar:before,
.off-canvas-sidebar:after,
.off-canvas-sidebar:before,
.sidebar[data-background-color="white"]:after,
.sidebar[data-background-color="white"]:before {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.sidebar .sidebar-wrapper,
.off-canvas-sidebar .sidebar-wrapper {
  height: 100% !important;
  max-height: 100vh !important;
  min-height: 0 !important;
  padding: 1.4rem 1rem 1.5rem !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
  z-index: 5 !important;
}

.sidebar .brand-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0.85rem 1.15rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--mp-line);
}
.mp-nav-close,
.mp-nav-toggle,
.mp-sidebar-backdrop,
.mp-topnav-brand {
  display: none;
}

.sidebar .brand-name {
  display: block;
  margin: 0;
  color: #fff !important;
  font-family: var(--mp-display) !important;
  font-size: 1.55rem;
  font-weight: 600 !important;
  line-height: 1.1;
}

.sidebar .nav { margin: 0 !important; }

.sidebar .nav li,
.off-canvas-sidebar .nav li {
  padding: 0 !important;
  background: transparent !important;
  width: 100% !important;
}

.sidebar .nav li.active { background: transparent !important; }

.sidebar .nav li.active > a:before,
.sidebar .nav li.active > a:after {
  display: none !important;
  content: none !important;
}

.sidebar .nav li > a,
.off-canvas-sidebar .nav li > a {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem;
  margin: 0.18rem 0 !important;
  padding: 0.82rem 0.95rem !important;
  border-radius: 14px !important;
  color: var(--mp-muted) !important;
  background: transparent !important;
  font-family: var(--mp-font) !important;
  font-size: 0.94rem !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  opacity: 1 !important;
  white-space: nowrap !important;
  border: 1px solid transparent !important;
}

.sidebar .nav li > a p {
  margin: 0 !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  text-transform: none !important;
  color: inherit !important;
}

.sidebar .nav li > a i {
  float: none !important;
  width: 1.25rem !important;
  margin: 0 !important;
  font-size: 1.05rem !important;
  color: var(--mp-faint) !important;
  text-align: center;
}

.sidebar .nav li > a:hover {
  background: rgba(56,189,248,0.08) !important;
  color: #fff !important;
  border-color: rgba(56,189,248,0.18) !important;
  transform: none !important;
}
.sidebar .nav li > a:hover i { color: var(--mp-sky) !important; }

.sidebar .nav li.active > a,
.sidebar .nav li.active > a:hover {
  background: linear-gradient(90deg, rgba(56,189,248,0.16), rgba(56,189,248,0.05)) !important;
  color: #fff !important;
  border-color: rgba(56,189,248,0.28) !important;
  box-shadow: inset 3px 0 0 var(--mp-sky) !important;
}

.sidebar .nav li.active > a i { color: var(--mp-sky) !important; }

/* ===== Main ===== */
.main-panel {
  margin-left: var(--mp-sidebar) !important;
  width: auto !important;
  float: none !important;
  min-height: 100vh !important;
  background: transparent !important;
  position: relative !important;
  z-index: 2 !important;
}

.navbar.navbar-default {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0.85rem 1.35rem 0.35rem !important;
}

.navbar .navbar-brand p,
.navbar .company {
  margin: 0 !important;
  font-size: 1.7rem !important;
  color: var(--mp-ink) !important;
}

.right-nav {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.right-nav li a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: var(--mp-panel);
  border: 1px solid var(--mp-line);
  color: var(--mp-soft) !important;
  font-size: 0.86rem;
  text-decoration: none !important;
}

.right-nav li a:hover {
  background: var(--mp-hover);
  border-color: var(--mp-line-2);
  color: #fff !important;
}

.content,
.main-panel .content {
  padding: 0.85rem 1.35rem 1.75rem !important;
  color: var(--mp-ink) !important;
  animation: mpIn .35s ease both;
  width: 100%;
  max-width: none;
}

.footer {
  background: transparent !important;
  border: 0 !important;
  padding: 0.25rem 1.75rem 1.5rem !important;
  color: var(--mp-faint) !important;
}

.footer .copyright {
  float: none !important;
  font-size: 0.82rem;
  color: var(--mp-faint) !important;
}

/* ===== Surfaces ===== */
.card,
.mp-panel {
  background: linear-gradient(180deg, #141418 0%, #101014 100%) !important;
  border: 1px solid var(--mp-line) !important;
  border-radius: var(--mp-radius) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 20px 40px rgba(0,0,0,0.25) !important;
  margin-bottom: 1.25rem !important;
  color: var(--mp-ink) !important;
  overflow: hidden;
}

.mp-panel { padding: 1.35rem 1.4rem; }

.card .header,
.card .content {
  background: transparent !important;
  padding-left: 1.35rem !important;
  padding-right: 1.35rem !important;
}

.card .header { padding-top: 1.25rem !important; }
.card .title,
.content .title,
.mp-panel .title {
  margin: 0 0 1rem !important;
  font-size: 1.35rem !important;
  color: var(--mp-ink) !important;
}

/* Forms */
.form-control,
.select2-container--default .select2-selection--single,
.dataTables_filter input,
.dataTables_length select {
  min-height: 48px !important;
  border-radius: var(--mp-radius-sm) !important;
  border: 1px solid var(--mp-line-2) !important;
  background: #0b0b0e !important;
  color: var(--mp-ink) !important;
  box-shadow: none !important;
  font-family: var(--mp-font) !important;
  font-weight: 400 !important;
}

.form-control:focus {
  border-color: rgba(56,189,248,0.65) !important;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.14) !important;
  background: #0f0f12 !important;
  color: #fff !important;
}

.form-control::placeholder { color: var(--mp-faint) !important; }

.input-group-addon {
  background: #17171b !important;
  border: 1px solid var(--mp-line-2) !important;
  color: var(--mp-soft) !important;
  border-radius: var(--mp-radius-sm) 0 0 var(--mp-radius-sm) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--mp-ink) !important;
  line-height: 46px !important;
  font-weight: 400 !important;
}

.select2-dropdown {
  background: #141418 !important;
  border: 1px solid var(--mp-line-2) !important;
  border-radius: 12px !important;
  overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: rgba(56,189,248,0.18) !important;
  color: #e0f2fe !important;
}

label.control-label,
.form-group > label {
  color: var(--mp-soft) !important;
  margin-bottom: 0.45rem !important;
  font-size: 0.88rem !important;
}

/* Buttons */
.btn,
.btn-fill,
.dt-button,
.btn-primary,
.btn-info,
.btn-success,
.btn-fill.btn-primary,
.btn-fill.btn-info,
.btn-fill.btn-success {
  min-height: 44px;
  border-radius: 12px !important;
  padding: 0.65rem 1.1rem !important;
  font-family: var(--mp-font) !important;
  font-weight: 400 !important;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%) !important;
  border: 1px solid transparent !important;
  color: #082f49 !important;
  box-shadow: 0 8px 20px rgba(14,165,233,0.22) !important;
}

.btn:hover,
.btn-fill:hover,
.dt-button:hover,
.btn-primary:hover,
.btn-info:hover,
.btn-fill.btn-primary:hover,
.btn-fill.btn-info:hover {
  background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%) !important;
  border-color: transparent !important;
  color: #082f49 !important;
  transform: translateY(-1px);
}

.btn-default,
.btn-secondary,
.btn-fill.btn-default,
.dt-buttons .dt-button:not(:first-child) {
  background: #1a1a1f !important;
  border: 1px solid var(--mp-line-2) !important;
  color: var(--mp-ink) !important;
  box-shadow: none !important;
}

.btn-warning,
.btn-fill.btn-warning {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  border-color: transparent !important;
  color: #451a03 !important;
  box-shadow: 0 8px 20px rgba(245,158,11,0.2) !important;
}

.btn-danger,
.btn-fill.btn-danger {
  background: #3f1d1d !important;
  border-color: #7f1d1d !important;
  color: #fecaca !important;
  box-shadow: none !important;
}

/* Tables */
.table {
  color: var(--mp-soft) !important;
  background: transparent !important;
}

.table > thead > tr > th {
  border: 0 !important;
  border-bottom: 1px solid var(--mp-line) !important;
  color: var(--mp-faint) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400 !important;
  background: transparent !important;
  padding: 0.9rem 0.75rem !important;
}

.table > tbody > tr > td {
  border-top: 1px solid var(--mp-line) !important;
  color: var(--mp-soft) !important;
  background: transparent !important;
  padding: 1rem 0.75rem !important;
  vertical-align: middle !important;
}

.table-hover > tbody > tr:hover > td {
  background: rgba(255,255,255,0.02) !important;
}

.dataTables_wrapper,
.dataTables_info,
.dataTables_filter label,
.dataTables_length label,
.dataTables_empty {
  color: var(--mp-muted) !important;
}

/* legacy non-bootstrap paginate fallback */
.paginate_button:not(.page-item) {
  color: var(--mp-muted) !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 8px !important;
}

/* Modals */
.modal-content {
  background: #121215 !important;
  border: 1px solid var(--mp-line-2) !important;
  border-radius: 20px !important;
  color: var(--mp-ink) !important;
  box-shadow: 0 30px 60px rgba(0,0,0,0.55) !important;
}

.modal-header,
.modal-footer {
  border-color: var(--mp-line) !important;
  background: transparent !important;
}

.modal-title { color: #fff !important; }
.close { color: #fff !important; opacity: .7; text-shadow: none !important; }

.alert-success,
.alert-info {
  background: #1a1a1f !important;
  border: 1px solid var(--mp-line-2) !important;
  color: var(--mp-ink) !important;
  border-radius: 12px !important;
}

.alert-warning,
.alert-danger {
  background: #2a1717 !important;
  border-color: #7f1d1d !important;
  color: #fecaca !important;
  border-radius: 12px !important;
}

/* Dashboard */
.mp-dash {
  width: 100%;
  max-width: none;
}

.mp-dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* Motivation pulse */
.mp-pulse {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.78fr);
  gap: 1.35rem;
  align-items: stretch;
  margin-bottom: 1.15rem;
  padding: 1.35rem 1.4rem;
  border-radius: var(--mp-radius);
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 42%),
    radial-gradient(520px 240px at 0% 0%, rgba(56,189,248,0.10), transparent 58%),
    linear-gradient(155deg, #141418 0%, #0e0e12 100%);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease, border-color .25s ease;
}
.mp-pulse.is-ready {
  opacity: 1;
  transform: translateY(0);
}
.mp-pulse.is-win { border-color: rgba(34,197,94,0.28); }
.mp-goal-hero { margin-bottom: 1.15rem; }
.mp-pulse-glow { display: none; }

.mp-pulse-main {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}
.mp-pulse-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.mp-pulse-identity { min-width: 0; flex: 1; }
.mp-pulse-greet {
  margin: 0 0 0.45rem;
  color: var(--mp-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mp-pulse-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 0 auto;
}
.mp-pulse-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.6rem;
  border-radius: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  color: var(--mp-soft);
  white-space: nowrap;
}
.mp-pulse-badge-level {
  color: #e0f2fe;
  border-color: rgba(56,189,248,0.22);
  background: rgba(56,189,248,0.1);
}
.mp-pulse-badge-streak {
  color: #fdba74;
  border-color: rgba(249,115,22,0.22);
  background: rgba(249,115,22,0.1);
}
.mp-pulse-badge-streak.is-hot {
  color: #ffedd5;
  border-color: rgba(249,115,22,0.4);
}
.mp-pulse-title {
  margin: 0 0 0.4rem;
  color: #fff !important;
  font-family: var(--mp-display);
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.mp-pulse-line {
  margin: 0;
  max-width: 36rem;
  color: var(--mp-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.mp-pulse-board {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.85fr);
  gap: 0.85rem;
  align-items: stretch;
}
.mp-mission {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
}
.mp-mission.is-done {
  border-color: rgba(34,197,94,0.28);
  background: rgba(34,197,94,0.06);
}
.mp-mission-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}
.mp-mission-label {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--mp-faint);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mp-mission.is-done .mp-mission-label { color: #86efac; }
.mp-mission-head strong {
  color: #fff;
  font-family: var(--mp-display);
  font-size: 1.35rem;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.mp-mission-pct {
  color: #e0f2fe;
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}
.mp-mission.is-done .mp-mission-pct { color: #bbf7d0; }
.mp-mission-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
  margin-bottom: 0.55rem;
}
.mp-mission-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8 0%, #0ea5e9 100%);
  transition: width 0.85s cubic-bezier(.22,1,.36,1);
}
.mp-mission.is-done .mp-mission-fill {
  background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
}
.mp-mission-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--mp-faint);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.mp-mission-meta em {
  font-style: normal;
  font-weight: 600;
}
.mp-mission-meta em.up { color: #86efac; }
.mp-mission-meta em.down { color: #fca5a5; }

.mp-pulse-week {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(165deg, #17191e 0%, #121316 100%);
  overflow: hidden;
}
.mp-pulse-week-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
}
.mp-pulse-week-label {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--mp-faint);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mp-pulse-week-range {
  margin: 0;
  color: var(--mp-muted);
  font-size: 0.74rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.mp-pulse-week-count {
  text-align: right;
  flex: 0 0 auto;
}
.mp-pulse-week-count strong {
  display: block;
  color: #fff;
  font-family: var(--mp-display);
  font-size: 1.35rem;
  font-weight: 600 !important;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mp-pulse-week-count strong span {
  color: var(--mp-muted);
  font-size: 0.78rem;
  font-weight: 500;
  margin-left: 0.05rem;
}
.mp-pulse-week-count small {
  display: block;
  margin-top: 0.22rem;
  color: var(--mp-faint);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mp-pulse-week.is-full .mp-pulse-week-count strong { color: #86efac; }
.mp-pulse-week.is-full .mp-pulse-week-fill { background: #4ade80; }

.mp-pulse-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.15rem;
}
.mp-pulse-cta {
  flex: 0 0 auto;
  padding: 0.62rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  background: #38bdf8 !important;
  color: #082f49 !important;
  box-shadow: none;
}
.mp-pulse-cta:hover {
  filter: brightness(1.06);
  color: #082f49 !important;
}
.mp-pulse-footer .mp-source-block {
  flex: 1 1 220px;
  min-width: 0;
  margin-top: 0;
}
.mp-pulse-footer .mp-source-label {
  margin-bottom: 0.4rem;
  color: var(--mp-faint);
}
.mp-pulse-footer .mp-source-chip {
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
}
.mp-pulse-footer .mp-source-empty {
  font-size: 0.78rem;
}

.mp-level-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}
.mp-level-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #38bdf8;
  transition: width 0.85s cubic-bezier(.22,1,.36,1);
}
.mp-level-meta {
  display: block;
  margin-top: 0.4rem;
  color: var(--mp-faint);
  font-size: 0.7rem;
  letter-spacing: 0.01em;
}

/* Shared by Goals page hero stats */
.mp-pulse-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
  margin-top: 0.15rem;
}
.mp-pulse-stat {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.8rem 0.85rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.028);
  border: 1px solid rgba(255,255,255,0.06);
}
.mp-pulse-stat-ico {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 0.9rem;
}
.mp-pulse-stat-today .mp-pulse-stat-ico {
  color: #7dd3fc;
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.22);
}
.mp-pulse-stat-week .mp-pulse-stat-ico {
  color: #fcd34d;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.22);
}
.mp-pulse-stat-month .mp-pulse-stat-ico {
  color: #86efac;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.22);
}
.mp-pulse-stat-lifetime .mp-pulse-stat-ico {
  color: #fde68a;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.22);
}
.mp-pulse-stat-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.mp-pulse-stat-label {
  color: var(--mp-faint);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mp-pulse-stat strong {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-pulse-stat-today strong { color: #e0f2fe; }
.mp-pulse-stat-week strong { color: #fde68a; }
.mp-pulse-stat-month strong { color: #bbf7d0; }
.mp-pulse-stat-lifetime strong { color: #fde68a; }

.mp-pulse-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.28rem;
}
.mp-pulse-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.mp-pulse-day i {
  position: relative;
  display: block;
  width: 100%;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.05);
  transition: background .22s ease, border-color .22s ease, transform .22s ease;
}
.mp-pulse-day.is-on i,
.mp-pulse-day i.is-on {
  background: linear-gradient(180deg, rgba(56,189,248,0.55), rgba(56,189,248,0.28));
  border-color: rgba(56,189,248,0.4);
}
.mp-pulse-day.is-on i::after,
.mp-pulse-day i.is-on::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e0f2fe;
  transform: translate(-50%, -50%);
}
.mp-pulse-day.is-today i,
.mp-pulse-day i.is-today {
  border-color: rgba(250,204,21,0.55);
  box-shadow: 0 0 0 1px rgba(250,204,21,0.18);
}
.mp-pulse-day.is-today.is-on i {
  background: linear-gradient(180deg, rgba(250,204,21,0.55), rgba(250,204,21,0.22));
  border-color: rgba(250,204,21,0.5);
}
.mp-pulse-day.is-today.is-on i::after { background: #fef08a; }
.mp-pulse-day b {
  color: var(--mp-faint);
  font-size: 0.58rem;
  font-weight: 500 !important;
  line-height: 1;
  letter-spacing: 0.02em;
}
.mp-pulse-day.is-on b { color: #bae6fd; }
.mp-pulse-day.is-today b { color: #fde68a; }
.mp-pulse-week-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.mp-pulse-week-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #38bdf8;
  transition: width .85s cubic-bezier(.22,1,.36,1);
}

/* Legacy dots (calendar / older markup) */
.mp-pulse-dots {
  display: flex;
  gap: 0.45rem;
  justify-content: space-between;
}
.mp-pulse-dots span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  flex: 1;
}
.mp-pulse-dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  display: block;
}
.mp-pulse-dots i.is-on { background: #38bdf8; }
.mp-pulse-dots i.is-today {
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251,191,36,0.18);
}
.mp-pulse-dots b {
  color: var(--mp-faint);
  font-size: 0.58rem;
  font-weight: 500 !important;
  line-height: 1;
}
.mp-pulse-dots span:has(i.is-on) b,
.mp-pulse-dots span.is-today b { color: var(--mp-soft); }

.mp-pulse-goal {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.1rem;
  border-radius: 16px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.06);
}
.mp-pulse-goal-stack {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(165deg, #16181d 0%, #0f1014 100%);
  border-color: rgba(255,255,255,0.08);
}
.mp-ms {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.mp-ms-visual {
  display: grid;
  place-items: center;
  padding: 1.2rem 1rem 0.85rem;
  background:
    radial-gradient(140px 90px at 50% 35%, rgba(56,189,248,0.12), transparent 70%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mp-ms-copy {
  padding: 0.9rem 1.05rem 0.35rem;
  text-align: center;
}
.mp-pulse-goal-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--mp-faint);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.mp-ms-copy strong,
.mp-pulse-goal-head strong,
.mp-pulse-goal-copy strong {
  display: block;
  color: #fff;
  font-family: var(--mp-display);
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mp-pulse-goal-status {
  margin: 0.28rem 0 0;
  color: var(--mp-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.mp-pulse-goal.is-reached .mp-pulse-goal-status { color: #86efac; }
.mp-pulse-goal.is-empty .mp-ms-visual {
  background: radial-gradient(140px 90px at 50% 35%, rgba(255,255,255,0.04), transparent 70%);
}
.mp-pulse-ring {
  --pct: 0;
  position: relative;
  width: 124px;
  height: 124px;
  flex: 0 0 124px;
}
.mp-pulse-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.mp-pulse-ring-bg,
.mp-pulse-ring-fg {
  fill: none;
  stroke-width: 5.5;
}
.mp-pulse-ring-bg { stroke: rgba(255,255,255,0.08); }
.mp-pulse-ring-fg {
  stroke: #38bdf8;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: calc(326.7 - (326.7 * var(--pct) / 100));
  transition: stroke-dashoffset 1s cubic-bezier(.22,1,.36,1);
}
.mp-pulse-goal.is-reached .mp-pulse-ring-fg { stroke: #4ade80; }
.mp-pulse-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.mp-pulse-ring-center span {
  color: #fff;
  font-family: var(--mp-display);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.mp-pulse-ring-center small {
  margin-top: 0.28rem;
  color: var(--mp-faint);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.mp-ms-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0.65rem 1.05rem 0;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.mp-ms-stat {
  min-width: 0;
  padding: 0.7rem 0.65rem;
}
.mp-ms-stat + .mp-ms-stat {
  border-left: 1px solid rgba(255,255,255,0.07);
}
.mp-ms-stat span {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--mp-faint);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.mp-ms-stat strong {
  display: block;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600 !important;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-ms-level {
  margin-top: auto;
  padding: 0.95rem 1.05rem 1.05rem;
}
.mp-ms-level-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}
.mp-ms-level .mp-level-meta {
  margin: 0;
  color: var(--mp-faint);
  font-size: 0.7rem;
}
.mp-pulse-goal-copy { min-width: 0; }
.mp-pulse-goal-copy p {
  margin: 0;
  color: var(--mp-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}
.mp-pulse-goal-link {
  display: inline-flex;
  align-items: center;
  color: #7dd3fc !important;
  text-decoration: none !important;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.mp-pulse-goal-link:hover { color: #e0f2fe !important; }

@media (max-width: 991px) {
  .mp-pulse {
    grid-template-columns: 1fr;
    padding: 1.2rem 1.15rem;
  }
  .mp-pulse-goal {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
  .mp-pulse-goal-stack {
    display: block;
  }
  .mp-pulse-goal-stack .mp-ms {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "visual copy"
      "visual stats"
      "level level";
    align-items: center;
    gap: 0.35rem 1rem;
  }
  .mp-ms-visual {
    grid-area: visual;
    padding: 1rem;
    border-bottom: 0;
    border-right: 1px solid rgba(255,255,255,0.05);
    background: radial-gradient(120px 100px at 50% 50%, rgba(56,189,248,0.1), transparent 70%);
  }
  .mp-ms-copy {
    grid-area: copy;
    text-align: left;
    padding: 1rem 1rem 0.25rem 0;
  }
  .mp-ms-stats {
    grid-area: stats;
    margin: 0 1rem 0.75rem 0;
  }
  .mp-ms-level {
    grid-area: level;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 0.85rem 1rem;
  }
  .mp-pulse-goal-copy { text-align: left; }
}
@media (max-width: 700px) {
  .mp-pulse-board { grid-template-columns: 1fr; }
  .mp-pulse-top { flex-direction: column; }
  .mp-pulse-badges { justify-content: flex-start; }
  .mp-pulse-stats { grid-template-columns: 1fr; }
}

.mp-dash .row {
  margin-left: -0.55rem;
  margin-right: -0.55rem;
}
.mp-dash .row > [class*="col-"] {
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}
.mp-dash .mp-panel { margin-bottom: 1.1rem; }

.mp-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--mp-faint);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mp-dash-title {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.15;
  color: #fff !important;
}

.mp-dash-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  color: #082f49 !important;
  text-decoration: none !important;
  font-size: 0.92rem;
  box-shadow: 0 8px 20px rgba(14,165,233,0.22);
  transition: transform .15s ease, filter .15s ease;
}
.mp-dash-cta:hover { filter: brightness(1.08); transform: translateY(-1px); color: #082f49 !important; }
.mp-dash-cta i { font-size: 0.85rem; }

.mp-kpi-row { margin-left: -0.5rem; margin-right: -0.5rem; }
.mp-kpi-row > [class*="col-"] { padding-left: 0.5rem; padding-right: 0.5rem; }

.mp-kpi {
  position: relative;
  height: 100%;
  min-height: 118px;
  padding: 1.15rem 1.25rem;
  border-radius: var(--mp-radius);
  border: 1px solid rgba(56,189,248,0.22);
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(56,189,248,0.14), transparent 55%),
    linear-gradient(160deg, #16161a 0%, #101014 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 18px 36px rgba(0,0,0,0.22);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.mp-kpi:hover {
  border-color: rgba(56,189,248,0.4);
  transform: translateY(-2px);
}
.mp-kpi .mp-kpi-value { color: #e0f2fe; }
.mp-kpi .mp-kpi-badge {
  color: var(--mp-sky);
  background: var(--mp-sky-soft);
  border-color: rgba(56,189,248,0.28);
}
.mp-kpi-accent {
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(245,158,11,0.14), transparent 55%),
    linear-gradient(160deg, #1c1c22 0%, #121216 100%);
  border-color: rgba(245,158,11,0.22);
}
.mp-kpi-accent .mp-kpi-value { color: #fde68a; }
.mp-kpi-accent .mp-kpi-badge {
  color: var(--mp-amber);
  background: var(--mp-amber-soft);
  border-color: rgba(245,158,11,0.28);
}
.mp-kpi-today {
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(250,204,21,0.14), transparent 55%),
    linear-gradient(160deg, #1a1810 0%, #101014 100%);
  border-color: rgba(250,204,21,0.22);
}
.mp-kpi-today .mp-kpi-value { color: #fef08a; }
.mp-kpi-today .mp-kpi-badge {
  color: #facc15;
  background: rgba(250,204,21,0.16);
  border-color: rgba(250,204,21,0.28);
}
.mp-kpi-today:hover { border-color: rgba(250,204,21,0.4); }
.mp-kpi-week {
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(34,197,94,0.14), transparent 55%),
    linear-gradient(160deg, #121a16 0%, #101014 100%);
  border-color: rgba(34,197,94,0.22);
}
.mp-kpi-week .mp-kpi-value { color: #bbf7d0; }
.mp-kpi-week .mp-kpi-badge {
  color: #4ade80;
  background: rgba(34,197,94,0.16);
  border-color: rgba(34,197,94,0.28);
}
.mp-kpi-week:hover { border-color: rgba(34,197,94,0.4); }

.mp-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.mp-kpi-label {
  color: var(--mp-muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mp-kpi-badge {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--mp-line);
  color: #fff;
  font-size: 1rem;
}
.mp-kpi-value {
  margin: 0;
  font-family: var(--mp-display);
  font-size: clamp(1.25rem, 1.1vw + 0.65rem, 1.85rem);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.mp-kpi-meta {
  margin: 0.45rem 0 0;
  color: var(--mp-faint);
  font-size: 0.85rem;
}

.mp-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.mp-panel-title {
  margin: 0 !important;
  font-size: 1.15rem !important;
  line-height: 1.2;
  color: #fff !important;
}
.mp-panel-sub {
  margin: 0.3rem 0 0;
  color: var(--mp-faint);
  font-size: 0.82rem;
}
.mp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #7dd3fc !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  white-space: nowrap;
  margin-top: 0.15rem;
}
.mp-link:hover { color: #e0f2fe !important; }

.mp-chart-wrap { position: relative; }
.mp-chart-panel {
  padding: 0.75rem 0.9rem !important;
  margin-bottom: 0.5rem !important;
}
.mp-chart-panel .mp-panel-head {
  margin-bottom: 0.45rem;
}
.mp-chart-panel .mp-panel-title {
  font-size: 0.98rem !important;
}
.mp-chart-panel .mp-panel-sub {
  font-size: 0.75rem;
}
.mp-chart-panel .mp-pill {
  padding: 0.28rem 0.55rem;
  font-size: 0.7rem;
}
.mp-chart-panel-neon {
  background: linear-gradient(160deg, #14141c 0%, #0e0e14 100%) !important;
}
.mp-chart-panel-yellow {
  border-color: rgba(250,204,21,0.35) !important;
  background:
    radial-gradient(480px 180px at 8% 0%, rgba(250,204,21,0.16), transparent 55%),
    linear-gradient(160deg, #18160f 0%, #0e0e14 100%) !important;
}
.mp-chart-panel-green {
  border-color: rgba(34,197,94,0.35) !important;
  background:
    radial-gradient(480px 180px at 8% 0%, rgba(34,197,94,0.16), transparent 55%),
    linear-gradient(160deg, #0f1814 0%, #0e0e14 100%) !important;
}
.mp-chart-panel-purple {
  border-color: rgba(167,139,250,0.35) !important;
  background:
    radial-gradient(480px 180px at 8% 0%, rgba(167,139,250,0.16), transparent 55%),
    linear-gradient(160deg, #161336 0%, #0e0e14 100%) !important;
}
.mp-chart-doughnut { max-width: 420px; margin: 0 auto; }

.mp-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--mp-line);
  background: rgba(255,255,255,0.03);
  color: var(--mp-muted);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.mp-source-block {
  margin-top: 1rem;
}
.mp-source-label {
  display: block;
  margin-bottom: 0.55rem;
  color: #7dd3fc;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.mp-source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mp-source-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--mp-soft);
  font-size: 0.8rem;
}
.mp-source-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.mp-source-chip b {
  color: #fff;
  font-weight: 600;
  max-width: 9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-source-chip em {
  font-style: normal;
  color: #7dd3fc;
  font-variant-numeric: tabular-nums;
}
.mp-source-empty {
  color: var(--mp-faint);
  font-size: 0.85rem;
}
.mp-cat-panel { margin-bottom: 1.15rem; }
.mp-cat-head-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mp-cat-toggle {
  position: relative;
  z-index: 3;
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.22);
  gap: 0.15rem;
  pointer-events: auto;
}
.mp-cat-toggle-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: var(--mp-soft);
  font-family: var(--mp-font);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
  pointer-events: auto;
  transition: background .15s ease, color .15s ease;
}
.mp-cat-toggle-btn:hover { color: #fff; }
.mp-cat-toggle-btn.is-active {
  background: rgba(56,189,248,0.18);
  color: #e0f2fe;
  box-shadow: inset 0 0 0 1px rgba(56,189,248,0.35);
}
.mp-cat-panel.is-loading .mp-cat-toggle-btn { opacity: 0.7; }
.mp-cat-grid {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 1.5rem;
  align-items: center;
}
.mp-cat-grid-list { grid-template-columns: 1fr; }
.mp-cat-chart { display: flex; justify-content: center; }
.mp-donut {
  position: relative;
  width: 100%;
  max-width: 220px;
}
.mp-donut canvas { display: block; width: 100% !important; height: auto !important; }
.mp-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  padding: 1rem;
}
.mp-donut-label {
  color: var(--mp-faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mp-donut-value {
  margin-top: 0.2rem;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.mp-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 260px;
  overflow: auto;
  padding-right: 0.25rem;
}
.mp-cat-row { padding-bottom: 0.15rem; }
.mp-cat-row-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.4rem;
}
.mp-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.mp-cat-name {
  flex: 1;
  min-width: 0;
  color: #fff;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-cat-amt {
  color: var(--mp-soft);
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}
.mp-cat-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.mp-cat-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  min-width: 2px;
}
.mp-cat-pct {
  margin-top: 0.28rem;
  color: var(--mp-faint);
  font-size: 0.75rem;
}

.mp-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1rem 1.25rem;
  border: 1px dashed var(--mp-line-2);
  border-radius: 16px;
  background: rgba(255,255,255,0.015);
}
.mp-state-ico {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #1a1a1f;
  border: 1px solid var(--mp-line);
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}
.mp-state-title {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
}
.mp-state-text {
  margin: 0.4rem 0 0;
  max-width: 280px;
  color: var(--mp-faint);
  font-size: 0.88rem;
  line-height: 1.45;
}
.mp-state-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
  padding: 0.65rem 1rem;
  border-radius: 11px;
  background: #fafafa;
  color: #09090b !important;
  text-decoration: none !important;
  font-size: 0.9rem;
}
.mp-state-cta:hover { background: #e4e4e7; color: #09090b !important; }
.mp-state-compact { padding: 1.25rem 0.75rem 1rem; }
.mp-state-compact .mp-state-ico { width: 44px; height: 44px; font-size: 1.05rem; margin-bottom: 0.7rem; }
.mp-state-compact .mp-state-text { max-width: 220px; font-size: 0.82rem; }

.mp-tx-panel .mp-tx-row {
  margin-left: -0.35rem;
  margin-right: -0.35rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.mp-tx-panel .mp-tx-avatar { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; font-size: 0.88rem; }
.mp-tx-panel .mp-tx-amt .tx-amount { font-size: 0.9rem; }

.mp-tx-list { display: flex; flex-direction: column; gap: 0.35rem; }
.mp-tx-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.7rem;
  margin: 0 -0.7rem;
  border-radius: 14px;
  transition: background .15s ease;
}
.mp-tx-row:hover { background: rgba(255,255,255,0.035); }
.mp-tx-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(56,189,248,0.35), #17171b);
  border: 1px solid rgba(56,189,248,0.3);
  color: #e0f2fe;
  font-size: 0.95rem;
}
.mp-tx-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.mp-tx-meta .tx-name {
  color: #fff;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-tx-meta .tx-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--mp-faint);
  font-size: 0.8rem;
}
.mp-tx-cat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 7px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
.mp-tx-amt { flex: 0 0 auto; text-align: right; }
.mp-tx-amt .tx-amount {
  color: #fde68a;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

@media (max-width: 767px) {
  .mp-cat-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .mp-donut { max-width: 200px; margin: 0 auto; }
}

.mp-stat {
  display: flex;
  min-height: 118px;
  overflow: hidden;
  border-radius: var(--mp-radius);
  border: 1px solid var(--mp-line);
  background: linear-gradient(135deg, #17171b, #101014);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
}

.mp-stat-icon {
  width: 92px;
  display: grid;
  place-items: center;
  background: #1f1f24;
  border-right: 1px solid var(--mp-line);
  color: #fff;
  font-size: 1.7rem;
}

.mp-stat-body {
  flex: 1;
  padding: 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mp-stat-value {
  margin: 0 0 0.25rem;
  font-family: var(--mp-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  color: #fff;
}

.mp-stat-label {
  margin: 0;
  color: var(--mp-muted);
  font-size: 0.88rem;
}

.mp-balance {
  background: linear-gradient(160deg, #1c1c22 0%, #121216 100%) !important;
  border: 1px solid var(--mp-line-2) !important;
}

.mp-balance,
.mp-balance p,
.mp-balance .transactiontitle,
.mp-balance .small-font,
.mp-balance .title {
  color: #fff !important;
}

.mp-balance .transactiontitle {
  font-family: var(--mp-display);
  font-size: 2.15rem;
  font-weight: 400;
  margin: 0.4rem 0;
}

.quick-menu { list-style: none; margin: 0; padding: 0; }

.quick-menu li a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.7rem;
  margin: 0 -0.7rem;
  border-radius: 12px;
  border-bottom: 0;
  color: var(--mp-soft) !important;
  text-decoration: none !important;
  transition: background .15s ease, color .15s ease;
}
.quick-menu li + li { margin-top: 0.25rem; }
.quick-menu li a:hover {
  background: rgba(255,255,255,0.04);
  color: #fff !important;
}
.qm-ico {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #1a1a1f;
  border: 1px solid var(--mp-line);
  color: #fff;
  font-size: 1rem;
}
.qm-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.qm-txt strong { color: #fff; font-size: 0.95rem; line-height: 1.2; }
.qm-txt small { color: var(--mp-faint); font-size: 0.78rem; }
.qm-chev { color: var(--mp-faint); font-size: 0.85rem; }

.latestincome { overflow-x: auto; }
.latestincome table { width: 100%; border-collapse: collapse; }
.latestincome thead th {
  padding: 0.55rem 0.35rem 0.85rem;
  border-bottom: 1px solid var(--mp-line);
  color: var(--mp-faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  text-align: left;
}
.latestincome thead th.text-right,
.latestincome tbody td.text-right { text-align: right; }
.latestincome tbody tr td {
  padding: 1rem 0.35rem;
  border-bottom: 1px solid var(--mp-line);
  color: var(--mp-soft);
  vertical-align: middle;
}
.latestincome tbody tr:last-child td { border-bottom: 0; }
.latestincome tbody tr { transition: background .15s ease; }
.latestincome tbody tr:hover td { background: rgba(255,255,255,0.02); }
.tx-name { color: #fff; }
.tx-date { color: var(--mp-muted); font-size: 0.9rem; }
.tx-amount { color: #fff; letter-spacing: -0.01em; }
.mp-empty {
  margin: 1.25rem 0 0.25rem;
  text-align: center;
  color: var(--mp-faint);
  font-size: 0.9rem;
}

.mp-actions .mp-panel-head { margin-bottom: 1rem; }

.mp-action-primary {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  color: #082f49 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(14,165,233,0.28);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.mp-action-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(14,165,233,0.34);
  filter: brightness(1.05);
  color: #082f49 !important;
}
.mp-action-primary-ico {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(8,47,73,0.85);
  color: #e0f2fe;
  font-size: 1.05rem;
}
.mp-action-primary-txt {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.mp-action-primary-txt strong {
  color: #082f49;
  font-size: 1rem;
  line-height: 1.2;
}
.mp-action-primary-txt small {
  color: rgba(8,47,73,0.7);
  font-size: 0.78rem;
}

.mp-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.mp-action-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 92px;
  padding: 0.9rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--mp-line);
  background:
    radial-gradient(180px 90px at 100% 0%, rgba(255,255,255,0.05), transparent 60%),
    linear-gradient(180deg, #16161a 0%, #111115 100%);
  color: var(--mp-soft) !important;
  text-decoration: none !important;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.mp-action-card:hover {
  border-color: var(--mp-line-2);
  transform: translateY(-2px);
  color: #fff !important;
  background:
    radial-gradient(180px 90px at 100% 0%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(180deg, #1a1a1f 0%, #131317 100%);
}
.mp-action-card-ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--mp-sky-soft);
  border: 1px solid rgba(56,189,248,0.28);
  color: var(--mp-sky);
  font-size: 0.95rem;
}
.mp-action-grid .mp-action-card:nth-child(2) .mp-action-card-ico {
  background: var(--mp-amber-soft);
  border-color: rgba(245,158,11,0.28);
  color: var(--mp-amber);
}
.mp-action-grid .mp-action-card:nth-child(3) .mp-action-card-ico {
  background: rgba(167,139,250,0.16);
  border-color: rgba(167,139,250,0.28);
  color: #c4b5fd;
}
.mp-action-grid .mp-action-card:nth-child(4) .mp-action-card-ico {
  background: rgba(251,113,133,0.14);
  border-color: rgba(251,113,133,0.28);
  color: #fda4af;
}
.mp-action-card strong {
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.2;
}
.mp-action-card small {
  color: var(--mp-faint);
  font-size: 0.74rem;
  margin-top: auto;
}

.border-right { border-right: 0 !important; }
.background-blue,
.background-green,
.background-grey,
.background-red,
.home-icon-content { background: transparent !important; }
.color-white { color: var(--mp-ink) !important; }
.text-muted,
.small-font { color: var(--mp-muted) !important; }
.transactiontitle {
  color: var(--mp-ink) !important;
  font-family: var(--mp-display) !important;
  font-weight: 400 !important;
}
.text-success,
.text-info,
.text-primary,
.text-blue-sky,
.text-green,
.netincome { color: #7dd3fc !important; }
.text-warning { color: #fbbf24 !important; }
.text-danger,
.text-red { color: #fca5a5 !important; }
.alert-success {
  background: rgba(56,189,248,0.12) !important;
  border-color: rgba(56,189,248,0.35) !important;
  color: #e0f2fe !important;
}
.alert-warning {
  background: rgba(245,158,11,0.12) !important;
  border-color: rgba(245,158,11,0.35) !important;
  color: #fde68a !important;
}

/* Calendar */
.mp-stat-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mp-stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.mp-stat-card-top .mp-stat-card-label { margin-bottom: 0; }
.mp-stat-chip {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 0.95rem;
}
.mp-stat-chip-sky {
  color: var(--mp-sky);
  background: var(--mp-sky-soft);
  border: 1px solid rgba(56, 189, 248, 0.28);
}
.mp-stat-chip-amber {
  color: var(--mp-amber);
  background: var(--mp-amber-soft);
  border: 1px solid rgba(245, 158, 11, 0.28);
}
.mp-stat-income {
  border-color: rgba(56, 189, 248, 0.22);
  background:
    radial-gradient(280px 120px at 100% 0%, rgba(56,189,248,0.14), transparent 55%),
    linear-gradient(160deg, #16161a 0%, #101014 100%);
}
.mp-stat-income .mp-stat-card-value { color: #e0f2fe; }
.mp-stat-balance {
  border-color: rgba(245, 158, 11, 0.22);
  background:
    radial-gradient(280px 120px at 100% 0%, rgba(245,158,11,0.14), transparent 55%),
    linear-gradient(160deg, #1c1c22 0%, #121216 100%);
}
.mp-stat-balance .mp-stat-card-value { color: #fde68a; }

.mp-cal-pulse {
  display: block;
  grid-template-columns: unset;
  margin-bottom: 1.15rem;
  padding: 1.35rem 1.4rem;
}
.mp-cal-pulse-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.85fr);
  gap: 1.35rem 1.75rem;
  align-items: start;
}
.mp-cal-pulse-story { min-width: 0; }
.mp-cal-pulse-story .mp-pulse-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}
.mp-cal-pulse-story .mp-pulse-line {
  margin: 0 0 1rem;
  max-width: 36rem;
}
.mp-cal-week-card {
  margin-bottom: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.18);
}
.mp-cal-week-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.mp-cal-week-head span {
  color: var(--mp-faint);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.mp-cal-week-head strong {
  color: #fde68a;
  font-size: 0.85rem;
  font-weight: 600;
}
.mp-cal-week-dots {
  display: flex;
  gap: 0.65rem;
  margin: 0;
  flex-wrap: wrap;
}
.mp-cal-week-dots span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.mp-cal-week-dots i {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
}
.mp-cal-week-dots i.is-on {
  background: #fbbf24;
  border-color: rgba(251,191,36,0.55);
  box-shadow: 0 0 10px rgba(251,191,36,0.35);
}
.mp-cal-week-dots i.is-today {
  background: #fbbf24;
  border-color: rgba(251,191,36,0.75);
  box-shadow: 0 0 12px rgba(251,191,36,0.5);
  outline: 1px solid rgba(251,191,36,0.65);
  outline-offset: 2px;
}
.mp-cal-week-dots b {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--mp-faint);
  letter-spacing: 0.04em;
}
.mp-cal-week-dots span:has(i.is-on) b,
.mp-cal-week-dots span.is-today b { color: #fcd34d; }
.mp-cal-pulse .mp-mission {
  max-width: none;
  margin: 0;
}
.mp-cal-pulse .mp-mission-meta em { color: #7dd3fc; }
.mp-cal-pulse-side {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
  padding: 1.05rem 1.05rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(280px 140px at 100% 0%, rgba(56,189,248,0.1), transparent 55%),
    radial-gradient(240px 120px at 0% 100%, rgba(245,158,11,0.07), transparent 50%),
    linear-gradient(165deg, #16161b 0%, #101014 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.mp-cal-side-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mp-cal-side-head .mp-cal-kicker { margin: 0; }
.mp-cal-side-head strong {
  color: #fff;
  font-family: var(--mp-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.mp-cal-side-stats {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.mp-cal-month-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(56,189,248,0.22);
  background:
    radial-gradient(180px 90px at 100% 0%, rgba(56,189,248,0.14), transparent 55%),
    rgba(255,255,255,0.02);
}
.mp-cal-month-ico {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(56,189,248,0.14);
  border: 1px solid rgba(56,189,248,0.28);
  color: #7dd3fc;
  font-size: 0.95rem;
}
.mp-cal-month-stat > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.mp-cal-month-stat span:not(.mp-cal-month-ico) {
  color: var(--mp-faint);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mp-cal-month-stat strong {
  color: #e0f2fe;
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.mp-cal-month-stat-amber {
  border-color: rgba(245,158,11,0.24);
  background:
    radial-gradient(180px 90px at 100% 0%, rgba(245,158,11,0.14), transparent 55%),
    rgba(255,255,255,0.02);
}
.mp-cal-month-stat-amber .mp-cal-month-ico {
  background: rgba(245,158,11,0.14);
  border-color: rgba(245,158,11,0.28);
  color: #fbbf24;
}
.mp-cal-month-stat-amber strong { color: #fde68a; }
.mp-cal-sources {
  margin-top: 0.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mp-cal-sources-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.mp-cal-sources-head .mp-source-label { margin: 0; }
.mp-cal-sources-meta {
  color: var(--mp-faint);
  font-size: 0.72rem;
}
.mp-cal-source-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.mp-cal-source-row { min-width: 0; }
.mp-cal-source-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}
.mp-cal-source-rank {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  color: var(--mp-faint);
  font-size: 0.68rem;
  font-weight: 700;
}
.mp-cal-source-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.mp-cal-source-name {
  flex: 1;
  min-width: 0;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-cal-source-amt {
  color: #fde68a;
  font-size: 0.84rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mp-cal-source-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.mp-cal-source-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  min-width: 2px;
}
.mp-cal-source-pct {
  margin-top: 0.22rem;
  color: var(--mp-faint);
  font-size: 0.72rem;
}
.mp-cal-sources .mp-source-empty {
  display: block;
  padding: 0.55rem 0;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .mp-cal-pulse-grid { grid-template-columns: 1fr; }
  .mp-cal-side-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
}
@media (max-width: 575px) {
  .mp-cal-side-stats { grid-template-columns: 1fr; }
}
.mp-calendar-panel {
  padding: 0 !important;
  overflow: visible !important;
  border-color: rgba(56, 189, 248, 0.14) !important;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(56,189,248,0.07), transparent 55%),
    linear-gradient(160deg, #141418 0%, #101014 100%) !important;
}
.mp-cal-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.35rem 1.05rem;
  border-bottom: 1px solid var(--mp-line);
}
.mp-cal-kicker {
  margin: 0 0 0.3rem;
  color: #7dd3fc;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mp-cal-panel-head .mp-panel-title { margin: 0 !important; }
.mp-cal-panel-head .mp-panel-sub { margin: 0.35rem 0 0; }
.mp-cal-add {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(56,189,248,0.3);
  background: rgba(56,189,248,0.12);
  color: #e0f2fe !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.mp-cal-add:hover {
  background: rgba(56,189,248,0.2);
  border-color: rgba(56,189,248,0.5);
  transform: translateY(-1px);
  color: #fff !important;
}
.mp-cal-shell {
  padding: 1rem 1.15rem 1.25rem;
  overflow: visible;
  min-width: 0;
}
#mycalendar {
  min-height: 560px;
  width: 100%;
  min-width: 0;
}

.fc {
  font-family: var(--mp-font) !important;
  color: var(--mp-ink) !important;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
}
.fc,
.fc-theme-standard td,
.fc-theme-standard th,
.fc-scrollgrid,
.fc-theme-standard .fc-scrollgrid {
  border-color: rgba(255,255,255,0.07) !important;
}
.fc-theme-standard .fc-scrollgrid {
  background: transparent !important;
}
.fc-theme-standard td,
.fc-theme-standard th {
  background: transparent !important;
}
.fc .fc-scrollgrid {
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 14px !important;
  width: 100% !important;
}
.fc .fc-toolbar {
  display: flex !important;
  gap: 0.75rem;
  margin-bottom: 1rem !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.fc .fc-toolbar-chunk {
  display: flex !important;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.fc .fc-toolbar-title {
  color: #fff !important;
  font-family: var(--mp-display) !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em;
  margin: 0 !important;
}
.fc .fc-button-primary {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: var(--mp-soft) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  text-transform: none !important;
  font-weight: 500 !important;
  padding: 0.45rem 0.8rem !important;
  line-height: 1.2 !important;
}
.fc .fc-button-primary:focus {
  box-shadow: none !important;
  outline: none !important;
}
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:hover {
  background: rgba(56, 189, 248, 0.16) !important;
  border-color: rgba(56, 189, 248, 0.42) !important;
  color: #e0f2fe !important;
}
.fc .fc-today-button:not(:disabled) {
  background: rgba(56,189,248,0.16) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #e0f2fe !important;
}
.fc .fc-button-primary:disabled {
  opacity: 0.4 !important;
}
.fc .fc-button-group {
  display: inline-flex !important;
  gap: 0.3rem !important;
}
.fc .fc-button-group > .fc-button {
  margin: 0 !important;
}
.fc .fc-col-header-cell {
  background: rgba(255,255,255,0.025) !important;
  padding: 0.7rem 0 !important;
}
.fc .fc-col-header-cell-cushion {
  color: #94a3b8 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600 !important;
  padding: 0 !important;
}
.fc .fc-daygrid-day {
  vertical-align: top !important;
  transition: background .15s ease;
}
.fc .fc-daygrid-day:hover {
  background: rgba(255,255,255,0.02) !important;
}
.fc .fc-daygrid-day-top {
  display: flex !important;
  justify-content: flex-end !important;
  padding: 0.35rem 0.4rem 0 !important;
}
.fc .fc-daygrid-day-number,
.fc a.fc-daygrid-day-number {
  color: var(--mp-soft) !important;
  font-weight: 500 !important;
  padding: 0.2rem 0.45rem !important;
  font-size: 0.85rem !important;
  font-variant-numeric: tabular-nums;
  text-decoration: none !important;
  float: none !important;
}
.fc .fc-daygrid-day.fc-day-today {
  background: rgba(56, 189, 248, 0.06) !important;
}
.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number,
.fc .fc-daygrid-day.fc-day-today a.fc-daygrid-day-number {
  color: #082f49 !important;
  background: #38bdf8;
  border-radius: 999px;
  min-width: 1.65rem;
  text-align: center;
  font-weight: 700 !important;
}
.fc .fc-day-other {
  background: rgba(0,0,0,0.1) !important;
}
.fc .fc-day-other .fc-daygrid-day-number,
.fc .fc-day-other a.fc-daygrid-day-number {
  color: var(--mp-faint) !important;
  opacity: 0.55;
}
.fc .fc-daygrid-day-frame {
  min-height: 104px !important;
  min-width: 0 !important;
}
.fc .fc-daygrid-day-events {
  margin-top: 0.1rem !important;
  min-height: 0 !important;
  padding: 0 0.15rem 0.3rem !important;
}
.fc .fc-daygrid-event-harness {
  margin-top: 0.15rem !important;
}
.fc .fc-daygrid-event {
  border: 0 !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.fc .fc-daygrid-block-event .fc-event-main,
.fc .fc-daygrid-dot-event {
  padding: 0 !important;
  color: inherit !important;
}
.mp-cal-event {
  --mp-cal-accent: #38bdf8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.3rem 0.4rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  overflow: hidden;
}
.mp-cal-event-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 6px;
  background: var(--mp-cal-accent);
}
.mp-cal-event-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.02rem;
  overflow: hidden;
}
.mp-cal-event-title {
  font-size: 0.7rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}
.mp-cal-event-amt {
  font-size: 0.8rem;
  color: #fde68a;
  letter-spacing: -0.02em;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc .fc-daygrid-more-link {
  color: #7dd3fc !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  margin: 0.1rem 0.25rem !important;
  float: none !important;
}
.fc .fc-timegrid-slot,
.fc .fc-timegrid-axis {
  border-color: rgba(255,255,255,0.05) !important;
}
.fc .fc-timegrid-now-indicator-line {
  border-color: #f59e0b !important;
}
.fc .fc-scrollgrid-section-sticky > * {
  background: #121215 !important;
}
.fc .fc-popover {
  z-index: 20 !important;
  background: #151519 !important;
  border: 1px solid var(--mp-line-2) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45) !important;
}
.fc .fc-popover-header {
  background: rgba(255,255,255,0.04) !important;
  color: #fff !important;
  border-radius: 14px 14px 0 0 !important;
}
.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
  min-height: 2.2em !important;
}

.datepicker {
  z-index: 2050 !important;
  padding: 0.65rem !important;
  border-radius: 14px !important;
  border: 1px solid var(--mp-line-2) !important;
  background: #141418 !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45) !important;
  color: var(--mp-ink) !important;
}
.datepicker table tr td,
.datepicker table tr th {
  background: transparent !important;
  color: var(--mp-ink) !important;
  border-radius: 8px !important;
}
.datepicker table tr td.day:hover,
.datepicker table tr td.focused {
  background: rgba(56,189,248,0.16) !important;
  color: #e0f2fe !important;
}
.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover {
  background: #0ea5e9 !important;
  color: #082f49 !important;
  text-shadow: none !important;
}
.datepicker table tr td.today,
.datepicker table tr td.today:hover {
  background: rgba(245,158,11,0.22) !important;
  color: #fde68a !important;
}
.datepicker table tr td.today.active {
  background: #0ea5e9 !important;
  color: #082f49 !important;
}
.datepicker .datepicker-switch,
.datepicker .prev,
.datepicker .next,
.datepicker tfoot tr th {
  color: #7dd3fc !important;
}

/* Login */
.mp-login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(800px 400px at 20% 10%, rgba(255,255,255,0.06), transparent 50%),
    radial-gradient(700px 360px at 90% 90%, rgba(255,255,255,0.04), transparent 45%),
    #09090b;
}

.mp-login-page::before { display: none; }

.mp-login-shell {
  width: min(420px, 100%);
  padding: 2.4rem 2rem;
  border-radius: 24px;
  background: linear-gradient(180deg, #151519, #101014);
  border: 1px solid var(--mp-line-2);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  color: var(--mp-ink);
}

.mp-login-brand { text-align: center; margin-bottom: 1.8rem; }
.mp-login-brand .mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 0.9rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(56,189,248,0.3), #17171b);
  border: 1px solid rgba(56,189,248,0.35);
  font-family: var(--mp-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: #e0f2fe;
  box-shadow: 0 0 28px rgba(56,189,248,0.15);
}
.mp-login-brand h1 {
  margin: 0;
  font-family: var(--mp-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: #fff;
}
.mp-login-brand p {
  margin: 0.4rem 0 0;
  color: var(--mp-muted);
}
.mp-login-shell label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--mp-soft);
  font-size: 0.88rem;
}
.mp-remember {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  margin: 0.15rem 0 1.15rem !important;
  color: var(--mp-soft) !important;
  font-size: 0.9rem !important;
  cursor: pointer;
  user-select: none;
}
.mp-remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #38bdf8;
  cursor: pointer;
}
.mp-login-shell .form-control {
  background: #0b0b0e !important;
  margin-bottom: 0.2rem;
}
.mp-login-shell .btn-login {
  width: 100%;
  margin-top: 0.75rem;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  color: #082f49;
  font-weight: 400;
  font-family: var(--mp-font);
  box-shadow: 0 10px 24px rgba(14,165,233,0.25);
}
.mp-login-shell .btn-login:hover { filter: brightness(1.08); }

/* Tabs */
.mp-tabs {
  display: flex;
  gap: 0.4rem;
  border: 0 !important;
  margin: 0 0 1.15rem !important;
  padding: 0.3rem;
  border-radius: 14px;
  background: #0b0b0e;
  border: 1px solid var(--mp-line) !important;
}
.mp-tabs .nav-item { margin: 0; }
.mp-tabs .nav-link {
  border: 0 !important;
  border-radius: 10px !important;
  padding: 0.7rem 1.05rem !important;
  color: var(--mp-muted) !important;
  background: transparent !important;
  font-size: 0.92rem;
}
.mp-tabs .nav-link:hover { color: #fff !important; }
.mp-tabs .nav-link.active {
  background: rgba(56,189,248,0.16) !important;
  color: #e0f2fe !important;
  box-shadow: inset 0 0 0 1px rgba(56,189,248,0.25);
}
.mp-tab-content { padding-top: 0.15rem; }
.mp-table-panel .mp-panel-head {
  align-items: center;
  margin-bottom: 1rem;
}
.mp-table .label {
  display: inline-block;
  min-width: 52px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Reports hub */
.mp-report-section { margin-top: 0.25rem; }
.mp-stat-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 991px) {
  .mp-stat-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mp-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: none;
}
.mp-report-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 110px;
  padding: 1.2rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--mp-line);
  background:
    radial-gradient(320px 140px at 100% 0%, rgba(255,255,255,0.06), transparent 55%),
    linear-gradient(160deg, #16161a 0%, #101014 100%);
  color: var(--mp-soft) !important;
  text-decoration: none !important;
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.mp-report-card-featured {
  flex-direction: column;
  align-items: flex-start;
  min-height: 210px;
  padding: 1.4rem 1.4rem 1.25rem;
  gap: 1.1rem;
  border-color: rgba(56,189,248,0.22);
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(56,189,248,0.16), transparent 55%),
    radial-gradient(360px 160px at 100% 100%, rgba(56,189,248,0.06), transparent 50%),
    linear-gradient(155deg, #17171c 0%, #101014 100%);
}
.mp-report-card-amber {
  border-color: rgba(245,158,11,0.24);
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(245,158,11,0.14), transparent 55%),
    radial-gradient(360px 160px at 100% 100%, rgba(245,158,11,0.06), transparent 50%),
    linear-gradient(155deg, #17171c 0%, #101014 100%);
}
.mp-report-glow {
  position: absolute;
  inset: auto -15% -45% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.16), transparent 68%);
  pointer-events: none;
}
.mp-report-card-amber .mp-report-glow {
  background: radial-gradient(circle, rgba(245,158,11,0.16), transparent 68%);
}
.mp-report-card:hover {
  border-color: rgba(56,189,248,0.4);
  transform: translateY(-3px);
  color: #fff !important;
  box-shadow: 0 16px 36px rgba(0,0,0,0.28);
}
.mp-report-card-amber:hover { border-color: rgba(245,158,11,0.45); }
.mp-report-ico {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--mp-sky-soft);
  border: 1px solid rgba(56,189,248,0.28);
  color: var(--mp-sky);
  font-size: 1.2rem;
}
.mp-report-card-amber .mp-report-ico,
.mp-report-grid .mp-report-card:nth-child(2) .mp-report-ico {
  background: var(--mp-amber-soft);
  border-color: rgba(245,158,11,0.28);
  color: var(--mp-amber);
}
.mp-report-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.mp-report-tag {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 0.15rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.25);
}
.mp-report-card-amber .mp-report-tag {
  color: #fcd34d;
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.28);
}
.mp-report-body strong {
  color: #fff;
  font-family: var(--mp-display);
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.mp-report-body small {
  color: var(--mp-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.mp-report-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  color: #7dd3fc;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mp-report-card-amber .mp-report-cta { color: #fbbf24; }
.mp-report-card:hover .mp-report-cta { gap: 0.55rem; }
.mp-report-chev {
  color: var(--mp-faint);
  font-size: 0.95rem;
}
@media (max-width: 767px) {
  .mp-report-grid { grid-template-columns: 1fr; }
}

/* Income list / tables */
.mp-page.mp-page-wide {
  width: 100%;
  max-width: none;
}
.mp-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.mp-stat-card {
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--mp-line);
  background:
    radial-gradient(280px 120px at 100% 0%, rgba(255,255,255,0.06), transparent 55%),
    linear-gradient(160deg, #16161a 0%, #101014 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
  transition: border-color .15s ease, transform .15s ease;
}
.mp-stat-card:hover {
  border-color: var(--mp-line-2);
  transform: translateY(-2px);
}
.mp-stat-card-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--mp-faint);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.mp-stat-card-value {
  margin: 0;
  color: #e0f2fe;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.mp-stat-grid .mp-stat-card:nth-child(2) .mp-stat-card-value,
.mp-stat-grid .mp-stat-card:nth-child(4) .mp-stat-card-value { color: #fde68a; }
.mp-stat-grid .mp-stat-card:nth-child(1),
.mp-stat-grid .mp-stat-card:nth-child(3) {
  border-color: rgba(56,189,248,0.2);
  background:
    radial-gradient(280px 120px at 100% 0%, rgba(56,189,248,0.12), transparent 55%),
    linear-gradient(160deg, #16161a 0%, #101014 100%);
}
.mp-stat-grid .mp-stat-card:nth-child(2),
.mp-stat-grid .mp-stat-card:nth-child(4) {
  border-color: rgba(245,158,11,0.2);
  background:
    radial-gradient(280px 120px at 100% 0%, rgba(245,158,11,0.12), transparent 55%),
    linear-gradient(160deg, #16161a 0%, #101014 100%);
}

.mp-table-panel { padding: 1.25rem 1.35rem 1.1rem !important; overflow: visible !important; }
.mp-table-wrap { overflow-x: auto; }
.mp-table,
table.dataTable.mp-table {
  width: 100% !important;
  margin: 0 !important;
  background: transparent !important;
  color: var(--mp-ink) !important;
  border-collapse: collapse !important;
}
.mp-table thead th,
table.dataTable.mp-table thead th {
  border-top: 0 !important;
  border-bottom: 1px solid var(--mp-line) !important;
  color: var(--mp-faint) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 0.75rem !important;
  background: transparent !important;
}
.mp-table tbody td,
table.dataTable.mp-table tbody td {
  border-top: 0 !important;
  border-bottom: 1px solid var(--mp-line) !important;
  color: var(--mp-soft) !important;
  padding: 1rem 0.75rem !important;
  vertical-align: middle !important;
  background: transparent !important;
}
.mp-table tbody tr:hover td,
table.dataTable.mp-table tbody tr:hover td {
  background: rgba(56,189,248,0.04) !important;
}
.mp-tx-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  max-width: 100%;
}
.mp-tx-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mp-tx-avatar-sm {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 650;
}
.mp-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.22rem 0.55rem 0.22rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--mp-soft);
  font-size: 0.82rem;
  line-height: 1.2;
}
.mp-cat-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}
.mp-cat-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mp-table .details-control,
table.dataTable td.details-control {
  width: 36px !important;
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-color: transparent !important;
}
.mp-table tr.details td.details-control,
table.dataTable tr.details td.details-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='2'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
}

/* DataTables chrome */
.dataTables_wrapper {
  color: var(--mp-muted) !important;
}
.dataTables_wrapper .mp-dt-top,
.dataTables_wrapper .mp-dt-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0 0 1rem;
}
.dataTables_wrapper .mp-dt-bottom { margin: 1rem 0 0; }
.dataTables_wrapper .mp-dt-buttons,
.dataTables_wrapper .dt-buttons {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.4rem;
  float: none !important;
}
.dataTables_wrapper .mp-dt-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length {
  float: none !important;
  margin: 0 !important;
  color: var(--mp-muted) !important;
}
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  margin: 0 !important;
  color: var(--mp-muted) !important;
  font-weight: 400 !important;
}
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0.45rem 0.8rem !important;
  border-radius: 10px !important;
  border: 1px solid var(--mp-line-2) !important;
  background: #0b0b0e !important;
  color: #fff !important;
  box-shadow: none !important;
}
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  border-color: rgba(56,189,248,0.65) !important;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.14) !important;
  outline: none !important;
}
.dataTables_wrapper .dt-button,
.dataTables_wrapper .dt-buttons .btn,
.dt-button {
  float: none !important;
  margin: 0 !important;
  min-height: 38px !important;
  padding: 0.45rem 0.9rem !important;
  border-radius: 10px !important;
  border: 1px solid var(--mp-line-2) !important;
  background: #17171b !important;
  color: var(--mp-soft) !important;
  box-shadow: none !important;
  font-size: 0.85rem !important;
}
.dataTables_wrapper .dt-button:hover,
.dataTables_wrapper .dt-buttons .btn:hover,
.dt-button:hover {
  background: rgba(56,189,248,0.14) !important;
  border-color: rgba(56,189,248,0.35) !important;
  color: #e0f2fe !important;
  transform: none !important;
}
.dataTables_wrapper .dataTables_info {
  float: none !important;
  padding: 0 !important;
  color: var(--mp-faint) !important;
}
.dataTables_wrapper .dataTables_paginate {
  float: none !important;
  margin: 0 !important;
}
.dataTables_wrapper .dataTables_paginate .pagination {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate .page-item {
  display: inline-flex !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button a,
.dataTables_wrapper .dataTables_paginate .page-item .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button .page-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  margin: 0 !important;
  padding: 0.4rem 0.85rem !important;
  border-radius: 10px !important;
  border: 1px solid var(--mp-line-2) !important;
  background: #17171b !important;
  color: var(--mp-soft) !important;
  box-shadow: none !important;
  text-decoration: none !important;
  line-height: 1 !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.active a,
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.current a,
.dataTables_wrapper .dataTables_paginate .paginate_button.active .page-link {
  background: rgba(56,189,248,0.18) !important;
  border-color: rgba(56,189,248,0.4) !important;
  color: #e0f2fe !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:not(.disabled):not(.active) a:hover,
.dataTables_wrapper .dataTables_paginate .page-item:not(.disabled):not(.active) .page-link:hover {
  background: rgba(56,189,248,0.12) !important;
  border-color: rgba(56,189,248,0.35) !important;
  color: #e0f2fe !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled a,
.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled .page-link {
  opacity: 0.4 !important;
  background: #121215 !important;
  border-color: var(--mp-line) !important;
  color: var(--mp-faint) !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}
/* DataTables sort icons — CSS arrows (no Glyphicons) */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
  background-image: none !important;
  cursor: pointer;
  position: relative;
  padding-right: 1.35rem !important;
}
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc_disabled:after {
  content: "" !important;
  position: absolute !important;
  right: 0.35rem !important;
  top: 50% !important;
  bottom: auto !important;
  display: block !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  font-family: inherit !important;
  opacity: 1 !important;
  border-style: solid !important;
  transform: translateY(-50%);
}
table.dataTable thead .sorting:after {
  border-width: 4px 3.5px 0 3.5px !important;
  border-color: rgba(161,161,170,0.55) transparent transparent transparent !important;
  transform: translateY(-15%);
  box-shadow: 0 -7px 0 -3.5px transparent, 0 -7px 0 -3.5px;
}
/* dual chevron for unsorted */
table.dataTable thead .sorting:before {
  content: "" !important;
  position: absolute !important;
  right: 0.35rem !important;
  top: 50% !important;
  width: 0 !important;
  height: 0 !important;
  border-style: solid !important;
  border-width: 0 3.5px 4px 3.5px !important;
  border-color: transparent transparent rgba(161,161,170,0.55) transparent !important;
  transform: translateY(-120%);
  opacity: 1 !important;
}
table.dataTable thead .sorting:after {
  border-width: 4px 3.5px 0 3.5px !important;
  border-color: rgba(161,161,170,0.55) transparent transparent transparent !important;
  transform: translateY(35%);
}
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:before {
  content: none !important;
  display: none !important;
}
table.dataTable thead .sorting_asc:after {
  border-width: 0 4px 5px 4px !important;
  border-color: transparent transparent #38bdf8 transparent !important;
  transform: translateY(-55%);
  opacity: 1 !important;
}
table.dataTable thead .sorting_desc:after {
  border-width: 5px 4px 0 4px !important;
  border-color: #f59e0b transparent transparent transparent !important;
  transform: translateY(-35%);
  opacity: 1 !important;
}
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc_disabled:after {
  opacity: 0.25 !important;
}
.mp-amount-cell {
  color: #fde68a !important;
  white-space: nowrap;
}

/* Compact motivation strips (income / transaction) */
.mp-motivate {
  position: relative;
  margin-bottom: 1.15rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--mp-radius);
  border: 1px solid rgba(56,189,248,0.2);
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(56,189,248,0.14), transparent 55%),
    radial-gradient(320px 140px at 100% 100%, rgba(245,158,11,0.1), transparent 50%),
    linear-gradient(145deg, #15151a 0%, #0f0f13 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease, border-color .2s ease;
  overflow: hidden;
}
.mp-motivate.is-ready {
  opacity: 1;
  transform: translateY(0);
}
.mp-motivate.is-win { border-color: rgba(34,197,94,0.35); }
.mp-motivate-slim { padding: 0.95rem 1.15rem; }
.mp-motivate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.mp-motivate-eyebrow {
  margin: 0;
  color: #7dd3fc;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mp-motivate-title {
  display: block;
  margin: 0 0 0.35rem;
  color: #fff;
  font-family: var(--mp-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.mp-motivate-line {
  margin: 0;
  color: var(--mp-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.mp-mission-compact {
  margin-top: 0.9rem;
  max-width: 520px;
}
.mp-list-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: #e0f2fe;
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.28);
  white-space: nowrap;
}
.mp-goal-list-panel .mp-panel-head {
  gap: 0.75rem;
}

/* Goals progress + name cells */
.mp-goal-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.mp-goal-avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e0f2fe;
  background: rgba(56,189,248,0.14);
  border: 1px solid rgba(56,189,248,0.28);
}
.mp-goal-name.is-hot .mp-goal-avatar {
  color: #fde68a;
  background: rgba(245,158,11,0.14);
  border-color: rgba(245,158,11,0.3);
}
.mp-goal-name.is-done .mp-goal-avatar {
  color: #bbf7d0;
  background: rgba(34,197,94,0.14);
  border-color: rgba(34,197,94,0.3);
}
.mp-goal-name.is-new .mp-goal-avatar {
  color: var(--mp-soft);
  background: rgba(255,255,255,0.05);
  border-color: var(--mp-line);
}
.mp-goal-name-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.mp-goal-name-copy strong {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-goal-name-copy small {
  color: var(--mp-faint);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mp-goal-name.is-done .mp-goal-name-copy small { color: #86efac; }
.mp-goal-name.is-hot .mp-goal-name-copy small { color: #fbbf24; }
.mp-goal-name.is-live .mp-goal-name-copy small { color: #7dd3fc; }
.mp-goal-date {
  color: var(--mp-soft);
  font-variant-numeric: tabular-nums;
}
.mp-goal-progress {
  min-width: 180px;
  max-width: 280px;
}
.mp-goal-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin-bottom: 0.45rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.mp-goal-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8 0%, #f59e0b 100%);
  box-shadow: 0 0 12px rgba(56,189,248,0.35);
  transition: width .6s ease;
}
.mp-goal-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.2;
}
.mp-goal-saved { color: #7dd3fc; }
.mp-goal-left { color: var(--mp-faint); }
.mp-goal-badge {
  display: inline-flex;
  align-items: center;
  margin-right: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: #bbf7d0;
  background: rgba(34,197,94,0.14);
  border: 1px solid rgba(34,197,94,0.28);
  vertical-align: middle;
}
.mp-action-cell a.mp-goal-deposit { color: #86efac !important; }
.mp-action-cell a.mp-goal-deposit:hover {
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.3);
}

.mp-action-cell a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 0.2rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--mp-line);
  color: #7dd3fc !important;
  text-decoration: none !important;
}
.mp-action-cell a.text-danger,
.mp-action-cell a#btndelete { color: #fca5a5 !important; }
.mp-action-cell a:hover {
  background: rgba(56,189,248,0.12);
  border-color: rgba(56,189,248,0.3);
}
.table-detail,
.table-detail td {
  background: rgba(255,255,255,0.02) !important;
  color: var(--mp-soft) !important;
  border: 0 !important;
  padding: 0.55rem 0.75rem !important;
}
@media (max-width: 767px) {
  .dataTables_wrapper .mp-dt-top,
  .dataTables_wrapper .mp-dt-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .dataTables_wrapper .mp-dt-tools { margin-left: 0; }
}

@media (max-width: 991px) {
  .mp-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-stat-grid-2 { grid-template-columns: 1fr; }
  .fc .fc-toolbar-title { font-size: 1.05rem !important; }
}
@media (max-width: 575px) {
  .mp-stat-grid { grid-template-columns: 1fr; }
}

/* Form pages */
.mp-page {
  width: 100%;
  max-width: none;
}
.mp-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.mp-page-title {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.15;
  color: #fff !important;
}

.mp-form-card {
  padding: 1.5rem 1.5rem 1.35rem !important;
  margin-bottom: 0 !important;
  overflow: visible !important;
}
.mp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 1.25rem;
}
.mp-field {
  margin: 0 !important;
  float: none !important;
  width: auto !important;
  min-width: 0;
}
.mp-field-full { grid-column: 1 / -1; }
.mp-field > label {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.55rem !important;
  color: var(--mp-soft) !important;
  font-size: 0.9rem !important;
  float: none !important;
}

.mp-control {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--mp-line-2);
  border-radius: 14px;
  background: #0b0b0e;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mp-control:focus-within {
  border-color: rgba(56,189,248,0.65);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.14);
}
.mp-control-select { position: relative; }
.mp-control-date { overflow: visible; cursor: pointer; }
.mp-control-date .mp-input[readonly] { cursor: pointer; }
.mp-date-today {
  border: 0;
  background: rgba(56,189,248,0.14);
  color: #7dd3fc;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.mp-date-today:hover { background: rgba(56,189,248,0.24); color: #e0f2fe; }
.mp-date-trigger {
  border: 0 !important;
  cursor: pointer;
  background: #151519 !important;
}

.mp-affix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 0 0.9rem;
  background: #151519;
  color: var(--mp-soft);
  border-right: 1px solid var(--mp-line);
  flex: 0 0 auto;
}
.mp-affix-end {
  border-right: 0;
  border-left: 1px solid var(--mp-line);
}

/* Standalone inputs (profile, etc.) */
.mp-input,
.mp-form .mp-input.form-control {
  display: block;
  width: 100% !important;
  min-width: 0;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0.85rem 1rem !important;
  border: 1px solid var(--mp-line-2) !important;
  border-radius: 14px !important;
  background: #0b0b0e !important;
  color: #fff !important;
  box-shadow: none !important;
  font-family: var(--mp-font) !important;
  font-size: 1rem !important;
  outline: none !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mp-input:focus,
.mp-form .mp-input.form-control:focus {
  border-color: rgba(56,189,248,0.65) !important;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.14) !important;
  background: #0f0f12 !important;
}
/* Inside affixed control groups (amount / date) */
.mp-control .mp-input,
.mp-control .mp-form .mp-input.form-control,
.mp-control input.mp-input {
  flex: 1 1 auto;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.mp-control .mp-input:focus {
  box-shadow: none !important;
  background: transparent !important;
}
.mp-textarea {
  display: block;
  width: 100% !important;
  min-height: 120px !important;
  resize: vertical;
  padding: 0.95rem 1rem !important;
  border: 1px solid var(--mp-line-2) !important;
  border-radius: 14px !important;
  background: #0b0b0e !important;
  color: #fff !important;
  box-shadow: none !important;
}
.mp-textarea:focus {
  border-color: rgba(56,189,248,0.65) !important;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.14) !important;
}

.mp-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  padding-right: 2.6rem !important;
  cursor: pointer;
  background: transparent !important;
}
.mp-select option {
  background: #141418;
  color: #fff;
}
.mp-select-caret {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mp-faint);
  pointer-events: none;
  font-size: 0.85rem;
}

/* Select2 (category dropdown) */
.mp-field .select2-container {
  width: 100% !important;
  display: block !important;
}
.mp-field .select2-container--default .select2-selection--single,
.select2-container--default.mp-select2-sel .select2-selection--single,
.mp-field .select2-selection--single {
  min-height: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  border-radius: 14px !important;
  border: 1px solid var(--mp-line-2) !important;
  background: #0b0b0e !important;
  box-shadow: none !important;
  outline: none !important;
}
.mp-field .select2-container--default.select2-container--focus .select2-selection--single,
.mp-field .select2-container--default.select2-container--open .select2-selection--single {
  border-color: rgba(56,189,248,0.65) !important;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.14) !important;
}
.mp-field .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #fff !important;
  line-height: 48px !important;
  padding-left: 1rem !important;
  padding-right: 2.4rem !important;
  font-family: var(--mp-font) !important;
}
.mp-field .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--mp-faint) !important;
}
.mp-field .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 48px !important;
  right: 0.7rem !important;
  top: 0 !important;
}
.mp-field .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #7dd3fc transparent transparent transparent !important;
}
.mp-field .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #7dd3fc transparent !important;
}
.select2-dropdown.mp-select2-drop,
.select2-dropdown {
  background: #141418 !important;
  border: 1px solid rgba(56,189,248,0.28) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45) !important;
  overflow: hidden;
  z-index: 2100 !important;
}
.select2-container--default .select2-search--dropdown {
  padding: 0.65rem !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  min-height: 40px !important;
  border-radius: 10px !important;
  border: 1px solid var(--mp-line-2) !important;
  background: #0b0b0e !important;
  color: #fff !important;
  outline: none !important;
}
.select2-container--default .select2-results__option {
  padding: 0.75rem 1rem !important;
  color: var(--mp-soft) !important;
  font-family: var(--mp-font) !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: rgba(56,189,248,0.18) !important;
  color: #e0f2fe !important;
}
.select2-container--default .select2-results__option[aria-selected=true] {
  background: rgba(56,189,248,0.1) !important;
  color: #7dd3fc !important;
}
.select2-container--default .select2-results__option--disabled {
  color: var(--mp-faint) !important;
}
select.mp-select2.select2-hidden-accessible {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
}

.mp-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--mp-line);
}
.mp-btn-primary,
.mp-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-family: var(--mp-font);
  font-size: 0.95rem;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.mp-btn-primary {
  border: 0;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  color: #082f49;
  box-shadow: 0 8px 20px rgba(14,165,233,0.22);
}
.mp-btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); color: #082f49; }
.mp-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; filter: none; }
.mp-btn-ghost {
  border: 1px solid rgba(56,189,248,0.28);
  background: rgba(56,189,248,0.08);
  color: #7dd3fc !important;
}
.mp-btn-ghost:hover {
  border-color: rgba(56,189,248,0.5);
  color: #e0f2fe !important;
  background: rgba(56,189,248,0.14);
}

.mp-alert { border-radius: 12px !important; margin-bottom: 1.1rem !important; }

.mp-db-panel { margin-top: 1.25rem; }
.mp-db-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.mp-db-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
  background:
    radial-gradient(220px 120px at 100% 0%, rgba(56,189,248,0.08), transparent 60%),
    rgba(255,255,255,0.02);
}
.mp-db-card-import {
  background:
    radial-gradient(220px 120px at 100% 0%, rgba(245,158,11,0.1), transparent 60%),
    rgba(255,255,255,0.02);
}
.mp-db-card strong {
  display: block;
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}
.mp-db-card p {
  margin: 0;
  color: var(--mp-soft);
  font-size: 0.86rem;
  line-height: 1.4;
}
.mp-db-ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #7dd3fc;
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.28);
}
.mp-db-ico-amber {
  color: #fde68a;
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.3);
}
.mp-db-card .mp-btn-ghost,
.mp-db-card .mp-btn-primary {
  width: 100%;
  justify-content: center;
}
.mp-db-import {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.mp-db-file {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.18);
  color: var(--mp-soft);
  cursor: pointer;
  font-size: 0.88rem;
}
.mp-db-file input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.mp-db-file:hover {
  border-color: rgba(245,158,11,0.45);
  color: #fde68a;
}
.mp-db-note {
  margin: 1rem 0 0;
  color: var(--mp-faint);
  font-size: 0.8rem;
}
@media (max-width: 767px) {
  .mp-db-grid { grid-template-columns: 1fr; }
}

/* Keep Select2 usable on other pages; hide broken native dual-render */
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single {
  min-height: 48px !important;
  display: flex !important;
  align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
}
select.select2-hidden-accessible {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
}

@keyframes mpIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ——— Phone / tablet ——— */
@media (max-width: 991px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }

  .mp-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
  }
  body.mp-nav-open {
    overflow: hidden !important;
  }
  body.mp-nav-open .mp-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar,
  .sidebar[data-background-color],
  .off-canvas-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    width: min(288px, 86vw) !important;
    height: 100% !important;
    max-height: 100dvh !important;
    z-index: 1050 !important;
    transform: translate3d(-105%, 0, 0) !important;
    transition: transform .24s ease !important;
    box-shadow: 12px 0 40px rgba(0,0,0,0.45) !important;
    margin: 0 !important;
  }
  body.mp-nav-open .sidebar,
  body.mp-nav-open .sidebar[data-background-color] {
    transform: translate3d(0, 0, 0) !important;
  }
  .sidebar .sidebar-wrapper {
    height: 100% !important;
    max-height: 100dvh !important;
    padding-bottom: 2rem !important;
  }
  .mp-nav-close {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--mp-line);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: var(--mp-soft);
    cursor: pointer;
    flex: 0 0 auto;
  }
  .mp-nav-close:hover { color: #fff; border-color: var(--mp-line-2); }

  .main-panel {
    margin-left: 0 !important;
    width: 100% !important;
    float: none !important;
  }
  .content,
  .main-panel .content {
    padding: 0.85rem 0.85rem 2.5rem !important;
  }

  .mp-topnav {
    position: sticky !important;
    top: 0;
    z-index: 1030;
    margin: 0 !important;
    padding: 0.55rem 0.85rem !important;
    border-bottom: 1px solid var(--mp-line) !important;
    background: rgba(12, 12, 15, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .mp-topnav-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 !important;
    width: 100%;
  }
  .mp-topnav-left {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
  }
  .mp-nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--mp-line);
    border-radius: 11px;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    flex: 0 0 auto;
  }
  .mp-nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: #e4e4e7;
  }
  .mp-topnav-brand {
    display: block;
    color: #fff !important;
    font-family: var(--mp-display) !important;
    font-size: 1.15rem;
    font-weight: 600 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mp-topnav-right {
    display: flex !important;
    align-items: center;
    gap: 0.35rem;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
  }
  .mp-topnav-right a {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.4rem 0.65rem !important;
    border-radius: 10px;
    color: var(--mp-soft) !important;
  }
  .mp-topnav-name,
  .mp-topnav-logout { display: none; }

  .mp-page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .mp-dash-title,
  .mp-page-title { font-size: 1.4rem; }
  .mp-pulse-title { font-size: 1.35rem !important; }
  .mp-kpi-value,
  .mp-stat-card-value { font-size: 1.45rem; }
  .mp-dash-cta { width: 100%; justify-content: center; }
  .mp-form-grid { grid-template-columns: 1fr; }
  .mp-form-actions { flex-direction: column-reverse; align-items: stretch; }
  .mp-btn-primary,
  .mp-btn-ghost { width: 100%; }
  .mp-form-card,
  .mp-panel:not(.mp-calendar-panel),
  .mp-table-panel { padding-left: 1rem !important; padding-right: 1rem !important; }
  .mp-calendar-panel .mp-cal-shell {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .fc .fc-daygrid-day-frame { min-height: 88px !important; }

  .mp-pulse,
  .mp-cal-pulse,
  .mp-motivate {
    padding: 1.1rem 1rem !important;
  }
  .mp-pulse-stats { grid-template-columns: 1fr !important; }
  .mp-pulse-ring {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
  }
  .mp-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .mp-stat-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .mp-report-grid { grid-template-columns: 1fr !important; }
  .mp-report-card-featured { min-height: 0; }
  .mp-list-chip { align-self: flex-start; }

  .mp-table-wrap,
  .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.15rem;
  }
  .mp-table,
  table.dataTable.mp-table {
    min-width: 640px;
  }
  #monthlyreportsincome {
    min-width: 960px;
  }
  .dataTables_wrapper .mp-dt-top,
  .dataTables_wrapper .mp-dt-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .dataTables_wrapper .dataTables_filter input {
    width: 100% !important;
    max-width: none !important;
  }
  .dataTables_wrapper .dataTables_length select {
    min-width: 4.5rem;
  }

  .fc .fc-toolbar.fc-header-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }
  .fc .fc-toolbar-chunk {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
  }
  .fc .fc-toolbar-title { font-size: 1.05rem !important; text-align: center; }
  .fc .fc-button {
    padding: 0.4rem 0.65rem !important;
    font-size: 0.8rem !important;
  }
  .fc .fc-daygrid-day-number { padding: 0.35rem !important; }
  .mp-cal-event-title {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .modal-dialog {
    margin: 0.75rem auto !important;
    max-width: calc(100% - 1.5rem) !important;
  }
  .modal-content { border-radius: 16px !important; }
  .datepicker.dropdown-menu {
    max-width: calc(100vw - 1.5rem);
  }
  .select2-container { width: 100% !important; max-width: 100% !important; }

  .row > [class*="col-"] {
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 575px) {
  .mp-stat-grid,
  .mp-stat-grid-2,
  .mp-stat-grid-4,
  .mp-cal-month-row {
    grid-template-columns: 1fr !important;
  }
  .mp-pulse-badges { width: 100%; }
  .mp-pulse-top { align-items: flex-start; }
  .mp-goal-progress { min-width: 140px; max-width: none; }
  .mp-action-cell a {
    width: 36px;
    height: 36px;
  }
  .right-nav .mp-topnav-name { display: none !important; }
  .mp-login-shell {
    margin: 1rem !important;
    padding: 1.25rem !important;
    width: auto !important;
    max-width: none !important;
  }
}

@media (min-width: 992px) {
  .mp-topnav { display: none !important; }
}
