/* پنل آنیار ۲/۹ — پوسته پایه، تم تیره و اجزای حرفه‌ای */
/* === Malino dark brand theme: tokens moved to anyar-tokens.css === */
html {
  background: var(--app-deep);
}
body {
  color: var(--app-text);
  background:
    radial-gradient(
      52rem 40rem at 82% 2%,
      rgba(53, 222, 198, 0.15),
      transparent 68%
    ),
    radial-gradient(
      44rem 36rem at 5% 38%,
      rgba(142, 111, 255, 0.11),
      transparent 70%
    ),
    var(--app-deep);
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(187, 255, 242, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(187, 255, 242, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(68% 55% at 55% 18%, #000, transparent);
  mask-image: radial-gradient(68% 55% at 55% 18%, #000, transparent);
}
.auth-brand,
.auth-panel {
  background: transparent;
}
.auth-shell {
  background: linear-gradient(
    90deg,
    rgba(5, 23, 29, 0.32),
    rgba(8, 33, 40, 0.12)
  );
}
.auth-brand {
  border-left: 1px solid var(--app-border);
}
.auth-brand::before {
  border-color: rgba(114, 244, 220, 0.11);
  box-shadow:
    0 0 0 65px rgba(114, 244, 220, 0.025),
    0 0 0 130px rgba(114, 244, 220, 0.018);
}
.auth-brand .brand,
.back-site {
  color: var(--app-text);
}
.auth-message h1 {
  color: var(--app-text);
  text-shadow: 0 18px 70px rgba(0, 0, 0, 0.4);
}
.auth-message .eyebrow,
.step-label {
  color: var(--app-aqua-bright);
}
.auth-message > p:last-child,
.auth-form-wrap form > p:not(.step-label):not(.field-error),
.auth-legal {
  color: var(--app-muted);
}
.auth-preview,
.phone-input,
.otp-input {
  background: linear-gradient(
    145deg,
    rgba(25, 70, 77, 0.7),
    rgba(6, 27, 34, 0.74)
  );
  border-color: var(--app-border);
  box-shadow:
    var(--app-shadow),
    inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
}
.preview-balance span,
.preview-balance small {
  color: var(--app-muted);
}
.auth-preview .line {
  stroke: var(--app-aqua);
  filter: drop-shadow(0 0 8px rgba(114, 244, 220, 0.35));
}
.auth-preview::after {
  background: var(--app-aqua);
  box-shadow:
    0 0 0 7px rgba(114, 244, 220, 0.12),
    0 0 20px var(--app-aqua);
}
.auth-form-wrap h2,
.auth-form-wrap label {
  color: var(--app-text);
}
.phone-input input,
.otp-input {
  color: var(--app-text);
}
.phone-input input::placeholder,
.otp-input::placeholder {
  color: #78918f;
}
.phone-input span {
  color: var(--app-muted);
  border-color: var(--app-border);
}
.auth-form-wrap small {
  color: var(--app-muted);
}
.primary-action {
  color: #06242a;
  background: linear-gradient(135deg, var(--app-aqua-bright), var(--app-aqua));
  box-shadow: var(--app-glow);
}
.text-action {
  color: var(--app-aqua);
}

.dashboard {
  background: transparent;
}
.sidebar {
  background: linear-gradient(
    180deg,
    rgba(15, 48, 56, 0.88),
    rgba(4, 22, 28, 0.94)
  );
  border-left: 1px solid var(--app-border);
  box-shadow: 12px 0 55px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(22px);
}
.side-brand {
  border-color: var(--app-border);
}
.nav-item {
  color: var(--app-muted);
}
.nav-item:hover,
.nav-item.active {
  background: rgba(114, 244, 220, 0.08);
  color: var(--app-text);
}
.nav-item.active {
  box-shadow:
    inset -3px 0 var(--app-aqua),
    0 0 28px rgba(114, 244, 220, 0.04);
}
.nav-item > b {
  color: var(--app-aqua-bright);
  background: rgba(114, 244, 220, 0.12);
}
.voice-quota {
  border-color: var(--app-border);
  background: rgba(255, 255, 255, 0.025);
}
.voice-quota div {
  color: var(--app-muted);
}
.voice-quota div b {
  color: var(--app-aqua);
}
.voice-quota i {
  background: rgba(255, 255, 255, 0.08);
}
.voice-quota i b {
  background: linear-gradient(90deg, var(--app-aqua), var(--app-gold));
  box-shadow: 0 0 14px rgba(114, 244, 220, 0.35);
}
.topbar {
  color: var(--app-text);
  background: rgba(5, 24, 30, 0.7);
  border-color: var(--app-border);
  backdrop-filter: blur(20px);
}
.topbar > div:first-child p,
.profile-button small {
  color: var(--app-muted);
}
.icon-button,
.profile-button {
  color: var(--app-text);
  background: rgba(18, 56, 63, 0.62);
  border-color: var(--app-border);
}
.profile-button > span {
  background: rgba(114, 244, 220, 0.13);
  color: var(--app-aqua-bright);
}
#dashboard-main {
  color: var(--app-text);
}
.balance-card,
.quick-add-card,
.transactions-card,
.budget-card,
.insight-card,
.table-card {
  color: var(--app-text);
  background: linear-gradient(
    145deg,
    rgba(23, 66, 73, 0.72),
    rgba(5, 26, 33, 0.78)
  );
  border-color: var(--app-border);
  box-shadow:
    var(--app-shadow),
    inset 0 1px rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
}
.balance-card {
  border-color: rgba(114, 244, 220, 0.2);
  box-shadow: var(--app-shadow), var(--app-glow);
}
.balance-card::after {
  border-color: rgba(114, 244, 220, 0.09);
  box-shadow:
    0 0 0 40px rgba(114, 244, 220, 0.025),
    0 0 0 80px rgba(114, 244, 220, 0.015);
}
.balance-top p,
.balance-top h2 small,
.balance-stats p,
.card-title p,
.card-heading p,
.transaction-name small,
.transaction-row > span {
  color: var(--app-muted);
}
.trend.up {
  background: rgba(114, 244, 220, 0.12);
  color: var(--app-aqua-bright);
}
.dot.income {
  background: var(--app-aqua);
  box-shadow: 0 0 10px rgba(114, 244, 220, 0.5);
}
.dot.expense {
  background: var(--app-gold);
}
.grid-lines path {
  stroke: rgba(202, 255, 244, 0.09);
}
.chart-line {
  stroke: var(--app-aqua);
  filter: drop-shadow(0 0 7px rgba(114, 244, 220, 0.35));
}
.flow-chart circle {
  fill: var(--app-gold);
  stroke: var(--app-night);
}
.chart-labels {
  color: var(--app-muted);
}
.quick-add-card {
  background: linear-gradient(
    145deg,
    rgba(20, 70, 75, 0.88),
    rgba(4, 23, 29, 0.94)
  );
}
.spark {
  color: var(--app-gold);
  filter: drop-shadow(0 0 10px rgba(245, 212, 119, 0.35));
}
.voice-action {
  background: rgba(114, 244, 220, 0.07);
  border-color: rgba(114, 244, 220, 0.17);
}
.voice-action:hover {
  background: rgba(114, 244, 220, 0.11);
  border-color: rgba(114, 244, 220, 0.35);
}
.mic {
  background: linear-gradient(135deg, var(--app-aqua-bright), var(--app-aqua));
  color: #06242a;
  box-shadow: var(--app-glow);
}
.voice-action small,
.manual-action {
  color: var(--app-muted);
}
.manual-action,
.or::before,
.or::after {
  border-color: var(--app-border);
}
.or span {
  background: transparent;
}
.link-button {
  color: var(--app-aqua);
}
.simple {
  color: var(--app-aqua-bright);
  background: rgba(114, 244, 220, 0.1);
}
.transaction-row,
.table-row,
.table-head {
  border-color: var(--app-border);
}
.transaction-name > span.income {
  background: rgba(114, 244, 220, 0.12);
  color: var(--app-aqua-bright);
}
.transaction-name > span.expense {
  background: rgba(245, 212, 119, 0.12);
  color: var(--app-gold);
}
.amount.income {
  color: var(--app-aqua);
}
.amount.expense {
  color: #ff978d;
}
.budget-list b,
.budget-list small {
  color: var(--app-muted);
}
.budget-list i {
  background: rgba(255, 255, 255, 0.08);
}
.budget-list i b {
  background: linear-gradient(90deg, var(--app-aqua), #4fdbc7);
  box-shadow: 0 0 12px rgba(114, 244, 220, 0.25);
}
.budget-list i.warning b {
  background: linear-gradient(90deg, var(--app-gold), #ef9a3b);
}
.insight-card {
  background: linear-gradient(
    135deg,
    rgba(114, 244, 220, 0.1),
    rgba(245, 212, 119, 0.055)
  );
  border-color: rgba(114, 244, 220, 0.16);
}
.insight-icon {
  background: rgba(114, 244, 220, 0.14);
  color: var(--app-aqua-bright);
}
.insight-card p,
.insight-card small {
  color: var(--app-muted);
}
.page-title p {
  color: var(--app-aqua);
}
.primary-small {
  color: #06242a;
  background: linear-gradient(135deg, var(--app-aqua-bright), var(--app-aqua));
  box-shadow: var(--app-glow);
}
.toolbar input,
.filter-tabs,
.filter-tabs button.active {
  color: var(--app-text);
  background: rgba(17, 51, 59, 0.72);
  border-color: var(--app-border);
}
.toolbar input::placeholder {
  color: #78918f;
}
.filter-tabs button {
  color: var(--app-muted);
}
.filter-tabs button.active {
  color: var(--app-text);
  box-shadow: inset 0 0 0 1px rgba(114, 244, 220, 0.12);
}
.table-head,
.table-row > span,
.placeholder-view > p:last-of-type {
  color: var(--app-muted);
}
.placeholder-view .empty-illustration,
.placeholder-view > p:first-of-type {
  color: var(--app-aqua);
}
.placeholder-view button {
  color: var(--app-muted);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--app-border);
}
.bottom-nav {
  background: rgba(5, 24, 30, 0.9);
  border-color: var(--app-border);
  backdrop-filter: blur(20px);
}
.bottom-nav button {
  color: var(--app-muted);
}
.bottom-nav button.active {
  color: var(--app-aqua);
}
.bottom-nav .bottom-add {
  color: #06242a;
  background: linear-gradient(135deg, var(--app-aqua-bright), var(--app-aqua));
  box-shadow: var(--app-glow);
}
.transaction-dialog {
  color: var(--app-text);
  background: linear-gradient(
    145deg,
    rgba(23, 66, 73, 0.98),
    rgba(5, 26, 33, 0.98)
  );
  border: 1px solid var(--app-border);
}
.transaction-dialog::backdrop {
  background: rgba(1, 10, 13, 0.78);
}
.close-dialog,
.transaction-dialog input:not([type="radio"]),
.transaction-dialog select,
.type-switch span {
  color: var(--app-text);
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--app-border);
}
.transaction-dialog input::placeholder {
  color: #78918f;
}
.type-switch input:checked + span {
  color: #06242a;
  background: linear-gradient(135deg, var(--app-aqua-bright), var(--app-aqua));
  border-color: transparent;
}
.toast {
  color: #06242a;
  background: linear-gradient(135deg, var(--app-aqua-bright), var(--app-aqua));
  box-shadow: var(--app-glow);
}

.balance-card,
.quick-add-card,
.transactions-card,
.budget-card,
.insight-card {
  animation: app-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.quick-add-card {
  animation-delay: 0.08s;
}
.transactions-card {
  animation-delay: 0.14s;
}
.budget-card {
  animation-delay: 0.2s;
}
.insight-card {
  animation-delay: 0.26s;
}
@keyframes app-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 720px) {
  .topbar {
    background: rgba(5, 24, 30, 0.86);
  }
  .balance-card,
  .quick-add-card,
  .transactions-card,
  .budget-card,
  .insight-card {
    backdrop-filter: blur(14px);
  }
  .auth-panel {
    background: rgba(4, 20, 26, 0.5);
  }
}
@media (prefers-reduced-motion: reduce) {
  .balance-card,
  .quick-add-card,
  .transactions-card,
  .budget-card,
  .insight-card {
    animation: none;
  }
}

/* === Professional panel components === */
.kpi-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.kpi-card {
  min-width: 0;
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(23, 66, 73, 0.66),
    rgba(5, 26, 33, 0.72)
  );
  box-shadow:
    var(--app-shadow),
    inset 0 1px rgba(255, 255, 255, 0.04);
}
.kpi-icon,
.debt-symbol {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.kpi-icon svg,
.debt-symbol svg,
.secondary-small svg,
.budget-alert svg,
.insight-pro svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kpi-icon.aqua {
  color: var(--app-aqua);
  background: rgba(114, 244, 220, 0.11);
}
.kpi-icon.gold {
  color: var(--app-gold);
  background: rgba(245, 212, 119, 0.11);
}
.kpi-icon.violet {
  color: #baa9ff;
  background: rgba(155, 124, 255, 0.12);
}
.kpi-card p,
.kpi-card strong,
.kpi-card small {
  display: block;
  margin: 0;
}
.kpi-card p {
  color: var(--app-muted);
  font-size: 13px;
}
.kpi-card strong {
  margin-top: 2px;
  color: var(--app-text);
  font-size: 16px;
}
.kpi-card small {
  margin-top: 2px;
  color: var(--app-muted);
  font-size: 13px;
}
.positive {
  color: var(--app-aqua) !important;
}
.negative {
  color: #ff978d !important;
}
.health-ring {
  --progress: 82%;
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(
    var(--app-aqua) var(--progress),
    rgba(255, 255, 255, 0.08) 0
  );
  box-shadow: 0 0 18px rgba(114, 244, 220, 0.14);
  position: relative;
}
.health-ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: #0c3037;
}
.health-ring span {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 900;
}
.page-title > div > span {
  display: block;
  color: var(--app-muted);
  font-size: 13px;
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.primary-small {
  min-height: 44px;
}
.secondary-small {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  color: var(--app-text);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.secondary-small:hover {
  border-color: rgba(114, 244, 220, 0.32);
  background: rgba(114, 244, 220, 0.07);
}
.summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}
.summary-row > div {
  padding: 13px 15px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.summary-row span,
.summary-row b {
  display: block;
}
.summary-row span {
  color: var(--app-muted);
  font-size: 13px;
}
.summary-row b {
  margin-top: 3px;
  font-size: 13px;
}

.feature-page.active {
  display: block;
}
.budget-overview,
.debt-summary,
.report-kpis {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.budget-overview {
  grid-template-columns: 1.35fr 0.65fr;
}
.budget-overview > article,
.debt-summary > article,
.report-kpis > article,
.professional-card,
.people-card,
.reminder-card,
.analytics-card,
.settings-card {
  border: 1px solid var(--app-border);
  border-radius: 17px;
  background: linear-gradient(
    145deg,
    rgba(23, 66, 73, 0.64),
    rgba(5, 26, 33, 0.74)
  );
  box-shadow:
    var(--app-shadow),
    inset 0 1px rgba(255, 255, 255, 0.04);
}
.budget-overview > article {
  padding: 20px;
}
.budget-overview p,
.budget-overview strong,
.budget-overview span {
  display: block;
  margin: 0;
}
.budget-overview p {
  color: var(--app-muted);
  font-size: 13px;
}
.budget-overview strong {
  margin-top: 4px;
  font-size: 23px;
}
.budget-overview strong small {
  color: var(--app-muted);
  font-size: 13px;
}
.budget-overview > article > span {
  margin-top: 8px;
  color: var(--app-muted);
  font-size: 13px;
}
.budget-total-track {
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}
.budget-total-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--app-aqua), var(--app-gold));
  box-shadow: 0 0 14px rgba(114, 244, 220, 0.25);
}
.budget-overview .budget-alert {
  display: flex;
  align-items: center;
  gap: 13px;
  background: linear-gradient(
    145deg,
    rgba(245, 212, 119, 0.09),
    rgba(5, 26, 33, 0.76)
  );
}
.budget-alert > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(245, 212, 119, 0.12);
  color: var(--app-gold);
}
.budget-alert b,
.budget-alert small {
  display: block;
}
.budget-alert b {
  margin-top: 3px;
  font-size: 13px;
}
.budget-alert small {
  margin-top: 2px;
  color: var(--app-muted);
  font-size: 13px;
}
.professional-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.professional-card {
  padding: 18px;
}
.professional-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.professional-card-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.professional-card .category-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--app-aqua);
  background: rgba(114, 244, 220, 0.1);
  font-size: 14px;
  font-weight: 900;
}
.professional-card h3,
.professional-card p {
  margin: 0;
}
.professional-card h3 {
  font-size: 13px;
}
.professional-card p {
  color: var(--app-muted);
  font-size: 13px;
}
.budget-percent {
  color: var(--app-aqua);
  font-size: 13px;
  font-weight: 900;
}
.budget-percent.warning {
  color: var(--app-gold);
}
.pro-progress {
  height: 8px;
  margin: 16px 0 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}
