.dashboard-page-root {
  min-height: 100vh;
  padding: 1.5rem;
  /* use global site background instead of a separate dashboard page background */
  background-color: transparent;
  display: flex;
  flex-direction: column;
}

.dash-light .dashboard-nav-link {
  color: #4b5563;
}

.dash-light .dashboard-nav-link:hover {
  background: #e5e7eb;
  color: #111827;
}

.dash-light .dashboard-nav-link.active {
  background: #111827;
  color: #f9fafb;
}

/* Prevent horizontal scrollbars only */
body.dashboard-layout {
  overflow-x: hidden;
}

body.dashboard-layout html {
  overflow-x: hidden;
}

/* Disable animated background orbs on dashboard */
body.dashboard-layout::before,
body.dashboard-layout::after,
.dashboard-layout::before,
.dashboard-layout::after {
  display: none !important;
  content: none !important;
}
 
.dashboard-shell {
  display: flex;
  flex: 1;
  width: 100%;
  max-width: 1280px;
  height: calc(100vh - 3rem);
  border-radius: 1rem;
  overflow: hidden;
  /* slightly lighter shell so it separates from page background */
  background-color: var(--dark-surface-a20);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.dash-light .dashboard-shell {
  background-color: #f9fafb;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
}

.dashboard-shell::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Webkit */
}

.dashboard-sidebar {
  width: 260px;
  min-width: 260px;
  background: linear-gradient(180deg, var(--dark-surface-a20), var(--dark-surface-a20));
  color: #e2e8f0;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.dash-light .dashboard-sidebar {
  background: #ffffff;
  color: #0f172a;
  border-right: 1px solid #e5e7eb;
}

.dashboard-sidebar .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.dashboard-sidebar .brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #22c55e, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.dashboard-sidebar .brand-name {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.dashboard-back-link {
  text-decoration: none;
  color: #bfdbfe;
}

.dashboard-back-link:hover {
  color: #e5e7eb;
}

.dashboard-nav-group-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.dashboard-sidebar-activity {
  margin-top: 0.75rem;
  padding: 0.8rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid var(--dark-surface-a40);
  background-color: var(--dark-surface-a20);
}

.dash-light .dashboard-sidebar-activity {
  border-color: #e5e7eb;
  background-color: #f9fafb;
}

.dashboard-sidebar-activity-list {
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 1.5;
}

.dashboard-sidebar-activity-list li {
  margin-bottom: 0.3rem;
}

.dashboard-sidebar-activity-list li:last-child {
  margin-bottom: 0;
}

.dashboard-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-nav-item {
  margin-bottom: 0.2rem;
}

.dashboard-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  color: #cbd5f5;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  outline: none;
}

.dashboard-nav-link:hover {
  background: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
}

.dashboard-nav-link.active {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.25), rgba(56, 189, 248, 0.25));
  color: #ecfeff;
}

.dashboard-main {
  flex: 1;
  /* same dark surface as other pages' cards */
  background-color: var(--dark-surface-a20);
  color: #e2e8f0;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.dash-light .dashboard-main {
  background-color: #f3f4f6;
  color: #111827;
}

.dashboard-main::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Webkit */
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dashboard-topbar-left {
  display: flex;
  flex-direction: column;
}

.dashboard-title {
  font-size: 1.4rem;
  font-weight: 600;
}

.dashboard-subtitle {
  font-size: 0.9rem;
  color: #94a3b8;
}

.dash-light .dashboard-subtitle {
  color: #6b7280;
}

.dashboard-search {
  max-width: 340px;
}

.dashboard-search input {
  background-color: var(--dark-surface-a10);
  border-color: var(--dark-surface-a40);
  border-width: 1.5px;
  color: #e5e7eb;
}

.dash-light .dashboard-search input {
  background-color: #ffffff;
  border-color: #cbd5e1;
  color: #111827;
}

.dashboard-search input::placeholder {
  color: #6b7280;
}

.dashboard-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-icon-button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--dark-surface-a40);
  background-color: var(--dark-surface-a10);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dashboard-icon-button:hover {
  background-color: var(--dark-surface-a20);
  border-color: var(--dark-surface-a50);
}

.dashboard-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #38bdf8, #6366f1);
}

.dashboard-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: visible;
  /* Prevent any internal scrollbars */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.dashboard-content::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Webkit */
}

/* Hide scrollbars only on main content area */
.dashboard-main {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.dashboard-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.dashboard-ticker-strip {
  margin-top: 0.9rem;
}

.dashboard-ticker-button {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--dark-surface-a40);
  background-color: var(--dark-surface-a20);
  color: #e5e7eb;
  padding: 0.45rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.dash-light .dashboard-ticker-button {
  background-color: #ffffff;
  border-color: #e5e7eb;
  color: #111827;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
}

.dashboard-ticker-button:hover {
  background-color: rgba(17, 24, 39, 0.9);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.55);
  transform: translateY(-1px);
}

.dash-light .dashboard-ticker-button:hover {
  background-color: #f9fafb;
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.12);
}

.dashboard-ticker-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #ffffff;
  white-space: nowrap;
}

.dash-light .dashboard-ticker-pill {
  background: linear-gradient(135deg, #e0f2fe, #bfdbfe);
  color: #1d4ed8;
}

.dashboard-ticker-headline {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
}

.dash-light .dashboard-ticker-headline {
  color: #4b5563;
}

#tab-dashboard .dashboard-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-overview-charts {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 1rem;
}

.dashboard-overview-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-overview-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-chart-card {
  background-color: var(--dark-surface-a20);
  border-radius: 0.9rem;
  border: 1px solid var(--dark-surface-a40);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dash-light .dashboard-chart-card {
  background-color: #ffffff;
  border-color: #d4d4d8;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.12);
}

.dash-light .dashboard-chart-title {
  color: #111827;
}

.dash-light .dashboard-chart-subtitle {
  color: #6b7280;
}

.dash-light .dashboard-chart-bar-label {
  color: #374151;
}

.dash-light .dashboard-chart-bar-track,
.dash-light .dashboard-chart-stacked-track {
  background: #e5e7eb;
}

.dash-light .dashboard-chart-bar-value {
  color: #6b7280;
}

.dash-light .dashboard-chart-empty {
  color: #6b7280;
}

.dash-light .dashboard-chart-legend {
  color: #6b7280;
}

.dash-light .dashboard-chart-donut-inner {
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.5);
  color: #111827;
}

.dash-light .dashboard-chart-donut-label {
  color: #6b7280;
}

.dash-light .dashboard-chart-pie {
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.85);
}

.dashboard-chart-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.dashboard-chart-title {
  font-size: 0.85rem;
  font-weight: 500;
}

.dashboard-chart-subtitle {
  font-size: 0.75rem;
  color: #9ca3af;
}

.dashboard-chart-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.dashboard-chart-bar-label {
  flex: 0 0 120px;
  font-size: 0.8rem;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-chart-bar-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.95);
  overflow: hidden;
}

.dashboard-chart-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
}

.dashboard-chart-bar-value {
  width: 32px;
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: right;
}

.dashboard-chart-empty {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.4rem;
}

.dashboard-chart-stacked-track {
  margin-top: 0.6rem;
  height: 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.95);
  display: flex;
  overflow: hidden;
}

.dashboard-chart-stacked-seg {
  height: 100%;
}

.dashboard-chart-stacked-seg-general {
  background: rgba(34, 197, 94, 0.9);
}

.dashboard-chart-stacked-seg-moderate {
  background: rgba(250, 204, 21, 0.9);
}

.dashboard-chart-stacked-seg-adult {
  background: rgba(248, 113, 113, 0.95);
}

