
:root {
  --shell-bg: rgba(8, 14, 28, 0.88);
  --shell-panel: rgba(11, 19, 35, 0.86);
  --shell-panel-strong: rgba(15, 24, 42, 0.94);
  --shell-panel-soft: rgba(18, 28, 48, 0.72);
  --shell-border: rgba(167, 186, 255, 0.18);
  --shell-border-strong: rgba(167, 186, 255, 0.26);
  --shell-text: #eef4ff;
  --shell-muted: #9eb0d4;
  --shell-accent: #7dd3fc;
  --shell-accent-2: #c084fc;
  --shell-success: #34d399;
  --shell-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

body {
  background:
    radial-gradient(circle at top left, rgba(87, 80, 255, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.09), transparent 28%),
    #07101c;
}

.ui-shell-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(4, 9, 20, 0.92), rgba(4, 9, 20, 0.72));
  border-bottom: 1px solid rgba(167, 186, 255, 0.14);
}

.shell-topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand-v2 {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-v2 .brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.95), rgba(139, 92, 246, 0.95));
  box-shadow: 0 18px 36px rgba(56, 189, 248, 0.18);
}

.brand-v2 .brand-text {
  display: grid;
  gap: 2px;
}

.brand-v2 .brand-text strong {
  color: var(--shell-text);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand-v2 .brand-text small {
  color: var(--shell-muted);
  font-size: 0.82rem;
}

.nav-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
}

.nav-cluster a,
.nav-pill-link,
.sidebar-link,
.live-page-nav a {
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav-cluster a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--shell-muted);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1;
}

.nav-cluster a:hover,
.nav-cluster a.is-current {
  color: #fff;
  border-color: rgba(125, 211, 252, 0.35);
  background: linear-gradient(180deg, rgba(33, 49, 83, 0.9), rgba(22, 34, 59, 0.9));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);
}

.nav-actions-v2 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-user-link {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell-info-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.context-strip,
.page-context-banner,
.admin-sidebar,
.sidebar-card,
.clean-panel,
.surface-card,
.card,
.status-box,
.entry-card,
.hero-side-card,
.toast,
.admin-top-stat,
.admin-callout-card,
.inline-form,
.form-grid,
.hero-summary-card,
.live-page-nav {
  backdrop-filter: blur(18px);
  border: 1px solid var(--shell-border);
  box-shadow: var(--shell-shadow);
}

.context-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(12, 20, 38, 0.9), rgba(10, 16, 30, 0.88));
}

.context-strip strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.context-strip .muted {
  margin: 0;
  max-width: 780px;
}

.context-strip-public {
  border-color: rgba(96, 165, 250, 0.22);
}

.context-strip-admin {
  border-color: rgba(139, 92, 246, 0.22);
  background: linear-gradient(135deg, rgba(16, 24, 46, 0.94), rgba(18, 16, 40, 0.88));
}

.context-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.app-shell {
  padding-top: 18px;
  padding-bottom: 40px;
}

.public-frame,
.admin-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.page-shell > *:last-child {
  margin-bottom: 0;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10, 18, 34, 0.94), rgba(8, 14, 27, 0.92));
}

.sidebar-card {
  border-radius: 20px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(21, 31, 55, 0.96), rgba(14, 22, 40, 0.94));
}

.sidebar-card p {
  margin: 8px 0 0;
}

.admin-nav-group {
  display: grid;
  gap: 10px;
}

.admin-nav-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(205, 217, 255, 0.76);
}

.sidebar-links {
  display: grid;
  gap: 8px;
}

.sidebar-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 16px;
  text-decoration: none;
  color: #eaf1ff;
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-link span {
  font-weight: 700;
}

.sidebar-link small {
  color: var(--shell-muted);
  font-size: 0.72rem;
}

.sidebar-link:hover,
.sidebar-link.is-current {
  transform: translateY(-1px);
  border-color: var(--shell-border-strong);
  background: linear-gradient(180deg, rgba(35, 52, 87, 0.98), rgba(22, 33, 58, 0.98));
}

