/* =============================================================================
   Premium Dashboard â€” Mobile-first scale (Navy + Gold + White)
   ============================================================================= */

.pd {
  --pd-bg: #F8FAFC;
  --pd-primary: #0F172A;
  --pd-gold: #C8A96B;
  --pd-muted: #64748B;
  --pd-border: #E8EDF3;
  --pd-card: #FFFFFF;
  --pd-success: #22C55E;
  --pd-danger: #EF4444;

  /* spacing scale */
  --pd-pad: 16px;
  --pd-gap: 12px;
  --pd-gap-lg: 16px;

  /* radius scale */
  --pd-r-sm: 12px;
  --pd-r-md: 16px;
  --pd-r-lg: 20px;
  --pd-r-xl: 24px;

  /* typography */
  --pd-fs-2xs: 10px;
  --pd-fs-xs: 11px;
  --pd-fs-sm: 12px;
  --pd-fs-md: 13px;
  --pd-fs-lg: 15px;
  --pd-fs-xl: 17px;
  --pd-fs-2xl: 20px;

  /* elevation */
  --pd-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --pd-shadow-hover: 0 8px 28px rgba(15, 23, 42, 0.09);
  --pd-transition: 300ms ease;

  /* touch */
  --pd-touch: 40px;

  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--pd-bg);
  color: var(--pd-primary);
  font-family: Vazirmatn, system-ui, sans-serif;
  font-size: var(--pd-fs-md);
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

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

.pd-body {
  width: 100%;
  max-width: 100%;
  padding: 0 var(--pd-pad) 16px;
  display: flex;
  flex-direction: column;
  gap: var(--pd-gap);
}

/* ---------- Header ---------- */
.pd-header {
  width: 100%;
  padding: 10px var(--pd-pad) 8px;
  background: var(--pd-bg);
  border-bottom: 1px solid var(--pd-border);
  box-sizing: border-box;
}

/* Fixed at top on dashboard (same pattern as bottom-nav) */
.layout--dashboard .pd-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 90;
  padding-top: calc(10px + env(safe-area-inset-top, 0));
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.layout--dashboard .pd-body {
  padding-top: calc(58px + env(safe-area-inset-top, 0));
}

