/* Notification Center inbox — extends dashboard shell */

:root {
  --ntc-purple: var(--dash-accent);
  --ntc-purple-soft: var(--dash-surface-hover);
  --ntc-border: rgba(255, 255, 255, 0.08);
  --ntc-card: var(--dash-elevated);
  --ntc-success: #22c55e;
  --ntc-warning: #f59e0b;
  --ntc-danger: #ef4444;
  --ntc-info: #3b82f6;
  --ntc-right-w: 320px;
}

body.ntc-page {
  --dash-purple: var(--ntc-purple);
  --dash-purple-soft: var(--ntc-purple-soft);
}


.ntc-page .dash-new-btn,
.ntc-page .dash-pro__btn {
  background: var(--ntc-purple);
  color: var(--dash-accent-text);
}

.ntc-page .dash-pro__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ntc-page .dash-search input:focus {
  border-color: var(--dash-border-strong);
  box-shadow: 0 0 0 3px var(--dash-surface-hover);
}

.ntc-content {
  padding: var(--dash-content-y, 32px) var(--dash-page-x, 32px);
  padding-left: calc(var(--dash-page-x, 32px) + var(--dash-mobile-nav-gutter, 0px));
  padding-bottom: calc(var(--dash-content-y, 32px) + var(--dash-content-pad-bottom, 0px));
  flex: 1;
  min-width: 0;
}

.ntc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--ntc-right-w);
  gap: 24px;
  align-items: start;
}

.ntc-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.ntc-aside {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 24px;
}

.ntc-aside > .ntc-card {
  margin: 0 0 24px;
  flex-shrink: 0;
}

.ntc-aside > .ntc-card:last-child {
  margin-bottom: 0;
}

.ntc-head {
  margin: 0;
}

.ntc-title {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #f4f4f5;
}

.ntc-subtitle {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--dash-text-muted);
  max-width: 560px;
  line-height: 1.5;
}

.ntc-inbox {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.ntc-group__heading {
  margin: 0 0 4px;
  padding: 0 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dash-text-subtle);
}

/* Toolbar — Revolut-style chips + filter/sort */
.ntc-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border-bottom: none;
  flex-wrap: nowrap;
}

.ntc-toolbar .ntc-tabs--chips {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ntc-toolbar .ntc-tabs--chips::-webkit-scrollbar {
  display: none;
}

.ntc-toolbar .ntc-tabs--chips .ntc-tab {
  flex-shrink: 0;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--dash-surface);
  font-size: 13px;
  font-weight: 500;
}

.ntc-toolbar .ntc-tabs--chips .ntc-tab:hover {
  background: var(--dash-surface-hover);
  color: var(--dash-text);
}

.ntc-toolbar .ntc-tabs--chips .ntc-tab.is-active {
  background: var(--dash-accent);
  color: var(--dash-accent-text);
}

.ntc-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.ntc-filter {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ntc-filter__trigger,
.ntc-sort__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  background: var(--dash-surface);
  color: var(--dash-text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: background-color var(--dash-transition), color var(--dash-transition);
}

.ntc-filter__trigger:hover,
.ntc-filter__trigger:focus-visible,
.ntc-filter.is-open .ntc-filter__trigger,
.ntc-filter.has-filter .ntc-filter__trigger,
.ntc-sort__trigger:hover,
.ntc-sort__trigger:focus-visible,
.ntc-sort.is-open .ntc-sort__trigger {
  background: var(--dash-surface-hover);
  color: var(--dash-text);
}

.ntc-filter.has-filter .ntc-filter__trigger {
  background: var(--dash-accent);
  color: var(--dash-accent-text);
}

.ntc-filter.has-filter .ntc-filter__icon,
.ntc-filter.has-filter .ntc-filter__chev {
  color: inherit;
}

.ntc-filter__icon,
.ntc-sort__icon {
  flex-shrink: 0;
  color: var(--dash-text-subtle);
}

.ntc-filter__value,
.ntc-sort__value {
  white-space: nowrap;
  line-height: 1;
}

.ntc-filter__chev,
.ntc-sort__chev {
  flex-shrink: 0;
  color: var(--dash-text-subtle);
  transition: transform var(--dash-transition);
}

.ntc-filter.is-open .ntc-filter__chev,
.ntc-sort.is-open .ntc-sort__chev {
  transform: rotate(180deg);
}

.ntc-filter__menu,
.ntc-sort__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: var(--dash-popover-z, 1600);
  min-width: 168px;
  padding: 6px;
  border-radius: 14px;
  border: none;
  background: var(--dash-popover-bg, #222222);
  box-shadow: var(--dash-popover-shadow, 0 16px 48px rgba(0, 0, 0, 0.45));
}

.ntc-filter__menu[hidden],
.ntc-sort__menu[hidden] {
  display: none;
}

.ntc-filter__option,
.ntc-sort__option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--dash-text);
  text-align: left;
  cursor: pointer;
  transition: background var(--dash-transition);
}