.dashboard-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.dashboard-chart-legend-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dashboard-chart-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dashboard-chart-donut-wrapper {
  margin-top: 0.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-chart-donut {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-chart-donut-inner {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dashboard-chart-donut-value {
  font-size: 0.9rem;
  font-weight: 600;
}

.dashboard-chart-donut-label {
  font-size: 0.7rem;
  color: #9ca3af;
}

.dashboard-chart-pie-wrapper {
  margin-top: 0.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-chart-pie {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.9);
}

.dashboard-card {
  background-color: var(--dark-surface-a20);
  border-radius: 0.9rem;
  border: 1px solid var(--dark-surface-a40);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dash-light .dashboard-card {
  background-color: #ffffff;
  border-color: #e5e7eb;
}

#tab-dashboard .dashboard-card {
  align-items: center;
  text-align: center;
}

.dashboard-card-label {
  font-size: 0.8rem;
  color: #9ca3af;
}

.dashboard-card-value {
  font-size: 1.2rem;
  font-weight: 600;
}

.dashboard-card-pill {
  font-size: 0.75rem;
  color: #22c55e;
}

/* Stats card pill colors */
.dashboard-card-pill.text-success {
  color: #22c55e; /* green for Active */
}

.dashboard-card-pill.text-warning {
  color: #eab308; /* yellow for Drafts */
}

.dashboard-card-pill.text-danger {
  color: #ef4444; /* red for Paused/Expired */
}

.dashboard-panel {
  background-color: var(--dark-surface-a20);
  border-radius: 0.9rem;
  border: 1px solid var(--dark-surface-a40);
  padding: 1rem 1.1rem;
}

.dash-light .dashboard-panel {
  background-color: #ffffff;
  border-color: #e5e7eb;
}

/* Billing & Plans - premium SaaS layout */
.billing-panel {
  padding: 1.25rem 1.4rem;
}

.billing-panel-header {
  align-items: center;
  gap: 1rem;
}

.billing-panel-subtitle {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.billing-pricing-link {
  border-radius: 999px;
}

.billing-summary-shell {
  margin-top: 0.75rem;
}

.billing-card {
  align-items: flex-start;
  text-align: left;
  min-height: 120px;
}

.billing-card-primary {
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.45);
}

.billing-card-combined {
  padding: 0.9rem 1.1rem;
}

.billing-summary-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.billing-card-empty {
  justify-content: center;
}

.billing-empty-text {
  font-size: 0.85rem;
  color: #9ca3af;
  text-align: left;
}

.billing-card .dashboard-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.billing-card .dashboard-card-value {
  font-size: 1.1rem;
}

.billing-notes {
  margin-top: 0.9rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--dark-surface-a40);
  border-radius: 0;
  background-color: transparent;
}

.billing-notes-title {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
  color: #9ca3af;
}

.billing-notes-text {
  max-width: 360px;
  color: #9ca3af;
  font-size: 0.78rem;
  line-height: 1.45;
}

.billing-history-header {
  margin-top: 1.3rem;
}

.billing-history-table {
  margin-top: 0.4rem;
}

.billing-table thead th {
  font-size: 0.75rem;
  font-weight: 500;
  color: #9ca3af;
  padding-bottom: 0.35rem;
  text-align: center;
}

.billing-table tbody td {
  padding: 0.35rem 0;
  border-top: 1px solid rgba(31, 41, 55, 0.7);
  text-align: center;
}

.billing-table tbody tr:nth-child(even) td {
  background-color: rgba(17, 24, 39, 0.45);
}

.billing-history-table {
  border-radius: 0.75rem;
  overflow: hidden;
}

.billing-table thead {
  background-color: rgba(17, 24, 39, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.dash-light .billing-table thead {
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.dash-light .billing-table thead th {
  color: #6b7280;
}

.dash-light .billing-table tbody td {
  border-top: 1px solid #e5e7eb;
}

.dash-light .billing-table tbody tr:nth-child(even) td {
  background-color: #f9fafb;
}

.billing-status {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.billing-status-active {
  background-color: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.65);
  color: #4ade80;
}

.billing-status-expired {
  background-color: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.dash-light .billing-status-active {
  background-color: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.55);
  color: #166534;
}

.dash-light .billing-status-expired {
  background-color: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.55);
  color: #1f2937;
}

/* Featured slot purchased but not yet applied to a listing */
.billing-status-available {
  background-color: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.65);
  color: #93c5fd;
}

.dash-light .billing-status-available {
  background-color: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.55);
  color: #1d4ed8;
}

/* Row-type tag in the Plan column (Plan vs Featured) */
.billing-tag {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  margin-right: 0.4rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.billing-tag-plan {
  background-color: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #cbd5e1;
}

.billing-tag-featured {
  background-color: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.7);
  color: #fbbf24;
}

.dash-light .billing-tag-plan {
  background-color: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.5);
  color: #475569;
}

.dash-light .billing-tag-featured {
  background-color: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.6);
  color: #b45309;
}

.dashboard-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.dashboard-panel-title {
  font-size: 0.95rem;
  font-weight: 500;
}

.dashboard-badge-pill {
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-size: 0.75rem;
}

.dashboard-table-wrapper {
  margin-top: 0.5rem;
  overflow: visible;
}

.dashboard-listing-filters {
  margin-top: 0.25rem;
}

.dashboard-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.dashboard-filter-chip {
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: transparent;
  color: #9ca3af;
  padding: 0.15rem 0.7rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.dashboard-filter-chip.active {
  background: #111827;
  color: #e5e7eb;
  border-color: #334155;
}

.dashboard-listing-advanced {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dashboard-advanced-field {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

/* Advanced filters: all inputs and selects */
.dashboard-advanced-field input,
.dashboard-advanced-field select {
  background-color: var(--dark-surface-a10);
  border: 1px solid var(--dark-surface-a40);
  border-radius: 0.4rem;
  color: #e5e7eb;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  height: 32px;
  width: 120px;
}

.dashboard-advanced-field input::placeholder {
  color: #6b7280;
}

.dashboard-advanced-field input:focus,
.dashboard-advanced-field select:focus {
  border-color: #38bdf8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.dashboard-advanced-field label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.dashboard-table {
  width: 100%;
  font-size: 0.85rem;
}

.dashboard-saved-list-wrapper {
  margin-top: 0.25rem;
}

.dashboard-listing-list-wrapper {
  margin-top: 0.5rem;
}

.dashboard-saved-list,
.dashboard-listing-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-saved-item,
.dashboard-listing-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0.4rem;
  border-radius: 0.7rem;
  background-color: var(--dark-surface-a20);
  border: 1px solid var(--dark-surface-a40);
}

.dashboard-listing-thumb {
  width: 72px;
  height: 72px;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.dashboard-listing-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(12px);
  opacity: 0;
}

.dashboard-listing-thumb[style*='background-image']::after {
  opacity: 0;
}

.dashboard-saved-thumb,
.dashboard-saved-thumb {
  width: 64px;
  height: 64px;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.dashboard-saved-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dashboard-saved-thumb[style*='background-image']::after {
  opacity: 0;
}

.dashboard-saved-body,
.dashboard-listing-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dashboard-saved-title-row,
.dashboard-listing-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-saved-title,
.dashboard-listing-title {
  font-size: 0.9rem;
  font-weight: 500;
}

.dashboard-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.dashboard-chip {
  font-size: 0.7rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(17, 24, 39, 0.55);
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.dash-light .dashboard-chip {
  border-color: rgba(148, 163, 184, 0.7);
  background: #ffffff;
  color: #0f172a;
}

.dashboard-chip-sale {
  border-color: rgba(34, 197, 94, 0.8);
  color: #34d399;
}

.dash-light .dashboard-chip-sale {
  border-color: rgba(34, 197, 94, 0.6);
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.dashboard-chip-rent {
  border-color: rgba(96, 165, 250, 0.8);
  color: #93c5fd;
}

.dash-light .dashboard-chip-rent {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.dashboard-chip-maturity {
  border-color: rgba(148, 163, 184, 0.8);
  color: #cbd5f5;
}

.dash-light .dashboard-chip-maturity {
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(148, 163, 184, 0.16);
  color: #475569;
}

.dashboard-saved-meta,
.dashboard-listing-meta {
  font-size: 0.8rem;
  color: #9ca3af;
}

.dashboard-saved-actions,
.dashboard-listing-actions {
  margin-top: 0.25rem;
  display: flex;
  gap: 0.4rem;
}

/* Saved tab: make View/Remove buttons a bit more compact than default ref-btn-sm */
.dashboard-saved-actions .ref-btn-sm {
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
}

.dashboard-listing-status-text {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-right: 0.4rem;
}

.dashboard-listing-live-btn {
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.6);
}

.dashboard-listing-live-btn:hover {
  background: rgba(34, 197, 94, 0.3);
  color: #bbf7d0;
}

.dashboard-listing-paused-btn {
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.16); /* soft red */
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.7);
}

.dashboard-listing-paused-btn:hover {
  background: rgba(248, 113, 113, 0.26);
  color: #fecaca;
}

/* Dark mode: keep status buttons visibly green/red instead of generic dark ref-btn background */
.dark .dashboard-listing-live-btn {
  background: rgba(34, 197, 94, 0.24);
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.9);
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.9);
}

.dark .dashboard-listing-live-btn:hover {
  background: rgba(34, 197, 94, 0.32);
  color: #dcfce7;
}

.dark .dashboard-listing-paused-btn {
  background: rgba(248, 113, 113, 0.2);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.9);
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.9);
}