.pd-header__row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.pd-header__start {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.pd-header__menu,
.pd-header__notif {
  width: var(--pd-touch);
  height: var(--pd-touch);
  flex-shrink: 0;
  border-radius: var(--pd-r-md);
  display: grid;
  place-items: center;
  transition: transform var(--pd-transition);
}

.pd-header__menu {
  border: none;
  background: var(--pd-card);
  box-shadow: var(--pd-shadow);
  cursor: pointer;
  color: var(--pd-primary);
}

.pd-header__notif {
  position: relative;
  background: var(--pd-card);
  border: 1px solid var(--pd-border);
  box-shadow: var(--pd-shadow);
  color: var(--pd-primary);
  text-decoration: none;
}

.pd-header__menu:active,
.pd-header__notif:active {
  transform: scale(0.97);
}

.pd-header__title {
  margin: 0;
  font-size: var(--pd-fs-lg);
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.pd-header__date {
  flex-shrink: 0;
  max-width: 38%;
  font-size: var(--pd-fs-2xs);
  font-weight: 500;
  color: var(--pd-muted);
  padding: 6px 8px;
  background: var(--pd-card);
  border-radius: var(--pd-r-sm);
  border: 1px solid var(--pd-border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.pd-header__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--pd-gold);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ---------- Hero ---------- */
.pd-hero {
  position: relative;
  width: 100%;
  height: 190px;
  border-radius: 28px;
  background: #0F172A;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--pd-shadow);
  isolation: isolate;
}

/* Layer 2 — building photo (decorative, left zone) */
.pd-hero__photo {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 52%;
  height: 100%;
  object-fit: cover;
  object-position: left bottom;
  opacity: 0.42;
  filter: brightness(0.92) contrast(1.12) saturate(1.02);
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image:
    linear-gradient(90deg, #000 0%, #000 42%, transparent 92%),
    linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image:
    linear-gradient(90deg, #000 0%, #000 42%, transparent 92%),
    linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Layer 3 — navy fade overlay (lighter on left so building reads; strong on right for text) */
.pd-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.02) 0%,
    rgba(15, 23, 42, 0.14) 18%,
    rgba(15, 23, 42, 0.52) 48%,
    rgba(15, 23, 42, 0.82) 68%,
    rgba(15, 23, 42, 0.94) 100%
  );
}

/* Layer 4–5 — text & stat badges */
.pd-hero__inner {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.pd-hero__greet {
  margin: 0;
  font-size: var(--pd-fs-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.pd-hero__role {
  margin: 2px 0 0;
  font-size: var(--pd-fs-xs);
  font-weight: 600;
  color: var(--pd-gold);
}

.pd-hero__name {
  margin: 6px 0 0;
  font-size: clamp(17px, 4.8vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
  color: #fff;
}

.pd-hero__sub {
  margin: 4px 0 0;
  font-size: var(--pd-fs-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.pd-hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  max-width: 100%;
}

.pd-hero__stat {
  min-width: 0;
  padding: 8px 10px;
  border-radius: var(--pd-r-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pd-hero__stat-label {
  display: block;
  font-size: var(--pd-fs-2xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 3px;
  line-height: 1.3;
}

.pd-hero__stat-val {
  display: block;
  font-size: clamp(11px, 3.2vw, 13px);
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
  color: #fff;
}

/* ---------- Cards ---------- */
.pd-card {
  width: 100%;
  background: var(--pd-card);
  border-radius: var(--pd-r-lg);
  padding: 14px;
  box-shadow: var(--pd-shadow);
  border: 1px solid var(--pd-border);
  transition: box-shadow var(--pd-transition), transform var(--pd-transition);
}

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

.pd-card__title {
  margin: 0;
  font-size: var(--pd-fs-md);
  font-weight: 700;
  color: var(--pd-primary);
  line-height: 1.35;
}

.pd-card__head-ico {
  flex-shrink: 0;
}

.pd-link {
  display: block;
  margin-top: 10px;
  font-size: var(--pd-fs-sm);
  font-weight: 600;
  color: var(--pd-gold);
  text-decoration: none;
}

/* ---------- Announcement ---------- */
.pd-ann--alert {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(135deg, var(--pd-card) 0%, rgba(239, 68, 68, 0.06) 100%);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.08);
}

.pd-ann--read {
  border-color: rgba(34, 197, 94, 0.4);
  background: linear-gradient(135deg, var(--pd-card) 0%, rgba(34, 197, 94, 0.06) 100%);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.08);
}

.pd-ann--alert .pd-card__title {
  color: #B91C1C;
}

.pd-ann--read .pd-card__title {
  color: #15803D;
}

.pd-card__head .pd-ann-feed__status {
  flex-shrink: 0;
  font-size: var(--pd-fs-2xs);
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.pd-ann-feed__status--new {
  color: #B91C1C;
  background: rgba(239, 68, 68, 0.12);
}

.pd-ann-feed__status--read {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #15803D;
  background: rgba(34, 197, 94, 0.12);
}

.pd-ann__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-ann .dash-ann-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-r-md);
  background: var(--pd-bg);
  margin: 0;
  padding: 10px;
  cursor: pointer;
  text-align: right;
  font: inherit;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .pd-ann .dash-ann-item--pressable:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    border-color: rgba(200, 169, 107, 0.55);
    z-index: 1;
  }

  .pd-ann .dash-ann-item--pressable:active {
    transform: translateY(-1px) scale(1.005);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
  }
}

@media (hover: none), (max-width: 640px) {
  .pd-ann .dash-ann-item--pressable {
    animation: dash-ann-mobile-pulse 5.5s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .pd-ann .dash-ann-item--pressable:active {
    animation: none;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
    border-color: rgba(200, 169, 107, 0.55);
  }
}

@keyframes dash-ann-mobile-pulse {
  0%, 100% {
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    border-color: var(--pd-border);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(200, 169, 107, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08);
    border-color: rgba(200, 169, 107, 0.4);
  }
}

.pd-ann .dash-ann-item__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pd-ann .dash-ann-item__mark {
  flex-shrink: 0;
  padding-top: 2px;
}

.pd-ann .dash-ann-item--unread {
  border-color: rgba(239, 68, 68, 0.4);
  border-inline-start: 3px solid #EF4444;
  background: linear-gradient(135deg, var(--pd-bg) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.pd-ann .dash-ann-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.pd-ann .dash-ann-item__badge {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  color: #B91C1C;
  font-size: var(--pd-fs-2xs);
  font-weight: 700;
}

.pd-ann .dash-ann-item__title {
  font-size: var(--pd-fs-sm);
  font-weight: 600;
  line-height: 1.4;
}

.pd-ann .dash-ann-item__preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--pd-fs-xs);
  font-weight: 700;
  color: #0F172A;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}

.pd-ann .dash-ann-item__date {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding-top: 4px;
  text-align: center;
  font-size: var(--pd-fs-xs);
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
}

.pd-ann .dash-ann-item__tap-hint {
  display: none;
}

@media (hover: none), (max-width: 640px) {
  .pd-ann .dash-ann-item__tap-hint {
    display: block;
    width: 100%;
    margin-top: 2px;
    padding-top: 2px;
    text-align: center;
    font-size: 10px;
    font-weight: 500;
    color: rgba(15, 23, 42, 0.38);
    line-height: 1.2;
    letter-spacing: 0.02em;
  }
}

.pd-ann .dash-ann-item__chev {
  display: none;
}

/* ---------- Statistics ---------- */
.pd-stats {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--pd-gap);
}

.pd-stats__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pd-gap);
  width: 100%;
}

.pd-stat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 12px 10px;
  border-radius: var(--pd-r-lg);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--pd-border);
  box-shadow: var(--pd-shadow);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--pd-transition), transform var(--pd-transition);
}

.pd-stat--navy {
  background: var(--pd-primary);
  color: #fff;
  border-color: transparent;
}

.pd-stat--light {
  background: var(--pd-card);
  color: var(--pd-primary);
}

.pd-stat__ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(200, 169, 107, 0.14);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pd-stat--light .pd-stat__ico {
  background: var(--pd-bg);
}

.pd-stat__label {
  font-size: var(--pd-fs-xs);
  font-weight: 500;
  color: var(--pd-muted);
  line-height: 1.3;
}

.pd-stat--navy .pd-stat__label {
  color: rgba(255, 255, 255, 0.78);
}

.pd-stat__value {
  font-size: clamp(13px, 3.6vw, 15px);
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.pd-stat__hint {
  font-size: var(--pd-fs-2xs);
  font-weight: 500;
  color: var(--pd-muted);
  line-height: 1.3;
  word-break: break-word;
}

.pd-stat--navy .pd-stat__hint {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Monthly charge ---------- */
.pd-charge {
  padding: 0;
}

.pd-charge__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  min-height: 0;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.pd-charge__alert {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  display: grid;
  place-items: center;
}

.pd-charge__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pd-charge__title {
  font-size: var(--pd-fs-xs);
  font-weight: 600;
  color: var(--pd-primary);
  line-height: 1.4;
  word-break: break-word;
}

.pd-charge__amount {
  font-size: clamp(15px, 4.2vw, 17px);
  font-weight: 700;
  color: var(--pd-gold);
  line-height: 1.25;
  word-break: break-word;
}

.pd-charge__amount--paid {
  color: var(--pd-success);
}

.pd-charge__hint {
  font-size: var(--pd-fs-2xs);
  font-weight: 500;
  color: var(--pd-muted);
}

.pd-charge__btn {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: var(--pd-r-sm);
  background: var(--pd-primary);
  color: #fff;
  font-size: var(--pd-fs-xs);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Expense chart (premium) ---------- */
.pd-chart.pd-card {
  min-height: 340px;
  padding: 24px;
  border-radius: 24px;
  background: #FFFFFF;
  border: 1px solid #EEF2F7;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.pd-chart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.pd-chart__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #0F172A;
}

.pd-chart__head-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #C8A96B;
}

.pd-chart__head-ico .icon-inline,
.pd-chart__head-ico svg {
  display: block;
}

.pd-chart__body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  flex: 1;
  min-height: 0;
}

.pd-chart__donut-col {
  display: flex;
  justify-content: center;
  width: 100%;
}

.pd-chart__donut-stage {
  position: relative;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}

.pd-chart__svg {
  display: block;
  width: 180px;
  height: 180px;
}

.pd-chart__hole {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  gap: 4px;
  pointer-events: none;
}

.pd-chart__hole-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #64748B;
}

.pd-chart__hole-value {
  font-size: clamp(18px, 5vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  color: #0F172A;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.pd-chart__legend {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.pd-chart__legend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: #F8FAFC;
  transition: box-shadow 300ms ease;
}

.pd-chart__legend-row:last-child {
  margin-bottom: 0;
}

.pd-chart__legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pd-chart__legend-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: #0F172A;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-chart__legend-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: box-shadow 300ms ease, transform 300ms ease;
}

.pd-chart__badge--navy {
  background: linear-gradient(135deg, #0F172A 0%, #253858 100%);
  color: #fff;
}

.pd-chart__badge--gold {
  background: linear-gradient(135deg, #C8A96B 0%, #DFC38A 100%);
  color: #fff;
}

.pd-chart__badge--muted {
  background: #EEF2F7;
  color: #64748B;
}

.pd-chart__foot {
  flex-shrink: 0;
}

.pd-chart__divider {
  height: 1px;
  background: #EEF2F7;
  margin-bottom: 14px;
}

.pd-chart__foot-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: #C8A96B;
  transition: transform 300ms ease, opacity 300ms ease;
}

.pd-chart__foot-link:active {
  transform: scale(0.98);
}

.pd-chart__foot-chev {
  flex-shrink: 0;
  display: block;
}

.pd-chart__empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

@media (hover: hover) {
  .pd-chart.pd-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  }

  .pd-chart:hover .pd-chart__legend-badge--navy {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.28);
  }

  .pd-chart:hover .pd-chart__legend-badge--gold {
    box-shadow: 0 4px 16px rgba(200, 169, 107, 0.35);
  }

  .pd-chart:hover .pd-chart__legend-badge--muted {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  }
}

/* ---------- Quick services ---------- */
.pd-quick {
  width: 100%;
}

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

.pd-quick__title {
  margin: 0;
  font-size: var(--pd-fs-lg);
  font-weight: 700;
}

.pd-quick__more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--pd-fs-xs);
  font-weight: 600;
  color: var(--pd-gold);
  text-decoration: none;
  flex-shrink: 0;
}

