:root {
  --bg-main: #0a1020;
  --bg-grad-1: #161f3f;
  --bg-grad-2: #1c1437;
  --panel-bg: rgba(18, 25, 47, 0.68);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text-main: #f1f5ff;
  --text-muted: #a5b1ca;
  --accent: #5b8cff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 8% 12%, var(--bg-grad-1), transparent 38%),
    radial-gradient(circle at 90% 10%, #253068, transparent 42%),
    radial-gradient(circle at 50% 95%, var(--bg-grad-2), transparent 38%),
    var(--bg-main);
}

.auth-page {
  display: grid;
  place-items: center;
}

.auth-shell {
  width: 100%;
}

.auth-card {
  max-width: 560px;
  margin-inline: auto;
}

.auth-input-wrap {
  border-radius: 0.8rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-input-wrap .input-group-text {
  background: transparent;
  border: 0;
  color: #a7b6d7;
}

.auth-input {
  background: transparent;
  border: 0;
  color: #f3f7ff;
  min-height: 2.9rem;
}

.auth-input::placeholder {
  color: #94a2c2;
}

.auth-input:focus {
  box-shadow: none;
  background: transparent;
  color: #f3f7ff;
}

.auth-input-wrap:focus-within {
  border-color: rgba(113, 158, 255, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(91, 140, 255, 0.2);
}

.auth-note {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.app-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
}

.brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #7398ff, #6ce6ff);
  color: #0d1430;
  font-size: 1.25rem;
}

.brand-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-main);
}

.sidebar .nav-link {
  color: #d8e2ff;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  font-size: 1.08rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.25s ease;
}