.ntc-filter__option:hover,
.ntc-filter__option.is-active,
.ntc-sort__option:hover,
.ntc-sort__option.is-active {
  background: rgba(255, 255, 255, 0.06);
}

.ntc-sort {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ntc-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.ntc-group--divider {
  border-top: none;
  padding-top: 0;
  margin-top: 4px;
}

/* Notification rows — Revolut-style compact list */
.ntc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ntc-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  height: 72px;
  padding: 0 14px 0 12px;
  border-radius: var(--dash-radius-island, 24px);
  border: none;
  background: var(--dash-surface);
  box-shadow: none;
  transition: background var(--dash-transition), opacity var(--dash-transition);
  cursor: pointer;
  list-style: none;
}

.ntc-item:hover {
  background: var(--dash-surface-hover);
  box-shadow: none;
}

.ntc-item.is-actionable {
  cursor: pointer;
}

.ntc-item.is-unread {
  background: rgba(255, 255, 255, 0.04);
}

.ntc-item.is-unread:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ntc-item.is-unread .ntc-item__title {
  font-weight: 600;
  color: var(--dash-text);
}

.ntc-item.is-read {
  opacity: 0.78;
}

.ntc-item.is-read .ntc-item__title {
  font-weight: 500;
}

.ntc-item.is-read:hover {
  opacity: 0.95;
}

.ntc-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: none;
}

.ntc-item.is-unread .ntc-item__icon {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.ntc-item__icon--success {
  background: rgba(34, 197, 94, 0.12);
  color: var(--ntc-success);
}

.ntc-item__icon--warning {
  background: rgba(245, 158, 11, 0.12);
  color: var(--ntc-warning);
}

.ntc-item__icon--danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--ntc-danger);
}

.ntc-item__icon--info {
  background: rgba(59, 130, 246, 0.12);
  color: var(--ntc-info);
}

.ntc-item__icon--purple {
  background: var(--ntc-purple-soft);
  color: var(--dash-accent-muted);
}

.ntc-item__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.ntc-item__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.ntc-item__line--sub {
  align-items: center;
}

.ntc-item__title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--dash-text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.ntc-item__desc {
  margin: 0;
  font-size: 13px;
  color: var(--dash-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.ntc-item__amount {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  color: var(--dash-text);
}

.ntc-item__amount.is-positive {
  color: var(--ntc-success);
}

.ntc-item__time {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--dash-text-subtle);
  white-space: nowrap;
  line-height: 1.25;
}

.ntc-item__chev {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--dash-text-subtle);
  opacity: 0.5;
  transition: opacity var(--dash-transition), transform var(--dash-transition);
}

.ntc-item__chev:empty {
  visibility: hidden;
}

.ntc-item.is-actionable:hover .ntc-item__chev {
  opacity: 0.85;
}

.ntc-item.is-hidden {
  display: none;
}

.ntc-card {
  background: var(--dash-card);
  border: none;
  border-radius: var(--dash-radius-island, 24px);
  box-shadow: none;
  padding: 20px 24px;
  transition: background var(--dash-transition);
}

.ntc-card:hover {
  background: var(--dash-surface-hover);
  box-shadow: none;
}

.ntc-badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.ntc-badge--success {
  background: rgba(34, 197, 94, 0.12);
  color: var(--ntc-success);
}