.pd-quick__track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.pd-quick__card {
  width: 100%;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: var(--pd-r-lg);
  background: var(--pd-card);
  border: 1px solid var(--pd-border);
  box-shadow: var(--pd-shadow);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--pd-transition), transform var(--pd-transition);
}

.pd-quick__ico-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pd-bg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pd-quick__card-title {
  font-size: var(--pd-fs-xs);
  font-weight: 600;
  line-height: 1.35;
  color: var(--pd-primary);
  width: 100%;
  word-break: break-word;
}

.pd-quick__card-desc {
  font-size: var(--pd-fs-2xs);
  line-height: 1.35;
  font-weight: 400;
  color: var(--pd-muted);
  width: 100%;
  word-break: break-word;
}

/* ---------- Ripple ---------- */
.pd-press {
  position: relative;
  overflow: hidden;
}

.pd-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(200, 169, 107, 0.2);
  transform: scale(0);
  animation: pd-ripple 0.5s ease-out;
  pointer-events: none;
}

@keyframes pd-ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

/* ---------- Hover (desktop only) ---------- */
@media (hover: hover) {
  .pd-card:hover,
  .pd-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--pd-shadow-hover);
  }

  .pd-quick__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pd-shadow-hover);
  }
}

/* ---------- Layout integration ---------- */
.layout--dashboard {
  min-height: 100vh;
  min-height: 100dvh;
}