.sidebar .nav-link i {
  font-size: 1.15rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  color: #fff;
  transform: translateX(3px);
  background: linear-gradient(110deg, rgba(91, 140, 255, 0.3), rgba(108, 230, 255, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

/* ── Sidebar project footer ──────────────────────────────────────────────── */
.sidebar__project {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar__project-link {
  padding: 0.5rem 0.6rem;
  border-radius: 0.9rem;
}

.sidebar__project-main {
  color: var(--text-main);
  border-radius: 0.7rem;
  padding: 0.35rem 0.5rem !important;
  transition: background 0.2s ease;
  min-width: 0;
}

.sidebar__project-main:hover {
  background: rgba(91, 140, 255, 0.15) !important;
}

.sidebar__project-switch-btn {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.18s ease, color 0.18s ease;
  opacity: 0.55;
}

.sidebar__project-switch-btn:hover {
  background: rgba(91, 140, 255, 0.2);
  color: var(--accent);
  opacity: 1;
}

.sidebar__project-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.6rem;
  display: grid;
  place-items: center;
  font-size: 1rem;
  background: linear-gradient(140deg, rgba(91, 140, 255, 0.3), rgba(108, 230, 255, 0.2));
  color: #7da2ff;
  flex-shrink: 0;
}

.sidebar__project-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.sidebar__project-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Project info modal fields ───────────────────────────────────────────── */
.project-info-field {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.project-info-field__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.project-info-field__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}


  background: linear-gradient(160deg, rgba(67, 111, 235, 0.35), rgba(23, 188, 216, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tip-card .progress {
  height: 0.5rem;
  background: rgba(255, 255, 255, 0.22);
}

.main-content {
  padding: 1.4rem;
}

.topbar {
  padding: 0.85rem 1rem;
  position: relative;
  z-index: 30;
}

.topbar-page-title {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.search-wrap {
  position: relative;
  width: min(560px, 100%);
}

.search-wrap i {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #96a7ca;
}

.search-wrap .form-control {
  border-radius: 999px;
  padding: 0.68rem 1rem 0.68rem 2.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f3f7ff;
}

.search-wrap .form-control::placeholder {
  color: #94a2c2;
}

.search-wrap .form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(91, 140, 255, 0.2);
  border-color: rgba(113, 158, 255, 0.55);
}

.btn-icon {
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ecf2ff;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.16);
}

.notification-dot {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ff5f8f;
}

.avatar,
.table-avatar {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: cover;
  border-radius: 50%;
}

.profile-chip {
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-name {
  line-height: 1.1;
}

.stat-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
}

.stat-title {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.stat-value {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.stat-icon {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.stat-trend {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.stat-trend.up {
  color: #67dca2;
}

.chart-wrap {
  min-height: 280px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.2rem 0;
}

.activity-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.activity-list h6 {
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
}

.activity-list small {
  color: var(--text-muted);
}

/* ── Dashboard ────────────────────────────────────────────────────────────── */

/* Stacked horizontal progress bar */
.dash-progress-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.dash-progress-segment {
  transition: width 0.6s ease;
}

/* Legend dots */
.dash-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Chart container */
.dash-chart-wrap {
  position: relative;
  min-height: 240px;
  max-height: 300px;
}

.dash-chart-wrap canvas {
  max-height: 100%;
}

/* Mini progress in table */
.dash-mini-progress {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.dash-mini-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #67dca2, #4cd89d);
  transition: width 0.5s ease;
}

/* Breakdown table */
.dash-breakdown-table th {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.65rem 0.75rem;
  white-space: nowrap;
}

.dash-breakdown-table td {
  padding: 0.65rem 0.75rem;
  font-size: 0.92rem;
}

.dash-breakdown-table tfoot td {
  padding-top: 0.85rem;
}

/* Financial cards */
.dash-fin-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease;
}

.dash-fin-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.table-dark {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
  --bs-table-color: #e5ecff;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
}

.table thead th {
  color: #aeb7d0;
  font-weight: 600;
  white-space: nowrap;
}

.table tbody tr {
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.page-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.properties-actions .action-btn {
  border-radius: 0.8rem;
  min-height: 2.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.search-wrap--inline {
  width: clamp(220px, 24vw, 320px);
}

.select-control {
  width: clamp(180px, 16vw, 230px);
  min-height: 2.7rem;
  border-radius: 0.8rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #eff4ff;
}

.select-control:focus {
  border-color: rgba(113, 158, 255, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(91, 140, 255, 0.2);
}

.select-control option {
  background-color: #101a33;
  color: #eff4ff;
}

.clients-table td,
.clients-table th {
  white-space: nowrap;
}

/* Sortable column headers */
.sortable-col {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.sortable-col:hover {
  color: #9ab7ff;
}

.sortable-col .sort-icon {
  font-size: 0.75rem;
  opacity: 0.6;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.sortable-col:hover .sort-icon {
  opacity: 1;
}

/* Debt report summary cards */
#debtReportSummary .fs-4 {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.property-card {
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.35);
}

.property-meta {
  display: grid;
  gap: 0.65rem;
}

.property-meta li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #d5def7;
}

.property-meta i {
  color: #7da2ff;
}

.status-badge {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.chart-wrap--small {
  min-height: 220px;
}

.payment-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-list {
  display: grid;
  gap: 0.7rem;
}

.payment-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
}

.payment-list small {
  color: var(--text-muted);
}

.sales-row td {
  white-space: nowrap;
}

.sales-action-btn {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
}

.progress {
  background: rgba(255, 255, 255, 0.16);
}

.progress .progress-bar {
  background: linear-gradient(90deg, #6f95ff, #6ce6ff);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 22, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 12;
}

@media (max-width: 1199.98px) {
  .app-shell {
    grid-template-columns: 96px 1fr;
  }

  .sidebar {
    padding-inline: 0.65rem;
  }

  .brand-text,
  .nav-label,
  .tip-card {
    display: none;
  }

  .sidebar .nav-link {
    justify-content: center;
    padding-inline: 0.4rem;
  }

  .sidebar .nav-link i {
    font-size: 1.3rem;
  }
}

@media (max-width: 991.98px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: -300px;
    width: 300px;
    transition: left 0.28s ease;
    height: 100vh;
    box-shadow: 25px 0 40px rgba(0, 0, 0, 0.3);
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar.open + .main-content + .sidebar-backdrop,
  .sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
  }

  .brand-text,
  .nav-label,
  .tip-card {
    display: initial;
  }

  .sidebar .nav-link {
    justify-content: flex-start;
    padding-inline: 1rem;
  }

  .main-content {
    padding: 1rem;
  }

  .topbar {
    position: sticky;
    top: 0.75rem;
    z-index: 10;
  }
}

@media (max-width: 575.98px) {
  .topbar {
    padding: 0.75rem;
  }

  .properties-actions {
    width: 100%;
  }

  .properties-actions .action-btn {
    flex: 1;
    justify-content: center;
  }

  .sales-action-btn {
    width: 2.2rem;
    height: 2.2rem;
  }

  .search-wrap--inline {
    width: 100%;
  }

  .select-control {
    width: 100%;
  }

  .search-wrap {
    max-width: none;
  }

  .profile-chip {
    display: none !important;
  }

  .stat-card,
  .glass-panel {
    border-radius: 1rem !important;
  }
}

/* ── Profile chip dropdown ───────────────────────────────────────────────── */
.profile-chip--clickable {
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.profile-chip--clickable:hover,
.profile-chip--clickable[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.profile-chevron {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.profile-chip--clickable[aria-expanded="true"] .profile-chevron {
  transform: rotate(180deg);
}

.profile-dropdown {
  min-width: 220px;
  background: rgba(18, 25, 50, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  border-radius: 0.9rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 0.4rem;
  z-index: 9999 !important;
}

.profile-dropdown .dropdown-item {
  border-radius: 0.6rem;
  color: #d8e2ff;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}

.profile-dropdown .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.profile-dropdown .dropdown-item.text-danger:hover {
  background: rgba(255, 80, 100, 0.15);
  color: #ff6b82;
}

.profile-dropdown .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.1);
}

/* ── Profile page ────────────────────────────────────────────────────────── */
.profile-page-avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.25);
}

.text-accent {
  color: var(--accent);
}

.profile-input-wrap {
  border-radius: 0.8rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.profile-input-wrap .input-group-text {
  background: transparent;
  border: 0;
  color: #a7b6d7;
}

.profile-input {
  background: transparent;
  border: 0;
  color: #f3f7ff;
  min-height: 2.75rem;
}

.profile-input::placeholder {
  color: #94a2c2;
}

.profile-input:focus {
  box-shadow: none;
  background: transparent;
  color: #f3f7ff;
}

.profile-input-wrap:focus-within {
  border-color: rgba(113, 158, 255, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(91, 140, 255, 0.2);
}

.profile-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── Photo upload widget ─────────────────────────────────────────────────── */
.profile-upload-preview {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.photo-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1.6rem 1rem;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-align: center;
}

.photo-drop-zone:hover,
.photo-drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(91, 140, 255, 0.1);
  color: var(--text-main);
}

.photo-drop-zone.uploading {
  pointer-events: none;
  opacity: 0.7;
}

/* ── Profile tabs ────────────────────────────────────────────────────────── */
.profile-tabs {
  gap: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.1rem;
}

.profile-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 0.75rem 0.75rem 0 0;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.profile-tab-btn:hover {
  color: #e5ecff;
  background: rgba(255, 255, 255, 0.06);
}

.profile-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(91, 140, 255, 0.08);
}

/* ── Profile info rows (view tab) ────────────────────────────────────────── */
.profile-info-row {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-info-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.6rem;
  display: grid;
  place-items: center;
  background: rgba(91, 140, 255, 0.18);
  color: var(--accent);
  flex-shrink: 0;
  font-size: 1rem;
}

.profile-info-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.15rem;
}

.profile-info-value {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text-main);
  word-break: break-word;
}

/* ── Project selection cards ─────────────────────────────────────────────── */
.project-card {
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4);
  border-color: rgba(91, 140, 255, 0.45);
}

.project-card--active {
  border-color: rgba(91, 140, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(91, 140, 255, 0.3);
}

.project-card--selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.4);
  transform: translateY(-5px);
}

.project-card__icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: linear-gradient(140deg, rgba(91, 140, 255, 0.3), rgba(108, 230, 255, 0.2));
  color: #7da2ff;
  flex-shrink: 0;
}

.project-card__select-indicator {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.project-card:hover .project-card__select-indicator,
.project-card--selected .project-card__select-indicator {
  opacity: 1;
}

/* ── Project badge in topbar ─────────────────────────────────────────────── */
.project-badge {
  text-decoration: none;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.85rem 0.3rem 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  max-width: 220px;
}

.project-badge:hover {
  background: rgba(91, 140, 255, 0.15);
  border-color: rgba(91, 140, 255, 0.4);
  color: var(--text-main);
}

.project-badge__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  display: inline-block;
  vertical-align: middle;
}

.project-badge__switch {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ── Payments page ───────────────────────────────────────────────────────── */
.payments-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #b9ccff;
  border: 1px solid rgba(91, 140, 255, 0.3);
  background: linear-gradient(110deg, rgba(91, 140, 255, 0.18), rgba(108, 230, 255, 0.1));
}

.payments-stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  height: 100%;
}

.payments-stat-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.payments-stat-value {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-weight: 700;
  color: var(--text-main);
}

.payments-stat-value--date {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}

.payment-highlight {
  border: 1px solid rgba(91, 140, 255, 0.18);
  background: linear-gradient(160deg, rgba(91, 140, 255, 0.1), rgba(255, 255, 255, 0.04));
}

.payment-highlight__id {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.payment-highlight__amount {
  font-size: 1.05rem;
  font-weight: 700;
  color: #66db8f;
}

.payments-filter-select {
  min-width: 220px;
}