.page-context-banner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(20, 29, 52, 0.96), rgba(17, 20, 44, 0.96));
}

.page-context-banner h1 {
  margin: 6px 0 10px;
  font-size: clamp(1.6rem, 2vw, 2rem);
  line-height: 1.15;
}

.page-context-banner p {
  margin: 0;
  max-width: 780px;
  color: var(--shell-muted);
}

.page-top,
.section-head,
.surface-title,
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.page-top {
  padding: 8px 4px 2px;
}

.page-title {
  margin: 0;
  font-size: clamp(1.7rem, 2.3vw, 2.25rem);
  line-height: 1.08;
}

.page-subtitle,
.lead,
.surface-title p,
.section-head p,
.section-title p,
.eyebrow + p {
  color: var(--shell-muted);
}

.clean-panel,
.surface-card,
.card,
.entry-card,
.hero-side-card,
.status-box,
.admin-callout-card,
.admin-top-stat,
.inline-form,
.form-grid,
.hero-summary-card {
  background: linear-gradient(180deg, rgba(12, 20, 36, 0.95), rgba(10, 17, 31, 0.92));
  border-radius: 24px;
}

.clean-panel,
.surface-card,
.card {
  padding: 18px 20px;
}

.entry-card,
.hero-summary-card,
.admin-callout-card,
.status-box,
.admin-top-stat {
  padding: 16px 18px;
}

.hero.card,
.hero-panel.clean-panel,
.landing-hero,
.donate-layout-v2 > article,
.donate-layout-v2 > aside {
  border-radius: 28px;
}

.hero-grid,
.donate-layout-v2,
.live-workspace,
.live-section-grid,
.grid.two-col,
.grid-2,
.grid.grid-3,
.admin-callout-row,
.entry-grid,
.hero-summary-grid,
.admin-top-stats,
.stats-grid {
  gap: 16px;
}

.live-workspace,
.live-section-grid,
.donate-layout-v2,
.admin-callout-row,
.admin-top-stats,
.entry-grid,
.hero-summary-grid,
.grid.two-col,
.grid.grid-3 {
  display: grid;
}

.live-workspace,
.donate-layout-v2 {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
}

.live-section-grid,
.grid.two-col,
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.entry-grid,
.hero-summary-grid,
.admin-callout-row,
.admin-top-stats,
.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.activity-feed,
.clean-feed,
.simple-list,
.timeline,
.chart-list,
.preview-bullets {
  display: grid;
  gap: 12px;
}

.activity-feed > *:last-child,
.clean-feed > *:last-child,
.simple-list > *:last-child,
.timeline > *:last-child {
  margin-bottom: 0;
}

.entry-card {
  text-decoration: none;
}

.entry-card strong,
.status-box span,
.admin-top-stat strong,
.hero-summary-card strong,
.admin-callout-card strong,
.surface-title h3,
.section-head h2,
.section-title h2,
.clean-panel h3,
.card h3 {
  color: #fff;
}

.entry-card span,
.entry-card small,
.hero-summary-card span,
.admin-callout-card span,
.status-box strong,
.status-box small,
.muted,
.subtle {
  color: var(--shell-muted);
}

.status-box {
  display: grid;
  gap: 8px;
  min-height: 104px;
}

.status-box strong {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-box span {
  font-size: 1.15rem;
  font-weight: 800;
}

.hero-inline-stats > div,
.live-mini-grid > div {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(167, 186, 255, 0.12);
  border-radius: 18px;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(167, 186, 255, 0.18);
  background: rgba(4, 10, 22, 0.64);
  color: #fff;
  padding: 13px 14px;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(158, 176, 212, 0.7);
}

label {
  display: grid;
  gap: 8px;
  color: #eaf1ff;
}

.filter-bar,
.form-grid,
.inline-form {
  gap: 12px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(160px, 1fr)) auto auto;
  align-items: center;
}