.ntc-badge--warning {
  background: rgba(245, 158, 11, 0.12);
  color: var(--ntc-warning);
}

.ntc-badge--info {
  background: rgba(59, 130, 246, 0.12);
  color: var(--ntc-info);
}

.ntc-badge--muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--dash-text-muted);
}

.ntc-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 14px;
  border: none;
  background: rgba(255, 255, 255, 0.03);
  color: #f4f4f5;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.ntc-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.ntc-btn--primary {
  background: var(--ntc-purple);
  border-color: transparent;
  color: var(--dash-accent-text);
}

.ntc-btn--primary:hover {
  background: var(--dash-accent-hover);
  color: var(--dash-accent-text);
  filter: none;
  box-shadow: none;
}

.ntc-btn--block {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.ntc-btn--ghost {
  background: transparent;
}

/* Header actions */
.ntc-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ntc-header-link {
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: none;
  background: var(--dash-card);
  color: var(--dash-text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 150ms ease, border-color 150ms ease;
}

.ntc-header-link:hover {
  color: #f4f4f5;
  border-color: rgba(255, 255, 255, 0.12);
}

/* Right panel */
.ntc-panel__title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: #f4f4f5;
}

.ntc-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.ntc-summary__stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ntc-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.ntc-stat__label {
  font-size: 13px;
  color: var(--dash-text-muted);
}

.ntc-stat__value {
  font-size: 18px;
  font-weight: 600;
  color: #f4f4f5;
  font-variant-numeric: tabular-nums;
}

.ntc-stat__value--accent {
  color: var(--ntc-purple);
}

.ntc-donut-figure {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.ntc-donut {
  width: 100%;
  height: 100%;
}

.ntc-donut__total {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.ntc-donut__value {
  color: #f4f4f5;
  font-family: var(--font-numeric, "Inter", sans-serif);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.ntc-donut__label {
  margin-top: 2px;
  color: var(--dash-text-subtle);
  font-size: 7px;
  line-height: 1;
}

.ntc-attention__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.ntc-attention__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.ntc-attention__row span:first-child {
  color: var(--dash-text-muted);
}

.ntc-attention__row span:last-child {
  font-weight: 600;
  color: #f4f4f5;
}

.ntc-attention__row span:last-child.is-warn {
  color: var(--ntc-warning);
}

.ntc-attention__row span:last-child.is-danger {
  color: var(--ntc-danger);
}

.ntc-quick {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ntc-activity {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
}

.ntc-feed__item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  padding-bottom: 16px;
  position: relative;
}

.ntc-feed__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: var(--ntc-border);
}

.ntc-feed__dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--ntc-border);
  border: 2px solid var(--ntc-card);
  box-shadow: 0 0 0 1px var(--ntc-border);
}

.ntc-feed__dot--pay { background: var(--ntc-success); }
.ntc-feed__dot--inv { background: var(--ntc-info); }
.ntc-feed__dot--sec { background: var(--ntc-danger); }
.ntc-feed__dot--api { background: var(--ntc-warning); }

.ntc-feed__text {
  font-size: 13px;
  color: var(--dash-text-muted);
  line-height: 1.4;
}

.ntc-feed__text strong {
  display: block;
  font-weight: 500;
  color: #f4f4f5;
  margin-bottom: 2px;
}

.ntc-feed__time {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--dash-text-subtle);
}

.ntc-panel__foot {
  margin-top: 4px;
}

.ntc-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: none;
  background: none;
  color: var(--ntc-purple);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 150ms ease;
}

.ntc-link-btn:hover {
  opacity: 0.85;
}

.ntc-empty {
  padding: 32px;
  text-align: center;
  color: var(--dash-text-muted);
  font-size: 14px;
}

.ntc-empty.is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .ntc-layout {
    grid-template-columns: 1fr;
  }

  .ntc-aside {
    position: static;
  }
}

@media (max-width: 800px) {
  .ntc-item {
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    height: 68px;
    padding: 0 10px 0 8px;
    gap: 10px;
  }

  .ntc-item__chev:empty {
    display: none;
  }
}