.layout--dashboard .main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

.layout--dashboard .content {
  background: var(--pd-bg);
  padding: 0 !important;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.layout--dashboard .topbar {
  display: none !important;
}

.vp-mobile .layout--dashboard .content {
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0)) !important;
}

.vp-mobile .pd-body {
  padding-bottom: 4px;
}

/* ---------- Tablet+ ---------- */
@media (min-width: 721px) {
  .pd {
    --pd-pad: 20px;
    --pd-gap: 14px;
    max-width: 720px;
    margin: 0 auto;
  }

  .vp-desktop .layout--dashboard .pd-header {
    width: auto;
    inset-inline-start: 272px;
    inset-inline-end: 0;
  }

  .pd-header__title {
    font-size: var(--pd-fs-xl);
  }

  .pd-header__date {
    font-size: var(--pd-fs-xs);
    max-width: 44%;
  }

  .pd-card:not(.pd-chart) {
    padding: 16px;
  }

  .pd-chart__body {
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .pd-chart__donut-col {
    flex-shrink: 0;
    justify-content: flex-start;
  }

  .pd-chart__legend {
    flex: 1;
    min-width: 0;
  }

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

  .pd-quick__card {
    min-height: 104px;
  }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .pd {
    max-width: 800px;
  }

  .pd-chart__hole-value {
    font-size: 28px;
  }
}







/* Profile sheet (modal) */
.dash-profile-sheet__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.dash-profile-sheet__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #C8A96B;
  color: #fff;
  display: grid;
  place-items: center;
}

.dash-profile-sheet__name {
  font-size: 16px;
  font-weight: 600;
}

.dash-profile-sheet__role {
  font-size: 12px;
  color: var(--muted);
}

.dash-profile-sheet__list {
  margin: 0;
}

.dash-profile-sheet__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(28, 36, 48, 0.06);
}

.dash-profile-sheet__row:last-child {
  border-bottom: none;
}

.dash-profile-sheet__row dt {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.dash-profile-sheet__row dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-align: end;
}

.role-switch {
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-2, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
}

.role-switch__label {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #0f172a);
}

.role-switch__hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted, #64748b);
  line-height: 1.5;
}

.role-switch__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-switch__btn {
  flex: 1 1 auto;
  min-width: 110px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border, #cbd5e1);
  background: #fff;
  color: var(--text, #0f172a);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.role-switch__btn:hover:not(:disabled) {
  border-color: #c8a96b;
  background: #fffdf8;
}

.role-switch__btn.is-active,
.role-switch__btn:disabled {
  border-color: #c8a96b;
  background: linear-gradient(135deg, #0f172a, #253858);
  color: #fff;
  cursor: default;
}

.settings-role-card .role-switch {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