.pro-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--app-aqua), #4fd6c3);
}
.pro-progress.warning i {
  background: linear-gradient(90deg, var(--app-gold), #ef9437);
}
.professional-card-foot {
  display: flex;
  justify-content: space-between;
  color: var(--app-muted);
  font-size: 13px;
}

.debt-summary {
  grid-template-columns: repeat(3, 1fr);
}
.debt-summary > article {
  min-height: 100px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
}
.debt-symbol.receive {
  color: var(--app-aqua);
  background: rgba(114, 244, 220, 0.11);
}
.debt-symbol.pay {
  color: #ff978d;
  background: rgba(255, 151, 141, 0.11);
}
.debt-symbol.soon {
  color: var(--app-gold);
  background: rgba(245, 212, 119, 0.11);
}
.debt-summary p,
.debt-summary strong,
.debt-summary small {
  display: block;
  margin: 0;
}
.debt-summary p {
  color: var(--app-muted);
  font-size: 13px;
}
.debt-summary strong {
  margin-top: 3px;
  font-size: 14px;
}
.debt-summary small {
  color: var(--app-muted);
  font-size: 13px;
}
.debt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 12px;
}
.people-card,
.reminder-card {
  padding: 20px;
}
.section-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-card-title h3,
.section-card-title p {
  margin: 0;
}
.section-card-title h3 {
  font-size: 14px;
}
.section-card-title p {
  color: var(--app-muted);
  font-size: 13px;
}
.filter-tabs.compact button {
  padding: 5px 9px;
}
.debt-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 0.7fr 0.6fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--app-border);
}
.person-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.person-avatar {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: rgba(155, 124, 255, 0.13);
  color: #c8bbff;
  font-size: 13px;
  font-weight: 900;
}
.person-cell b,
.person-cell small {
  display: block;
}
.person-cell b {
  font-size: 13px;
}
.person-cell small,
.debt-row > span {
  color: var(--app-muted);
  font-size: 13px;
}
.debt-row > strong {
  font-size: 13px;
}
.status-chip {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.status-chip.receivable {
  color: var(--app-aqua);
  background: rgba(114, 244, 220, 0.09);
}
.status-chip.payable {
  color: #ff9e94;
  background: rgba(255, 151, 141, 0.09);
}
.reminder-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(
    145deg,
    rgba(245, 212, 119, 0.095),
    rgba(5, 26, 33, 0.78)
  );
}
.reminder-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--app-gold);
  background: rgba(245, 212, 119, 0.12);
}
.reminder-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.reminder-card p {
  margin: 16px 0 0;
  color: var(--app-muted);
  font-size: 13px;
}
.reminder-card h3 {
  margin: 3px 0;
  font-size: 15px;
}
.reminder-card strong {
  color: var(--app-gold);
  font-size: 17px;
}
.reminder-card button {
  width: 100%;
  margin-top: 17px;
  padding: 9px;
  border: 1px solid rgba(245, 212, 119, 0.2);
  border-radius: 9px;
  color: var(--app-gold);
  background: rgba(245, 212, 119, 0.07);
  font-weight: 800;
  cursor: pointer;
}
.reminder-card small {
  display: block;
  margin-top: 12px;
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.8;
}