.dark .dashboard-listing-paused-btn:hover {
  background: rgba(248, 113, 113, 0.3);
  color: #fee2e2;
}

/* Make listing Edit buttons a bit shorter in height, not huge width change */
.dashboard-listing-edit-btn {
  padding: 0 0.55rem; /* keep reasonable width */
  height: 1.35rem;    /* reduce overall button height */
  font-size: 0.75rem; /* readable text */
  display: inline-flex;
  align-items: center; /* vertically center the label */
}

/* Dashboard button styles */
.dashboard-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.dashboard-btn:hover {
  background: #2563eb;
  color: white;
  text-decoration: none;
}

.dashboard-btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}

.dashboard-btn-primary {
  background: #3b82f6;
}

.dashboard-btn-primary:hover {
  background: #2563eb;
}

.dashboard-btn-secondary {
  background: #6b7280;
}

.dashboard-btn-secondary:hover {
  background: #4b5563;
}

/* Notification Bell Styles */
.dashboard-notifications {
  position: relative;
  display: inline-block;
  margin-right: 1rem;
}

.dashboard-notification-btn {
  position: relative;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 1.25rem;
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
}

.dashboard-notification-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.notification-badge {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: #ef4444;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 0.75rem;
  min-width: 1.25rem;
  text-align: center;
  line-height: 1;
}

.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.notification-header h6 {
  margin: 0;
  font-weight: 600;
  color: #111827;
}

.notification-clear-all {
  background: none;
  border: none;
  color: #3b82f6;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
}

.notification-clear-all:hover {
  color: #2563eb;
  text-decoration: underline;
}

.notification-list {
  max-height: 300px;
  overflow-y: auto;
}

.notification-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background-color 0.2s;
}

.notification-item:hover {
  background: #f9fafb;
}

.notification-item.unread {
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
}

.notification-title {
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.25rem;
}

.notification-message {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.notification-time {
  font-size: 0.75rem;
  color: #9ca3af;
}

.notification-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

/* User ticket replies modal */
.dashboard-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  z-index: 1050;
  overflow-y: auto;
}

.dashboard-modal {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 500px;
}

.dashboard-modal-lg {
  max-width: 800px;
}

.dashboard-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.dashboard-modal-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
}

.dashboard-modal-close {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.dashboard-modal-close:hover {
  color: #374151;
}

.dashboard-modal-body {
  padding: 1.5rem;
}

.dashboard-modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 0 1.5rem 1.5rem;
}

.dashboard-listing-edit-overlay {
  /* Full-viewport modal so the form is never clipped by the dashboard shell */
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.8);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1.5rem;
  z-index: 1050;
  overflow-y: auto;
}

.dashboard-listing-edit-panel {
  border-radius: 0.9rem;
  border: 1px solid var(--dark-surface-a40);
  background-color: var(--dark-surface-a20);
  padding: 1rem 1.1rem;
  width: min(1320px, 100%);
  box-shadow: var(--dark-shadow-lg);
}

.dashboard-listing-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.dashboard-listing-edit-sub {
  font-size: 0.8rem;
  color: #9ca3af;
}

.dashboard-listing-edit-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dashboard-listing-edit-body {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.dashboard-listing-edit-left,
.dashboard-listing-edit-right {
  flex: 1;
  min-width: 0;
}

.dashboard-listing-edit-card {
  border-radius: 0.8rem;
  border: 1px solid var(--dark-surface-a40);
  background-color: var(--dark-surface-a20);
  padding: 0.75rem 0.9rem;
}

.dashboard-listing-edit-card .form-control,
.dashboard-listing-edit-card .form-select {
  border-radius: 0.55rem;
  border-color: var(--dark-surface-a40);
  background-color: var(--dark-surface-a10);
  color: #e5e7eb;
}

.dashboard-listing-edit-card .form-control:focus,
.dashboard-listing-edit-card .form-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

/* Read-only (disabled) fields inside the edit listing form */
.dashboard-listing-edit-card .form-control[disabled],
.dashboard-listing-edit-card .form-control:disabled,
.dashboard-listing-edit-card .form-select[disabled],
.dashboard-listing-edit-card .form-select:disabled {
  background-color: var(--dark-surface-a10);
  color: #e5e7eb;
  border-color: var(--dark-surface-a40);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.4);
  cursor: not-allowed;
}