.inline-form,
.form-grid {
  display: grid;
}

.button,
.button-lite,
.button.ghost,
button.button,
a.button {
  box-shadow: none;
}

button,
.button {
  border-radius: 14px;
}

.badge,
.section-link,
.ticker-chip,
.profile-hero-chip,
.admin-chip,
.filter-chip,
.amount-chip,
.toggle-pill,
.payment-option,
.tab-pill {
  border-radius: 999px;
}

.badge.accent,
.section-link,
.ticker-chip,
.profile-hero-chip,
.admin-chip,
.filter-chip {
  border: 1px solid rgba(167, 186, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #eef4ff;
}

.filter-chip input {
  width: auto;
  margin: 0;
}

.live-page-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
}

.live-page-nav strong {
  margin-right: 4px;
}

.live-page-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: #eef4ff;
}

.live-page-nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.32);
  background: rgba(29, 46, 80, 0.9);
}

:where(section[id]) {
  scroll-margin-top: 112px;
}

#liveNotificationCenter {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(12, 20, 36, 0.98), rgba(8, 14, 28, 0.98));
  border: 1px solid rgba(167, 186, 255, 0.18);
}

#liveNotificationToggle {
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.24);
}

.section-link,
.badge.accent,
.badge,
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb7185, #ef4444);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  margin-left: 6px;
}

.admin-tabs-shell,
.admin-panel-grid,
.tab-panel-stack {
  display: grid;
  gap: 16px;
}

.admin-top-stat {
  display: grid;
  gap: 8px;
  min-height: 96px;
}

.admin-top-stat span {
  color: var(--shell-muted);
  font-size: 0.86rem;
}

.admin-top-stat strong {
  font-size: 1.6rem;
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-pill {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(167, 186, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #eef4ff;
}

.tab-pill.active,
.tab-pill[aria-selected="true"] {
  background: linear-gradient(180deg, rgba(61, 88, 148, 0.98), rgba(34, 53, 95, 0.98));
  border-color: rgba(125, 211, 252, 0.34);
}

.admin-sticky-toolbar {
  position: sticky;
  top: 92px;
  z-index: 12;
}

.simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.simple-list li,
.timeline li,
.chart-row,
.clean-feed li,
#homeFeedList li {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(167, 186, 255, 0.1);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  display: grid;
  gap: 6px;
}

.progress {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.95), rgba(196, 181, 253, 0.95));
}

.table-shell,
table {
  width: 100%;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

table thead th {
  background: rgba(255, 255, 255, 0.06);
  color: #eef4ff;
}

table th,
table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(167, 186, 255, 0.08);
}

table tr:last-child td {
  border-bottom: 0;
}

.empty-state {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(167, 186, 255, 0.18);
  color: var(--shell-muted);
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 1220px) {
  .shell-topbar {
    flex-wrap: wrap;
  }

  .nav-cluster {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .grid.grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .admin-sidebar {
    position: relative;
    top: auto;
  }

  .page-context-banner {
    align-items: flex-start;
  }

  .live-workspace,
  .donate-layout-v2,
  .live-section-grid,
  .grid.two-col,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .shell-topbar,
  .context-strip,
  .page-context-banner,
  .page-top,
  .surface-title,
  .section-head,
  .section-title {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-cluster {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-cluster a {
    white-space: nowrap;
  }

  .nav-actions-v2,
  .context-actions {
    width: 100%;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .grid.grid-3,
  .entry-grid,
  .hero-summary-grid,
  .admin-callout-row,
  .admin-top-stats,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .clean-panel,
  .surface-card,
  .card,
  .page-context-banner,
  .admin-sidebar {
    border-radius: 22px;
    padding: 16px;
  }

  #liveNotificationCenter {
    width: calc(100vw - 28px);
    right: 14px;
    left: 14px;
  }
}