.report-kpis {
  grid-template-columns: repeat(4, 1fr);
}
.report-kpis > article {
  padding: 16px;
}
.report-kpis p,
.report-kpis strong,
.report-kpis span {
  display: block;
  margin: 0;
}
.report-kpis p {
  color: var(--app-muted);
  font-size: 13px;
}
.report-kpis strong {
  margin-top: 4px;
  font-size: 16px;
}
.report-kpis span {
  margin-top: 4px;
  color: var(--app-muted);
  font-size: 13px;
}
.page-actions select {
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  color: var(--app-text);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
}
.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 12px;
}
.analytics-card {
  padding: 20px;
}
.analytics-card.wide {
  min-height: 345px;
}
.chart-legend {
  display: flex;
  gap: 12px;
  color: var(--app-muted);
  font-size: 13px;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.chart-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}
.chart-legend i.income {
  background: var(--app-aqua);
}
.chart-legend i.expense {
  background: var(--app-gold);
}
.bar-chart {
  height: 250px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 16px;
  padding-top: 20px;
  border-bottom: 1px solid var(--app-border);
  background-image: linear-gradient(
    rgba(202, 255, 244, 0.06) 1px,
    transparent 1px
  );
  background-size: 100% 25%;
}
.bar-chart > div {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.bar-chart span {
  width: 28px;
  height: 82%;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.bar-chart span::before,
.bar-chart span::after {
  content: "";
  width: 12px;
  border-radius: 5px 5px 1px 1px;
}
.bar-chart span::before {
  height: var(--income);
  background: linear-gradient(var(--app-aqua-bright), var(--app-aqua));
  box-shadow: 0 0 10px rgba(114, 244, 220, 0.18);
}
.bar-chart span::after {
  height: var(--expense);
  background: linear-gradient(var(--app-gold), #e89a3e);
}
.bar-chart b {
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.donut-wrap {
  display: grid;
  place-items: center;
}
.donut {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--app-aqua) 0 32%,
    #9d83ff 32% 57%,
    var(--app-gold) 57% 75%,
    #ec7c76 75% 100%
  );
  position: relative;
  box-shadow: 0 0 30px rgba(114, 244, 220, 0.08);
}
.donut::after {
  content: "";
  position: absolute;
  inset: 23px;
  border-radius: inherit;
  background: #0b2b32;
}
.donut span {
  position: relative;
  z-index: 1;
  text-align: center;
}
.donut b,
.donut small {
  display: block;
}
.donut b {
  font-size: 22px;
}
.donut small {
  color: var(--app-muted);
  font-size: 13px;
}
.donut-wrap ul {
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.donut-wrap li {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 13px;
}
.donut-wrap li i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}
.donut-wrap li .food {
  background: var(--app-aqua);
}
.donut-wrap li .fun {
  background: #9d83ff;
}
.donut-wrap li .transport {
  background: var(--app-gold);
}
.donut-wrap li .bills {
  background: #ec7c76;
}
.donut-wrap li span {
  color: var(--app-muted);
}
.insight-pro {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(
    135deg,
    rgba(114, 244, 220, 0.09),
    rgba(155, 124, 255, 0.06)
  );
}
.insight-pro > span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  color: var(--app-aqua);
  background: rgba(114, 244, 220, 0.11);
}
.insight-pro p,
.insight-pro h3,
.insight-pro small {
  display: block;
  margin: 0;
}
.insight-pro p {
  color: var(--app-aqua);
  font-size: 13px;
}
.insight-pro h3 {
  margin-top: 2px;
  font-size: 13px;
}
.insight-pro small {
  margin-top: 2px;
  color: var(--app-muted);
  font-size: 13px;
}

.settings-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.settings-card {
  padding: 20px;
}
.settings-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.settings-form label {
  color: var(--app-muted);
  font-size: 13px;
}
.settings-form input,
.settings-form select {
  width: 100%;
  height: 43px;
  margin-top: 6px;
  padding: 0 11px;
  border: 1px solid var(--app-border);
  border-radius: 9px;
  color: var(--app-text);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
}
.settings-form input[readonly] {
  opacity: 0.65;
}
.toggle-list label {
  min-height: 59px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--app-border);
  cursor: pointer;
}
.toggle-list b,
.toggle-list small {
  display: block;
}
.toggle-list b {
  font-size: 13px;
}
.toggle-list small {
  color: var(--app-muted);
  font-size: 13px;
}
.toggle-list input {
  appearance: none;
  width: 39px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  cursor: pointer;
  transition: 0.2s;
}
.toggle-list input::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 3px;
  right: 3px;
  border-radius: 50%;
  background: #a2b6b4;
  transition: 0.2s;
}
.toggle-list input:checked {
  background: var(--app-aqua);
}
.toggle-list input:checked::after {
  right: 20px;
  background: #06242a;
}
.compact-dialog {
  max-width: 440px;
}
.empty-row {
  padding: 30px;
  text-align: center;
  color: var(--app-muted);
  font-size: 13px;
}