.dashboard-listing-edit-card-title {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

/* Emphasize required vs optional section headings in edit form */
.dashboard-listing-edit-card-title-required {
  color: #4ade80; /* green for required */
}

.dashboard-listing-edit-card-title-optional {
  color: #facc15; /* light yellow for optional */
}

.dashboard-listing-edit-fields {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dashboard-listing-edit-maturity {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 0.6rem;
  font-size: 0.8rem;
}

.dashboard-listing-edit-protection-row {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.dashboard-listing-edit-images {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.dashboard-listing-edit-image-slot {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  cursor: grab;
  transition: opacity 0.2s ease;
}

.dashboard-listing-edit-image-slot[draggable="true"]:active {
  cursor: grabbing;
}

.dashboard-listing-edit-image-slot.dragging {
  opacity: 0.4;
}

.dashboard-listing-edit-image-slot.drag-over {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.dashboard-listing-edit-image-empty {
  border-radius: 0.6rem;
  border: 1px dashed #4b5563;
  min-height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #9ca3af;
  cursor: pointer;
  background: radial-gradient(circle at 10% 0%, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.7));
}

.dashboard-listing-edit-image-thumb-wrapper {
  position: relative;
}

.dashboard-listing-hero-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.dashboard-listing-edit-image-thumb {
  border-radius: 0.6rem;
  border: 1px solid #4b5563;
  min-height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  padding: 0.25rem;
  text-align: center;
}

.dashboard-listing-edit-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.55rem;
}

.dashboard-listing-edit-image-remove {
  position: absolute;
  top: 2px;
  right: 4px;
  border: none;
  background: rgba(17, 24, 39, 0.85);
  color: #e5e7eb;
  border-radius: 999px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
}

.dashboard-listing-edit-image-error {
  font-size: 0.7rem;
  color: #fca5a5;
}

.dashboard-listing-edit-help {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.dashboard-table-wrapper {
  position: relative;
  overflow-x: hidden;
}

.dashboard-toast-container {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4000;
  pointer-events: none;
}

.dashboard-toast {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.5);
  pointer-events: auto;
  min-width: 320px;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-toast-success {
  background: #ecfdf3;
  color: #166534;
  border: 2px solid #22c55e;
}

.dashboard-toast-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 2px solid #ef4444;
}

.dashboard-toast-warning {
  background: #fffbeb;
  color: #92400e;
  border: 2px solid #f59e0b;
}

.dashboard-toast-text {
  flex: 1;
  font-weight: 600;
}

.dashboard-toast-close {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 12px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.dashboard-toast-close:hover {
  opacity: 1;
}

.dashboard-segment-toggle {
  display: inline-flex;
  gap: 0.35rem;
}

/* Let ref-btn handle most styling; only slightly tweak font size if needed */
.dashboard-segment-toggle-btn {
  font-size: 0.75rem;
}

.dashboard-segment-toggle-btn.ref-btn-primary,
.dashboard-segment-toggle-btn.ref-btn-secondary {
  padding-inline: 0.9rem;
}

/* Highlight the selected listing type (For Sale / For Rent) */
.dashboard-segment-toggle-btn.ref-btn-primary {
  background: linear-gradient(145deg, #22c55e, #16a34a);
  color: #ecfdf3 !important;
  border-color: rgba(34, 197, 94, 0.8);
}

.dark .dashboard-segment-toggle-btn.ref-btn-primary {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.35), rgba(22, 163, 74, 0.35));
  color: #bbf7d0 !important;
  border-color: rgba(34, 197, 94, 0.9);
}

.dashboard-profile-panel {
  padding: 1.4rem 1.5rem;
}

.dashboard-profile-main {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.dashboard-profile-main-left {
  flex: 1;
  min-width: 0;
  border-radius: 0.8rem;
  border: 1px solid var(--dark-surface-a40);
  padding: 0.9rem 1rem;
  background: var(--dark-surface-a20);
}

.dashboard-profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.dashboard-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 1.1rem;
  background: radial-gradient(circle at 30% 30%, #38bdf8, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.6rem;
}

.dashboard-profile-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dashboard-profile-name {
  font-size: 1.05rem;
  font-weight: 600;
}

.dashboard-profile-meta-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dashboard-profile-plan-pill {
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.16);
  color: #6ee7b7;
  font-size: 0.75rem;
}

.dashboard-profile-status-text {
  font-size: 0.8rem;
  color: #9ca3af;
}

.dashboard-profile-main-right {
  flex: 1;
  min-width: 0;
  border-radius: 0.8rem;
  border: 1px solid var(--dark-surface-a40);
  padding: 0.9rem 1rem;
  background: var(--dark-surface-a20);
}

.dashboard-profile-fields {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.dashboard-profile-field-row {
  display: flex;
  gap: 0.85rem;
  font-size: 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--dark-surface-a40);
  align-items: center;
}

.dashboard-field-locked {
  position: relative;
  opacity: 0.7;
}

.dashboard-field-locked .form-control,
.dashboard-field-locked input,
.dashboard-field-locked select {
  cursor: not-allowed;
  background-color: rgba(148, 163, 184, 0.08) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
  color: #9ca3af !important;
}

.dashboard-field-locked .form-control:disabled {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-field-locked:hover {
  opacity: 1;
}

.dashboard-field-locked::after {
  content: attr(data-lock-tip);
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
  background: rgba(17, 24, 39, 0.92);
  color: #f9fafb;
  font-size: 0.72rem;
  line-height: 1.2;
  width: max-content;
  max-width: 280px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 3;
}

.dashboard-field-locked:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-profile-field-row:last-child {
  border-bottom: none;
}

.dashboard-profile-field-row-stacked {
  flex-direction: column;
  align-items: stretch;
}

.dashboard-profile-field-row-stacked .dashboard-profile-field-label {
  margin-bottom: 0.25rem;
}

.dashboard-profile-field-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  flex: 0 0 140px;
}

.dashboard-field-helper {
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 0.35rem;
  opacity: 0.8;
}

.dash-light .dashboard-field-helper {
  color: #6b7280;
}

.dashboard-char-counter {
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: #9ca3af;
  text-align: right;
}

.dash-light .dashboard-char-counter {
  color: #6b7280;
}

.dashboard-profile-field-value {
  flex: 1;
  text-align: left;
  color: #e5e7eb;
  display: block;
}

.dashboard-profile-field-value textarea {
  background-color: #f7f7f7;
  border-radius: 0.4rem;
  min-height: 110px !important;
  resize: vertical;
}

.dashboard-language-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #374151;
  font-size: 0.75rem;
  color: #e5e7eb;
  margin-left: 0.25rem;
}

.dashboard-profile-bottom {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.dashboard-profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.dashboard-profile-edit-btn {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.75rem;
  color: #9ca3af;
  cursor: pointer;
}

.dashboard-profile-edit-btn:hover {
  color: #e5e7eb;
}

.dashboard-profile-bio-section {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dashboard-profile-right-rail {
  flex: 1.4;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-profile-social {
  margin-top: 1.1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--dark-surface-a40);
}

.dashboard-profile-social-items {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.dashboard-profile-social-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dashboard-profile-social-item .form-control {
  flex: 1;
  min-width: 0;
  background: var(--dark-surface-a10) !important;
  border: 1px solid var(--dark-surface-a40) !important;
  border-radius: 0.75rem !important;
  color: #e5e7eb !important;
  padding: 0.55rem 0.9rem !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-profile-social-item .form-control:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.dash-light .dashboard-profile-social-item .form-control {
  background-color: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.08);
}

.dashboard-profile-social-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
}

.dashboard-profile-bio {
  font-size: 0.85rem;
  line-height: 1.5;
}

.dashboard-profile-bio-preview {
  margin: 0.35rem 0 0;
  color: #e5e7eb;
}

/* Light mode: About preview text should be dark on light background */
.dash-light .dashboard-profile-bio-preview {
  color: #111827;
}

.dashboard-bio-textarea {
  resize: vertical;
  min-height: 150px;
  font-size: 0.85rem;
  width: 100%;
  display: block;
  background-color: var(--dark-surface-a10);
  border: 1px solid var(--dark-surface-a40);
  color: #e5e7eb;
}

/* Light mode: ensure About textarea text is dark and readable */
.dash-light .dashboard-bio-textarea {
  background-color: #ffffff;
  border-color: #9ca3af;
  border-width: 1.5px;
  color: #111827;
}

.dash-light .dashboard-bio-textarea::placeholder {
  color: #9ca3af;
}

.dashboard-bio-counter {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #6b7280;
  text-align: right;
}

.dashboard-profile-link {
  font-size: 0.85rem;
  margin-top: 1.1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--dark-surface-a40);
}

.dashboard-profile-link-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.dashboard-profile-link-row .form-control {
  flex: 1;
  min-width: 0;
  background: var(--dark-surface-a10) !important;
  border: 1px solid var(--dark-surface-a40) !important;
  border-radius: 0.75rem !important;
  color: #e5e7eb !important;
  padding: 0.55rem 0.9rem !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-profile-link-row .ref-btn {
  flex-shrink: 0;
}

.dashboard-profile-link-row .form-control:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.dash-light .dashboard-profile-link-row .form-control {
  background-color: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.08);
}

.dashboard-profile-social-links {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.8rem;
}

.dashboard-profile-social-links a {
  color: #93c5fd;
  text-decoration: none;
}

.dashboard-profile-social-links a:hover {
  text-decoration: underline;
}

.dashboard-profile-social-placeholder {
  color: #6b7280 !important;
}

.dashboard-status-pill {
  border-radius: 999px;
  padding: 0.1rem 0.65rem;
  font-size: 0.75rem;
}

.dashboard-status-pill.draft {
  background-color: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

.dashboard-status-pill.active {
  background-color: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.dashboard-status-pill.inactive {
  background-color: rgba(248, 113, 113, 0.15);
  color: #f97373;
}

.dashboard-empty {
  padding: 1.25rem 0;
  color: #9ca3af;
}

/* Support ticket list */
.dashboard-support-ticket-table {
  margin-top: 0.25rem;
  border-radius: 0.6rem;
  border: 1px solid var(--dark-surface-a40);
  background-color: var(--dark-surface-a20);
  overflow: hidden;
  font-size: 0.8rem;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.dashboard-support-ticket-table thead {
  background-color: rgba(17, 24, 39, 0.9);
}

.dashboard-support-ticket-row-head th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.dashboard-support-ticket-table-body .dashboard-support-ticket-row {
  border-top: 1px solid rgba(17, 24, 39, 0.85);
}

.dashboard-support-ticket-table-body .dashboard-support-ticket-row:nth-child(even) {
  background-color: rgba(17, 24, 39, 0.55);
}

.dashboard-support-ticket-table-body .dashboard-support-ticket-row:hover {
  background-color: rgba(17, 24, 39, 0.85);
}

.dashboard-support-ticket-cell {
  min-width: 0;
  overflow: hidden;
  padding: 0.45rem 0.75rem;
  vertical-align: middle;
}

.dashboard-support-ticket-cell.col-ticket {
  font-weight: 600;
  font-size: 0.8rem;
  color: #e5e7eb;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dashboard-support-ticket-cell.col-subject {
  color: #e5e7eb;
}

.dashboard-support-ticket-cell.col-status {
  text-align: left;
}

.dashboard-support-ticket-cell.col-created {
  font-size: 0.75rem;
  color: #9ca3af;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dashboard-support-ticket-reason {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.dashboard-support-ticket-message {
  font-size: 0.78rem;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-support-ticket-status {
  font-size: 0.75rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.dashboard-support-ticket-status.status-open {
  background-color: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.6);
  color: #bbf7d0;
}

.dashboard-support-ticket-status.status-in-progress {
  background-color: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.6);
  color: #facc15;
}

.dashboard-support-ticket-status.status-closed {
  background-color: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.dashboard-support-ticket-empty {
  font-size: 0.8rem;
  color: #9ca3af;
  padding-top: 0.5rem;
}

/* Support ticket cards (SaaS-style) */
.dashboard-support-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.dashboard-support-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.7rem;
  background-color: var(--dark-surface-a20);
  border: 1px solid var(--dark-surface-a40);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.06s ease;
}

.dashboard-support-item:hover {
  background-color: var(--dark-surface-a10);
  border-color: var(--dark-surface-a50);
}

.support-item-left { flex: 1; min-width: 0; }
.support-item-right { text-align: right; color: #9ca3af; font-size: 0.78rem; }

.support-ticket-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.support-ticket-number {
  font-weight: 600;
  font-size: 0.82rem;
  color: #e5e7eb;
}

.support-ticket-subject {
  font-size: 0.92rem;
  font-weight: 500;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-ticket-message {
  margin-top: 0.1rem;
  font-size: 0.8rem;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-ticket-date { white-space: nowrap; }

/* Light theme overrides for support cards */
.dash-light .dashboard-support-item {
  background-color: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.08);
}

.dash-light .dashboard-support-item:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.dash-light .support-item-right {
  color: #475569;
}

.dash-light .support-ticket-number,
.dash-light .support-ticket-subject {
  color: #0f172a;
}

.dash-light .support-ticket-message {
  color: #475569;
}

.dash-light .dashboard-support-ticket-status.status-open {
  background-color: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.6);
  color: #166534;
}

.dash-light .dashboard-support-ticket-status.status-in-progress {
  background-color: rgba(234, 179, 8, 0.2);
  border-color: rgba(234, 179, 8, 0.55);
  color: #854d0e;
}

.dash-light .dashboard-support-ticket-status.status-closed {
  background-color: rgba(148, 163, 184, 0.22);
  border-color: rgba(148, 163, 184, 0.55);
  color: #1f2937;
}

/* Status pill colors */
.dashboard-status-pill.paused,
.dashboard-status-pill.expired {
  background-color: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.dashboard-footer {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Dark mode form controls */
.dashboard-profile-field-value .form-control,
.dashboard-profile-field-value .form-select,
.dashboard-profile-field-value textarea,
.dashboard-profile-field-value input[type="text"],
.dashboard-profile-field-value input[type="number"],
.dashboard-profile-field-value input[type="url"] {
  background: var(--dark-surface-a10) !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  color: #e5e7eb !important;
  font-size: 0.9rem !important;
  line-height: 1.2 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  width: 100%;
  display: block;
}



.dashboard-profile-field-value textarea {
  min-height: 110px !important;
  resize: vertical !important;
  line-height: 1.4 !important;
}

/* Force Bootstrap textareas (form-control-sm) to allow resizing */
.dashboard-profile-field-value textarea.form-control,
.dashboard-profile-field-value textarea.form-control-sm {
  resize: vertical !important;
}

.dash-light .dashboard-profile-field-value .form-control,
.dash-light .dashboard-profile-field-value .form-select,
.dash-light .dashboard-profile-field-value textarea,
.dash-light .dashboard-profile-field-value input[type="text"],
.dash-light .dashboard-profile-field-value input[type="number"],
.dash-light .dashboard-profile-field-value input[type="url"] {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.08);
}

.dash-light .dashboard-profile-field-value .form-control:focus,
.dash-light .dashboard-profile-field-value .form-select:focus,
.dash-light .dashboard-profile-field-value textarea:focus,
.dash-light .dashboard-profile-field-value input[type="text"]:focus,
.dash-light .dashboard-profile-field-value input[type="number"]:focus,
.dash-light .dashboard-profile-field-value input[type="url"]:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
  background-color: #ffffff !important;
}

.dashboard-panel .form-control:focus,
.dashboard-panel .form-select:focus,
.dashboard-profile-fields .form-control:focus,
.dashboard-profile-social .form-control:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
  outline: none;
}

/* Light theme overrides */
.dash-light.dashboard-page-root {
  /* slightly darker frame so the shell and cards don't feel blinding */
  background-color: #d4d4d8;
}

.dash-light .dashboard-shell {
  background-color: #f3f4f6;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
}

.dash-light .dashboard-sidebar {
  background: #ffffff;
  color: #0f172a;
  border-right: 1px solid #d4d4d8;
}

.dash-light .dashboard-sidebar-activity {
  border-color: #d4d4d8;
  background-color: #f3f4f6;
}

.dash-light .dashboard-back-link {
  color: #1d4ed8;
}

.dash-light .dashboard-back-link:hover {
  color: #1e40af;
}

.dash-light .dashboard-main {
  background-color: #f3f4f6;
  color: #0f172a;
}

.dash-light .dashboard-nav-group-title {
  color: #9ca3af;
}

.dash-light .dashboard-nav-link {
  color: #4b5563;
}

.dash-light .dashboard-nav-link:hover {
  background: rgba(148, 163, 184, 0.16);
  color: #111827;
}

.dash-light .dashboard-nav-link.active {
  background: #111827;
  color: #f9fafb;
}

.dash-light .dashboard-card,
.dash-light .dashboard-panel {
  background-color: #f9fafb;
  border-color: #9ca3af; /* darker border in light mode */
}

.dash-light .dashboard-profile-main-left,
.dash-light .dashboard-profile-main-right {
  background: #f9fafb;
  border-color: #9ca3af; /* darker border for profile panels */
}

.dash-light .dashboard-language-chip {
  border-color: #9ca3af; /* darker chip border */
  background-color: #f9fafb;
  color: #111827;
}

.dash-light .dashboard-profile-plan-pill {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.dash-light .dashboard-saved-item,
.dash-light .dashboard-listing-item {
  background-color: #f9fafb;
  border-color: #d4d4d8;
}

/* Light mode overrides for listing edit form */
.dash-light .dashboard-listing-edit-panel {
  background-color: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
}

.dash-light .dashboard-listing-edit-card {
  background-color: #ffffff;
  border-color: #cbd5e1;
}

.dash-light .dashboard-listing-edit-card .form-control,
.dash-light .dashboard-listing-edit-card .form-select {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  border-width: 1.5px;
  color: #0f172a;
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.08);
}

.dash-light .dashboard-listing-edit-card .form-control:focus,
.dash-light .dashboard-listing-edit-card .form-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
  background-color: #ffffff;
}

/* Light mode text colors for edit form labels and inline controls */
.dash-light .dashboard-listing-edit-card,
.dash-light .dashboard-listing-edit-card-title,
.dash-light .dashboard-listing-edit-fields,
.dash-light .dashboard-listing-edit-maturity,
.dash-light .dashboard-listing-edit-help,
.dash-light .dashboard-profile-field-label,
.dash-light .dashboard-profile-field-value {
  color: #111827;
}

/* Light theme colors for required/optional headings */
.dash-light .dashboard-listing-edit-card-title-required {
  color: #15803d; /* darker green for light bg */
}

.dash-light .dashboard-listing-edit-card-title-optional {
  color: #b45309; /* amber tone for light bg */
}

.dash-light .dashboard-listing-edit-maturity .form-check-label,
.dash-light .dashboard-listing-edit-maturity label {
  color: #111827;
}

.dash-light .dashboard-listing-edit-card .form-control[disabled],
.dash-light .dashboard-listing-edit-card .form-control:disabled,
.dash-light .dashboard-listing-edit-card .form-select[disabled],
.dash-light .dashboard-listing-edit-card .form-select:disabled {
  background-color: #e2e8f0;
  border-color: #cbd5e1;
  color: #475569;
}

/* Make radio/checkbox controls more visible in light mode */
.dash-light .dashboard-listing-edit-card .form-check-input {
  accent-color: #111827;
  border-color: #4b5563;
}

/* Checkbox group spacing improvements */
.dashboard-listing-edit-card .form-check-label {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease;
  min-width: fit-content;
  white-space: nowrap;
}

.dashboard-listing-edit-card .form-check-label:hover {
  background-color: var(--dark-surface-a10);
}

.dash-light .dashboard-listing-edit-card .form-check-label:hover {
  background-color: #f1f5f9;
}

.dashboard-listing-edit-card .form-check-input {
  margin-right: 0.5rem;
  margin-top: 0;
}

/* Ensure checkbox containers have proper spacing */
#edit-protection-flags,
#edit-zoning-flags,
#edit-position-flags,
#edit-activity-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
  line-height: 1.4;
}

.dash-light .dashboard-profile-social-icon {
  border-color: #9ca3af; /* darker circle border */
  background-color: #f9fafb;
  color: #111827;
}

/* Light mode form controls */
.dash-light .dashboard-panel .form-control,
.dash-light .dashboard-panel .form-select,
.dash-light .dashboard-profile-fields .form-control,
.dash-light .dashboard-profile-fields .form-select,
.dash-light .dashboard-profile-social .form-control,
.dash-light .dashboard-profile-link .form-control {
  background-color: #ffffff;
  border: 1.5px solid #9ca3af;
  color: #111827;
}

.dash-light .dashboard-panel .form-control::placeholder,
.dash-light .dashboard-profile-fields .form-control::placeholder,
.dash-light .dashboard-profile-social .form-control::placeholder {
  color: #6b7280;
}

/* Light mode profile text */
.dash-light .dashboard-profile-name {
  color: #111827;
}

.dash-light .dashboard-profile-bio-preview {
  color: #111827;
}

.dash-light .dashboard-profile-field-row {
  border-color: #d4d4d8;
}

/* Light mode sidebar activity text */
.dash-light .dashboard-sidebar-activity-list {
  color: #4b5563;
}

.dash-light .dashboard-card-label {
  color: #6b7280;
}

.dash-light .dashboard-card-value {
  color: #111827;
}

.dash-light .dashboard-title {
  color: #111827;
}

.dash-light .dashboard-subtitle {
  color: #6b7280;
}

.dash-light .dashboard-search input {
  background-color: #f3f4f6;
  border-color: #9ca3af; /* darker input border */
  border-width: 1.5px;
  color: #111827;
}

.dash-light .dashboard-search input::placeholder {
  color: #9ca3af;
}

.dash-light .dashboard-icon-button {
  background-color: #f3f4f6;
  border-color: #d4d4d8;
  color: #111827;
}

.dash-light .dashboard-icon-button:hover {
  background-color: #e5e7eb;
  border-color: #d1d5db;
}

.dash-light .dashboard-empty {
  color: #6b7280;
}

/* Light mode listing and saved item text */
.dash-light .dashboard-listing-title,
.dash-light .dashboard-saved-title {
  color: #111827;
}

.dash-light .dashboard-listing-meta,
.dash-light .dashboard-saved-meta {
  color: #4b5563;
}

.dash-light .dashboard-listing-status-text {
  color: #6b7280;
}

/* Light mode panel title */
.dash-light .dashboard-panel-title {
  color: #111827;
}

/* Light mode filter chips */
.dash-light .dashboard-filter-chip {
  border-color: #9ca3af;
  color: #4b5563;
}

.dash-light .dashboard-filter-chip.active {
  background: #111827;
  color: #f9fafb;
  border-color: #111827;
}

/* Light mode advanced filter labels */
.dash-light .dashboard-advanced-field label {
  color: #4b5563;
}

/* Light mode filter inputs */
.dash-light .dashboard-advanced-field input,
.dash-light .dashboard-advanced-field select {
  background-color: #ffffff;
  border: 1px solid #9ca3af;
  color: #111827;
}

/* Light mode: ensure outline action buttons (Deactivate/Delete/etc.) are visible */
.dash-light .dashboard-listing-actions .btn-outline-light,
.dash-light .dashboard-saved-actions .btn-outline-light {
  color: #111827;
  border-color: #9ca3af;
  background-color: #f9fafb;
}

.dashboard-delete-overlay,
.dashboard-announcement-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.dashboard-delete-dialog,
.dashboard-announcement-dialog {
  background-color: var(--dark-surface-a20);
  border-radius: 0.75rem;
  border: 1px solid var(--dark-surface-a40);
  padding: 1rem 1.25rem;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--dark-shadow-lg);
}

.dashboard-delete-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.dashboard-delete-body {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.dashboard-delete-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}

.dashboard-announcement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.dashboard-announcement-title {
  font-size: 0.95rem;
  font-weight: 500;
}

.dashboard-announcement-close {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.dashboard-announcement-body {
  font-size: 0.85rem;
  color: #e5e7eb;
  max-height: 320px;
  overflow-y: auto;
}

.dashboard-announcement-footer {
  margin-top: 0.85rem;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 992px) {
  .dashboard-page-root {
    padding: 1rem;
  }
  .dashboard-shell {
    flex-direction: column;
    min-height: auto;
  }
  .dashboard-sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .dashboard-main {
    padding: 1rem;
  }
  .dashboard-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .dashboard-row {
    grid-template-columns: 1fr;
  }
  .dashboard-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .dashboard-search {
    width: 100%;
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENHANCED USER DASHBOARD - ANALYTICS (ud- prefix)
   ═══════════════════════════════════════════════════════════════════════════ */

/* KPI Cards Row */
.ud-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ud-kpi-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.ud-kpi-card:nth-child(1) { animation-delay: 0.1s; }
.ud-kpi-card:nth-child(2) { animation-delay: 0.2s; }
.ud-kpi-card:nth-child(3) { animation-delay: 0.3s; }
.ud-kpi-card:nth-child(4) { animation-delay: 0.4s; }

.ud-kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.15);
}

.dash-light .ud-kpi-card {
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.dash-light .ud-kpi-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.ud-kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.ud-kpi-regions .ud-kpi-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.ud-kpi-properties .ud-kpi-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.ud-kpi-land .ud-kpi-icon {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.ud-kpi-value .ud-kpi-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.ud-kpi-content {
  flex: 1;
  min-width: 0;
}

.ud-kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.dash-light .ud-kpi-value {
  color: #111827;
}

.ud-kpi-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #9ca3af;
  margin-top: 0.125rem;
}

.dash-light .ud-kpi-label {
  color: #6b7280;
}

.ud-kpi-sub {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.125rem;
}

.dash-light .ud-kpi-sub {
  color: #9ca3af;
}

/* Charts Grid */
.ud-charts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ud-chart-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  padding: 1.25rem;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

.dash-light .ud-chart-card {
  background: #fff;
  border-color: #e5e7eb;
}

.ud-chart-header {
  margin-bottom: 1rem;
}

.ud-chart-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem 0;
}

.dash-light .ud-chart-title {
  color: #111827;
}

.ud-chart-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
}

.ud-chart-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Donut Chart */
.ud-donut-container {
  position: relative;
  width: 120px;
  height: 120px;
}

.ud-donut {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(#374151 0deg 360deg);
  transition: background 0.8s ease;
}

.ud-donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: var(--dark-surface-a10, #0d1117);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dash-light .ud-donut-center {
  background: #fff;
}

.ud-donut-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.dash-light .ud-donut-value {
  color: #111827;
}

.ud-donut-label {
  font-size: 0.625rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Chart Legend */
.ud-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.ud-legend-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  color: #9ca3af;
}

.ud-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Bar Charts Grid */
.ud-bars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ud-chart-wide {
  animation-delay: 0.5s;
}

.ud-bars-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ud-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ud-bar-label {
  width: 100px;
  font-size: 0.75rem;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.dash-light .ud-bar-label {
  color: #6b7280;
}

.ud-bar-track {
  flex: 1;
  height: 24px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.dash-light .ud-bar-track {
  background: #f1f5f9;
}

.ud-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-width: 2px;
}

.ud-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.ud-bar-value {
  width: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-align: right;
  flex-shrink: 0;
}

.dash-light .ud-bar-value {
  color: #111827;
}

/* Bar Colors */
.ud-bar-fill.blue { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.ud-bar-fill.green { background: linear-gradient(90deg, #10b981, #34d399); }
.ud-bar-fill.purple { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.ud-bar-fill.amber { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.ud-bar-fill.pink { background: linear-gradient(90deg, #ec4899, #f472b6); }
.ud-bar-fill.cyan { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.ud-bar-fill.red { background: linear-gradient(90deg, #ef4444, #f87171); }
.ud-bar-fill.gray { background: linear-gradient(90deg, #6b7280, #9ca3af); }

/* Efficiency Card */
.ud-efficiency-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

.dash-light .ud-efficiency-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border-color: #bfdbfe;
}

.ud-efficiency-header {
  margin-bottom: 1rem;
}

.ud-efficiency-body {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.ud-efficiency-stat {
  flex-shrink: 0;
}

.ud-efficiency-value {
  font-size: 2rem;
  font-weight: 700;
  color: #3b82f6;
  line-height: 1;
}

.ud-efficiency-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-left: 0.25rem;
}

.ud-efficiency-bar-container {
  flex: 1;
  height: 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
}

.dash-light .ud-efficiency-bar-container {
  background: rgba(0,0,0,0.1);
}

.ud-efficiency-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 6px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.ud-efficiency-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

.ud-efficiency-range {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* Empty State */
.ud-empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.ud-empty-state i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

/* Activate button attention effects */
@keyframes activateButtonShake {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-2px); }
  20% { transform: translateX(2px); }
  30% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  50% { transform: translateX(-1px); }
  60% { transform: translateX(1px); }
  70% { transform: translateX(-1px); }
  80% { transform: translateX(1px); }
  90% { transform: translateX(0); }
}

@keyframes activateButtonRGBGlow {
  0% { 
    border-color: rgba(255, 0, 0, 0.6);
    box-shadow: 0 0 0 1px rgba(255, 0, 0, 0.3);
  }
  16.66% { 
    border-color: rgba(255, 165, 0, 0.6);
    box-shadow: 0 0 0 1px rgba(255, 165, 0, 0.3);
  }
  33.33% { 
    border-color: rgba(255, 255, 0, 0.6);
    box-shadow: 0 0 0 1px rgba(255, 255, 0, 0.3);
  }
  50% { 
    border-color: rgba(0, 255, 0, 0.6);
    box-shadow: 0 0 0 1px rgba(0, 255, 0, 0.3);
  }
  66.66% { 
    border-color: rgba(0, 0, 255, 0.6);
    box-shadow: 0 0 0 1px rgba(0, 0, 255, 0.3);
  }
  83.33% { 
    border-color: rgba(75, 0, 130, 0.6);
    box-shadow: 0 0 0 1px rgba(75, 0, 130, 0.3);
  }
  100% { 
    border-color: rgba(148, 0, 211, 0.6);
    box-shadow: 0 0 0 1px rgba(148, 0, 211, 0.3);
  }
}

.activate-button-attention {
  animation: activateButtonRGBGlow 4s ease-in-out infinite !important;
  position: relative;
}

.activate-button-attention.shake {
  animation: activateButtonShake 0.6s ease-in-out, activateButtonRGBGlow 4s ease-in-out infinite !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOW TO LIST - GUIDE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.how-to-intro {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-radius: 1rem;
  margin-bottom: 2rem;
  border-left: 4px solid #3b82f6;
}

.how-to-intro p {
  margin: 0 0 0.5rem 0;
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.6;
}

.how-to-intro p:last-child {
  margin-bottom: 0;
}

.dash-light .how-to-intro {
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
}

.dash-light .how-to-intro p {
  color: #374151;
}

/* Steps */
.how-to-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.how-to-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.how-to-step:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.dash-light .how-to-step {
  background: #fff;
  border-color: #e5e7eb;
}

.dash-light .how-to-step:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.how-to-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.how-to-step:nth-child(2) .how-to-step-number {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.how-to-step:nth-child(3) .how-to-step-number {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.how-to-step:nth-child(4) .how-to-step-number {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.how-to-step:nth-child(5) .how-to-step-number {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.how-to-step-content {
  flex: 1;
}

.how-to-step-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
}

.dash-light .how-to-step-content h4 {
  color: #111827;
}

.how-to-step-content p {
  margin: 0;
  font-size: 0.9375rem;
  color: #9ca3af;
  line-height: 1.5;
}

.dash-light .how-to-step-content p {
  color: #6b7280;
}

.how-to-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 0.5rem;
  color: #60a5fa;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.how-to-link:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
  color: #93c5fd;
}

.dash-light .how-to-link {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.dash-light .how-to-link:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

/* Tips Box */
.how-to-tips {
  padding: 1.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.how-to-tips h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dash-light .how-to-tips {
  background: #fffbeb;
  border-color: #fde68a;
}

.dash-light .how-to-tips h4 {
  color: #b45309;
}

.how-to-tips ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-to-tips li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: #d1d5db;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.how-to-tips li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dash-light .how-to-tips li {
  color: #4b5563;
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

/* Help Footer */
.how-to-help {
  text-align: center;
  padding: 1rem;
  color: #6b7280;
  font-size: 0.9375rem;
}

.how-to-support-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
}

.how-to-support-link:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.dash-light .how-to-support-link {
  color: #2563eb;
}

.dash-light .how-to-support-link:hover {
  color: #1d4ed8;
}

/* Responsive */
@media (max-width: 640px) {
  .how-to-step {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .how-to-step-number {
    margin: 0 auto;
  }
}

/* OLD STYLES BELOW - keeping for compatibility */
.ud-welcome-sub {
  color: #9ca3af;
  font-size: 0.875rem;
  margin: 0;
}

.dash-light .ud-welcome-sub {
  color: #6b7280;
}

/* Subscription Card */
.ud-subscription-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border: 1px solid #1e40af;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  min-width: 280px;
}

.dash-light .ud-subscription-card {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  border-color: #93c5fd;
}

.ud-sub-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
}

.ud-sub-info {
  flex: 1;
  min-width: 0;
}

.ud-sub-plan {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #fff;
}

.dash-light .ud-sub-plan {
  color: #1e40af;
}

.ud-sub-detail {
  font-size: 0.75rem;
  color: #93c5fd;
}

.dash-light .ud-sub-detail {
  color: #3b82f6;
}

.ud-sub-action {
  font-size: 0.75rem;
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.ud-sub-action:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.dash-light .ud-sub-action {
  color: #2563eb;
}

/* Stats Grid */
.ud-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ud-stat-card {
  background: var(--dark-surface-a20);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dash-light .ud-stat-card {
  background: #fff;
  border-color: #e5e7eb;
}

.ud-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.ud-stat-icon-listings {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.ud-stat-icon-active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.ud-stat-icon-draft {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.ud-stat-icon-slots {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
}

.ud-stat-content {
  flex: 1;
  min-width: 0;
}

.ud-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.dash-light .ud-stat-value {
  color: #111827;
}

.ud-stat-label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.125rem;
}

.dash-light .ud-stat-label {
  color: #6b7280;
}

/* Two Column Layout */
.ud-two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.ud-panel {
  background: var(--dark-surface-a20);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.dash-light .ud-panel {
  background: #fff;
  border-color: #e5e7eb;
}

.ud-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.ud-panel-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.dash-light .ud-panel-title {
  color: #111827;
}

.ud-panel-link {
  font-size: 0.75rem;
  color: #60a5fa;
  text-decoration: none;
}

.ud-panel-link:hover {
  text-decoration: underline;
}

.dash-light .ud-panel-link {
  color: #2563eb;
}

/* Properties List */
.ud-properties-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 320px;
  overflow-y: auto;
}

.ud-property-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s;
}

.ud-property-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dash-light .ud-property-item {
  background: #f9fafb;
}

.dash-light .ud-property-item:hover {
  background: #f3f4f6;
}

.ud-property-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: #1f2937;
  object-fit: cover;
  flex-shrink: 0;
}

.dash-light .ud-property-thumb {
  background: #e5e7eb;
}

.ud-property-info {
  flex: 1;
  min-width: 0;
}

.ud-property-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-light .ud-property-name {
  color: #111827;
}

.ud-property-meta {
  font-size: 0.75rem;
  color: #9ca3af;
}

.dash-light .ud-property-meta {
  color: #6b7280;
}

.ud-property-status {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ud-property-status.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.ud-property-status.draft {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
}

.ud-property-status.paused {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.ud-property-status.expired {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Quick Actions */
.ud-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ud-action-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.15s;
}

.ud-action-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dash-light .ud-action-item {
  background: #f9fafb;
}

.dash-light .ud-action-item:hover {
  background: #f3f4f6;
}

.ud-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.dash-light .ud-action-icon {
  background: #dbeafe;
  color: #2563eb;
}

.ud-action-text {
  flex: 1;
}

.ud-action-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
}

.dash-light .ud-action-title {
  color: #111827;
}

.ud-action-desc {
  font-size: 0.75rem;
  color: #9ca3af;
}

.dash-light .ud-action-desc {
  color: #6b7280;
}

/* Help Card */
.ud-help-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 0.5rem;
}

.dash-light .ud-help-card {
  background: linear-gradient(135deg, #d1fae5 0%, #cffafe 100%);
  border-color: #6ee7b7;
}

.ud-help-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.dash-light .ud-help-icon {
  background: #a7f3d0;
  color: #059669;
}

.ud-help-content {
  flex: 1;
  min-width: 0;
}

.ud-help-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #10b981;
}

.dash-light .ud-help-title {
  color: #059669;
}

.ud-help-desc {
  font-size: 0.75rem;
  color: #6ee7b7;
}

.dash-light .ud-help-desc {
  color: #047857;
}

.ud-help-btn {
  font-size: 0.75rem;
  font-weight: 500;
  color: #10b981;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.375rem 0.75rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 0.375rem;
  transition: all 0.15s;
}

.ud-help-btn:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
}

.dash-light .ud-help-btn {
  color: #059669;
  border-color: #6ee7b7;
}

.dash-light .ud-help-btn:hover {
  background: #d1fae5;
}

/* Empty State */
.ud-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .ud-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ud-two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ud-welcome-section {
    flex-direction: column;
    align-items: stretch;
  }
  .ud-subscription-card {
    min-width: 0;
  }
  .ud-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Mobile dashboard fixes (phone <=640px)
   ============================================================ */
@media (max-width: 640px) {
  /* Reduce outer page padding so content actually fits the viewport */
  .dashboard-page-root {
    padding: 0.5rem;
  }
  .dashboard-main {
    padding: 0.75rem;
    min-width: 0;
  }

  /* Sidebar: revert from "horizontal toolbar" (set at 992px) back to vertical
     stack on phones. The horizontal layout doesn't fit when there are 5+ nav
     items, a brand block, and a "Back to site" link. */
  .dashboard-sidebar {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0.75rem;
    gap: 0.5rem;
  }
  .dashboard-sidebar .brand {
    justify-content: flex-start;
  }
  .dashboard-back-link {
    align-self: flex-start;
  }

  /* Make the main nav items horizontally scrollable (prevents tall stack) */
  .dashboard-sidebar .dashboard-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .dashboard-sidebar .dashboard-nav-item {
    flex: 0 0 auto;
  }
  .dashboard-sidebar .dashboard-nav-link {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 13px;
  }

  /* Hide secondary sidebar sections on phones — they push content too far down.
     Subscription / activity / account groups remain accessible via the main
     dashboard tabs. */
  .dashboard-sidebar .dashboard-sidebar-activity,
  .dashboard-sidebar .mt-auto {
    display: none;
  }

  /* Charts/stats grids: force single column. None of these had any mobile
     breakpoint, so all of them were overflowing horizontally on phones. */
  .ud-bars-grid,
  .ud-charts-grid,
  .ud-kpi-row,
  .dashboard-overview-charts {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .ud-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ud-chart-card,
  .ud-kpi-card {
    min-width: 0;
  }
  /* Donut charts: cap visual size so they don't fill an entire mobile viewport */
  .ud-donut {
    max-width: 200px;
    margin: 0 auto;
  }

  /* Profile edit screen: stack the two columns (left = avatar/UUID/social,
     right = about/languages/colors). Default flex layout had no mobile rule
     so the form was squeezed into two ~140px columns. */
  .dashboard-profile-main {
    flex-direction: column;
    gap: 1rem;
  }
  .dashboard-profile-main-left,
  .dashboard-profile-main-right {
    width: 100%;
    min-width: 0;
  }
  .dashboard-profile-panel {
    padding: 1rem;
  }
  .dashboard-profile-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

