/* Activity Feed */
.activity-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 20px 14px;
}

.activity-title-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-page-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
  color: #171827;
  margin: 0;
  letter-spacing: -0.02em;
}

.activity-page-subtitle {
  margin: 0;
  color: rgba(23, 24, 39, 0.56);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}

.activity-shell {
  padding-bottom: calc(130px + var(--ion-safe-area-bottom, 0px));
}

.activity-type-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 20px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.activity-type-filter-row::-webkit-scrollbar {
  display: none;
}

.activity-type-chip {
  flex: 0 0 auto;
  background: #ffffff;
  color: rgba(23, 24, 39, 0.58);
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  margin: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.activity-type-chip.active {
  background: #6d28d9;
  color: #ffffff;
}

.activity-filter-row {
  margin: 0 20px 18px;
}

.activity-range-shell {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  padding: 6px;
}

.activity-range-segment {
  padding: 0;
  background: transparent;
  border-radius: 999px;
}

.activity-range-segment ion-segment-button {
  min-height: 46px;
  --background: transparent;
  --background-checked: #6d28d9;
  --color: rgba(23, 24, 39, 0.5);
  --color-checked: #ffffff;
  --indicator-color: transparent;
  --border-radius: 999px;
  --padding-start: 2px;
  --padding-end: 2px;
  text-transform: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.activity-range-segment ion-label {
  margin: 0;
  white-space: nowrap;
}

.activity-grouped-list {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  padding: 6px 0;
  margin: 0 20px 20px;
}

.activity-date-group-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(23, 24, 39, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 16px 20px 8px;
}

.activity-list-item {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  gap: 16px;
  cursor: pointer;
}

.activity-feed-item {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
}

.activity-feed-item + .activity-feed-item {
  border-top: 1px solid rgba(23, 24, 39, 0.06);
}

.activity-feed-item:disabled {
  opacity: 1;
}

.activity-feed-item:active {
  background: rgba(109, 40, 217, 0.03);
}

.activity-feed-avatar-wrap {
  flex-shrink: 0;
  margin-top: 2px;
}

.activity-feed-avatar {
  position: relative;
  width: 53px;
  height: 53px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #171827;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: visible;
}

.activity-feed-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.activity-feed-avatar-lavender {
  background: #efe7fb;
  color: #6d28d9;
}

.activity-feed-avatar-mint {
  background: #e8f7ee;
  color: #16a34a;
}

.activity-feed-avatar-sky {
  background: #eaf3ff;
  color: #3b82f6;
}

.activity-feed-avatar-gold {
  background: #fff2df;
  color: #d97706;
}

.activity-feed-avatar-brand {
  background: #ece9ff;
  color: #6d28d9;
}

.activity-feed-avatar-badge {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(23, 24, 39, 0.12);
}

.activity-feed-avatar-badge-grocery {
  background: #f1e7fb;
  color: #6d28d9;
}

.activity-feed-avatar-badge-medication {
  background: #e8f7ee;
  color: #16a34a;
}

.activity-feed-avatar-badge-airtime {
  background: #eaf3ff;
  color: #3b82f6;
}

.activity-feed-avatar-badge-electricity {
  background: #fff2df;
  color: #d97706;
}

.activity-feed-avatar-badge ion-icon {
  font-size: 13px;
  --ionicon-stroke-width: 48px;
}

.activity-feed-badge-image {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.activity-feed-main {
  flex: 1;
  min-width: 0;
}

.activity-feed-row {
  display: grid;
  grid-template-columns: minmax(128px, 1fr) auto;
  align-items: flex-start;
  gap: 10px;
}

.activity-feed-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-feed-title {
  margin: 0;
  color: #171827;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
}

.activity-feed-subtitle {
  margin: 0;
  color: rgba(23, 24, 39, 0.54);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
}

.activity-feed-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px;
  flex-shrink: 0;
  min-width: 112px;
}

.activity-feed-amount {
  margin: 0;
  color: #171827;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 700;
}

.activity-feed-status {
  width: fit-content;
  min-height: 28px;
  border: none;
  border-radius: 999px;
  padding: 0 10px 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
  background: transparent;
}

.activity-feed-status ion-icon {
  font-size: 12px;
  flex-shrink: 0;
}

.activity-feed-status-success {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.activity-feed-status-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.activity-feed-status-partial {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.activity-feed-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.activity-feed-breakdown-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.activity-feed-breakdown-pill {
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
}

.activity-feed-breakdown-pill ion-icon {
  font-size: 12px;
  flex-shrink: 0;
}

.activity-feed-breakdown-pill.is-redeemed {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.activity-feed-breakdown-pill.is-remaining {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.activity-feed-usage-note {
  width: 100%;
  margin: 0;
  color: rgba(23, 24, 39, 0.56);
  font-size: 10px;
  line-height: 1.35;
  font-weight: 500;
}

/* Notifications List */
.notifications-header-btn {
  --color: var(--ion-color-primary);
  font-size: 14px;
  font-weight: 700;
}

.notifications-list-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 8px 0;
  margin: 20px;
}

.notification-row {
  display: flex;
  align-items: flex-start;
  padding: 16px 20px;
  gap: 16px;
  position: relative;
}

.nr-unread-dot {
  position: absolute;
  top: 24px;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ion-color-primary);
}

.nr-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* Priority mappings */
.nr-icon-box.critical {
  background: rgba(220, 38, 38, 0.1);
  color: var(--ion-color-danger);
}

.nr-icon-box.important {
  background: rgba(245, 158, 11, 0.1);
  color: var(--ion-color-warning);
}

.nr-icon-box.informational {
  background: rgba(109, 40, 217, 0.1);
  color: var(--ion-color-primary);
}

.nr-content {
  flex: 1;
}

.nr-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ion-color-dark);
  margin: 0 0 4px;
}

.nr-body {
  font-size: 13px;
  font-weight: 400;
  color: var(--ion-color-medium);
  margin: 0 0 6px;
  line-height: 1.4;
}

.nr-time {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
}

.nr-link-icon {
  font-size: 18px;
  color: var(--ion-color-medium);
  align-self: center;
}