@media (max-width: 1120px) {
  .kpi-strip,
  .report-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .debt-layout,
  .report-grid {
    grid-template-columns: 1fr;
  }
  .reminder-card {
    min-height: 220px;
  }
}
@media (max-width: 720px) {
  .kpi-strip,
  .summary-row,
  .budget-overview,
  .professional-grid,
  .debt-summary,
  .report-kpis,
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi-card {
    min-height: 100px;
    padding: 13px;
  }
  .kpi-icon {
    width: 37px;
    height: 37px;
  }
  .page-title {
    align-items: flex-start;
    gap: 12px;
  }
  .page-title > div > span {
    display: none;
  }
  .page-actions {
    align-items: stretch;
  }
  .secondary-small {
    padding-inline: 10px;
  }
  .debt-row {
    grid-template-columns: minmax(130px, 1fr) auto;
  }
  .debt-row > span,
  .debt-row > .status-chip {
    display: none;
  }
  .bar-chart {
    gap: 6px;
  }
  .bar-chart span {
    width: 22px;
    gap: 3px;
  }
  .bar-chart span::before,
  .bar-chart span::after {
    width: 9px;
  }
  .settings-form {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 390px) {
  .kpi-strip {
    grid-template-columns: 1fr;
  }
  .page-title {
    flex-direction: column;
  }
  .page-actions {
    width: 100%;
  }
  .page-actions > * {
    flex: 1;
  }
}
