/* ==========================================================================
   DASHBOARD (customer)
   ========================================================================== */

.dash-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.dash-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  flex: 1 1 220px;
}

/* The header's action group (notification bell + "Book a ceremony") is wider
   than a small phone once the button has its full padding — let it wrap onto
   its own line rather than pushing the page sideways. */
.dash-header > div:last-child { flex-wrap: wrap; }
.dash-header .btn { flex: 1 1 auto; }

.dash-user__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-maroon-tint);
  color: var(--color-maroon-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
}

.dash-user h1 { font-size: var(--fs-display-m); margin-bottom: 2px; }
.dash-user p { color: var(--color-ink-soft); font-size: var(--fs-body-s); margin: 0; }

/* Booking card w/ mini status tracker */

.booking-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.booking-card__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: flex-start;
}

.booking-card__title { font-family: var(--font-display); font-size: var(--fs-display-s); margin-bottom: 2px; }
.booking-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-4); font-size: var(--fs-caption); color: var(--color-ink-soft); }
.booking-card__meta span { display: flex; align-items: center; gap: var(--space-1); }
.booking-card__meta svg { width: 14px; height: 14px; }

.booking-card__id { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--color-ink-faint); }

/* Wallet */

.wallet-card {
  background: linear-gradient(135deg, var(--color-maroon), var(--color-maroon-deep));
  color: #fff8f0;
  border-radius: var(--radius-l);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.wallet-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.wallet-card__label { font-size: var(--fs-caption); opacity: 0.8; text-transform: uppercase; letter-spacing: 0.06em; }
.wallet-card__balance { font-family: var(--font-display); font-size: var(--fs-display-l); margin-block: var(--space-2) var(--space-5); }
.wallet-card .btn--brass { position: relative; z-index: 1; }

.wallet-txn-list { margin-top: var(--space-6); }

.wallet-txn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-line);
}

.wallet-txn:last-child { border-bottom: none; }

.wallet-txn__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wallet-txn__icon svg { width: 18px; height: 18px; }
.wallet-txn__icon--in { background: var(--color-teal-tint); color: var(--color-teal-deep); }
.wallet-txn__icon--out { background: var(--color-surface-sunken); color: var(--color-ink-soft); }

.wallet-txn__body { flex: 1; min-width: 0; }
.wallet-txn__body strong { display: block; font-size: var(--fs-body-s); }
.wallet-txn__body span { font-size: var(--fs-caption); color: var(--color-ink-soft); }

.wallet-txn__amount { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.wallet-txn__amount--in { color: var(--color-teal-deep); }
.wallet-txn__amount--out { color: var(--color-ink-soft); }

/* Notifications */

.notif-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-line);
}
.notif-item:last-child { border-bottom: none; }

.notif-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-brass-tint);
  color: #6b4e15;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notif-item__icon svg { width: 20px; height: 20px; }
.notif-item p { font-size: var(--fs-body-s); margin: 0; }
.notif-item time { font-size: var(--fs-caption); color: var(--color-ink-faint); }

/* Support */

.ticket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  margin-bottom: var(--space-3);
}

/* Profile form uses .field from components.css */

.dash-two-col {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .dash-two-col { grid-template-columns: 1.6fr 1fr; align-items: start; }
}

/* Notification bell */

.notif-bell-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-maroon);
  border: 1.5px solid var(--color-paper);
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  width: min(360px, 90vw);
  max-height: 420px;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-l);
  z-index: 50;
}

.notif-dropdown__head {
  padding: var(--space-4) var(--space-5);
  font-weight: 700;
  border-bottom: 1px solid var(--color-line);
}

.notif-dropdown__list .notif-item {
  padding-inline: var(--space-5);
}

.notif-dropdown__list .notif-item:first-child {
  padding-top: var(--space-4);
}

.notif-dropdown__empty {
  padding: var(--space-6) var(--space-5);
  text-align: center;
  color: var(--color-ink-soft);
  font-size: var(--fs-body-s);
}
