.dashboard-page {
  --dash-bg: #d7e8f3;
  --dash-panel: rgba(240, 249, 254, 0.7);
  --dash-panel-strong: rgba(232, 244, 251, 0.94);
  --dash-line: rgba(7, 22, 37, 0.12);
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% -10%, rgba(255, 255, 255, 0.92), transparent 30rem),
    radial-gradient(circle at 10% 80%, rgba(106, 157, 194, 0.25), transparent 32rem),
    var(--dash-bg);
}

.dashboard-topbar > .preference-controls { margin-left: auto; }

.dashboard-page button,
.dashboard-page input,
.dashboard-page textarea,
.dashboard-page select { font: inherit; }

.dashboard-grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.dashboard-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  width: 16.5rem;
  padding: 1.5rem 1rem 1rem;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(203, 226, 241, 0.82);
  box-shadow: 16px 0 50px rgba(23, 60, 87, 0.08);
  backdrop-filter: blur(24px) saturate(120%);
}

.dashboard-brand { display: inline-flex; align-items: baseline; margin: 0.35rem 0.75rem 2.2rem; }
.dashboard-brand .brand__code { font-size: 1.35rem; }
.dashboard-brand .brand__name { font-size: 1.25rem; }
.dashboard-nav { display: grid; gap: 0.35rem; }
.dashboard-nav__label { margin: 0 0.65rem 0.4rem; color: rgba(7, 22, 37, 0.46); font-size: 0.58rem; font-weight: 800; letter-spacing: 0.12em; }
.dashboard-nav__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.05rem;
  padding: 0 0.85rem;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  color: rgba(7, 22, 37, 0.7);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.dashboard-nav__item:hover { background: rgba(246, 252, 255, 0.42); }
.dashboard-nav__item.is-active { border-color: rgba(255,255,255,.65); color: var(--ink); background: rgba(240, 249, 254, 0.72); box-shadow: 0 8px 22px rgba(31, 72, 101, 0.08); }
.dashboard-nav__item svg, .dashboard-back svg { width: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-nav__item:first-of-type svg { fill: none; }
.dashboard-sidebar__note { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: auto; padding: 0.85rem; border: 1px solid rgba(255,255,255,.5); border-radius: 0.9rem; background: rgba(240,249,254,.38); }
.status-dot { flex: 0 0 auto; width: 0.5rem; height: 0.5rem; margin-top: 0.22rem; border-radius: 50%; background: #258a64; box-shadow: 0 0 0 4px rgba(37,138,100,.12); }
.dashboard-sidebar__note div { display: grid; gap: 0.15rem; }
.dashboard-sidebar__note strong { font-size: 0.64rem; }
.dashboard-sidebar__note small { color: rgba(7,22,37,.5); font-size: 0.54rem; line-height: 1.45; }
.dashboard-back { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.65rem; padding: 0.75rem 0.85rem; color: rgba(7,22,37,.62); font-size: 0.66rem; font-weight: 700; }

.dashboard-shell { min-height: 100svh; margin-left: 16.5rem; }
.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.8rem;
  padding: 0.75rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(255,255,255,.58);
  background: rgba(215,232,243,.76);
  backdrop-filter: blur(22px) saturate(120%);
}
.dashboard-menu-button { display: none; border: 0; background: transparent; cursor: pointer; }
.dashboard-menu-button svg { width: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.dashboard-topbar__title { display: grid; gap: 0.15rem; }
.dashboard-topbar__title span { color: rgba(7,22,37,.43); font-size: 0.5rem; font-weight: 800; letter-spacing: 0.18em; }
.dashboard-topbar__title strong { font-size: 0.9rem; }
.dashboard-user { display: flex; align-items: center; gap: 0.65rem; }
.dashboard-user > div { display: grid; justify-items: end; gap: 0.08rem; }
.dashboard-user > div strong { max-width: 15rem; overflow: hidden; font-size: 0.7rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-user > div span { max-width: 15rem; overflow: hidden; color: rgba(7,22,37,.5); font-size: 0.54rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-user__avatar { display: grid; width: 2.3rem; height: 2.3rem; overflow: hidden; place-items: center; border: 2px solid rgba(255,255,255,.8); border-radius: 0.8rem; color: var(--ice); background: var(--ink); font-size: 0.78rem; font-weight: 800; box-shadow: 0 6px 18px rgba(26,65,94,.14); }
.dashboard-user__avatar img { width: 100%; height: 100%; object-fit: cover; }
.dashboard-user__avatar [hidden] { display: none; }
.dashboard-user__logout { display: grid; width: 2.15rem; height: 2.15rem; padding: 0; place-items: center; border: 1px solid var(--dash-line); border-radius: 0.72rem; background: rgba(244,251,255,.5); cursor: pointer; }
.dashboard-user__logout svg { width: 1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.dashboard-content { width: min(100%, 92rem); margin: 0 auto; padding: clamp(1.4rem, 4vw, 3.2rem); }
.dashboard-loading { display: flex; align-items: center; justify-content: center; gap: 0.65rem; min-height: 50vh; color: rgba(7,22,37,.55); font-size: 0.72rem; font-weight: 700; }
.dashboard-loading[hidden] { display: none; }
.dashboard-loading span { width: 0.9rem; height: 0.9rem; border: 2px solid rgba(7,22,37,.15); border-top-color: var(--ink); border-radius: 50%; animation: dashboard-spin .8s linear infinite; }
@keyframes dashboard-spin { to { transform: rotate(360deg); } }
.dashboard-alert { margin-bottom: 1rem; padding: 0.8rem 1rem; border: 1px solid rgba(146,36,49,.2); border-radius: 0.85rem; color: #7c202b; background: rgba(255,236,239,.7); font-size: 0.68rem; font-weight: 700; }
.dashboard-alert[hidden], .dashboard-view[hidden], .payment-form[hidden], .sidebar-backdrop[hidden] { display: none; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.6rem; }
.dashboard-eyebrow { color: rgba(7,22,37,.42); font-size: 0.55rem; font-weight: 800; letter-spacing: 0.17em; }
.dashboard-heading h1 { margin: 0.3rem 0 0; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.05em; }
.dashboard-heading p { max-width: 40rem; margin: 0.3rem 0 0; color: rgba(7,22,37,.56); font-size: 0.72rem; line-height: 1.6; }
.dashboard-primary { min-height: 2.8rem; padding: 0 1.05rem; border: 0; border-radius: 0.85rem; color: var(--ice); background: var(--ink); font-size: 0.7rem; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px rgba(7,22,37,.14); }
.dashboard-primary:hover { background: #14354e; transform: translateY(-1px); }
.dashboard-primary:disabled { opacity: .55; cursor: wait; transform: none; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
.metric-card, .dashboard-card, .payment-method, .security-banner { border: 1px solid rgba(255,255,255,.65); background: var(--dash-panel); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 14px 35px rgba(28,67,96,.07); backdrop-filter: blur(18px); }
.metric-card { position: relative; display: grid; min-height: 9.4rem; padding: 1.15rem; align-content: space-between; overflow: hidden; border-radius: 1.15rem; }
.metric-card::after { position: absolute; right: -2.2rem; bottom: -3rem; width: 7rem; height: 7rem; content: ""; border-radius: 50%; background: rgba(118,165,198,.15); }
.metric-card--featured { color: var(--ice); border-color: rgba(255,255,255,.14); background: linear-gradient(145deg, #0c2032, #173d59); }
.metric-card--featured::after { background: rgba(169,201,226,.12); }
.metric-card > span { color: rgba(7,22,37,.52); font-size: 0.62rem; font-weight: 700; }
.metric-card--featured > span, .metric-card--featured small { color: rgba(238,249,255,.62); }
.metric-card strong { position: relative; z-index: 1; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.04em; }
.metric-card small { color: rgba(7,22,37,.45); font-size: 0.54rem; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(18rem, .8fr); gap: 0.9rem; margin-top: 0.9rem; }
.dashboard-card { padding: 1.2rem; border-radius: 1.2rem; }
.dashboard-card__heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.dashboard-card__heading span { color: rgba(7,22,37,.42); font-size: 0.52rem; font-weight: 800; letter-spacing: .13em; }
.dashboard-card__heading h2 { margin: .2rem 0 0; font-size: 1rem; letter-spacing: -.02em; }
.coming-badge { padding: .35rem .55rem; border-radius: 2rem; background: rgba(7,22,37,.06); letter-spacing: 0 !important; }
.chart-placeholder { position: relative; display: flex; align-items: end; gap: 6%; height: 12rem; padding: 1.4rem 1rem .8rem; overflow: hidden; border-radius: .9rem; background: linear-gradient(rgba(7,22,37,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(7,22,37,.04) 1px, transparent 1px); background-size: 100% 25%, 16.66% 100%; }
.chart-placeholder span { flex: 1; height: 20%; border-radius: .35rem .35rem 0 0; background: linear-gradient(#5f91b5, #1c4968); opacity: .75; }
.chart-placeholder span:nth-child(2) { height: 42%; }.chart-placeholder span:nth-child(3) { height: 33%; }.chart-placeholder span:nth-child(4) { height: 65%; }.chart-placeholder span:nth-child(5) { height: 52%; }.chart-placeholder span:nth-child(6) { height: 78%; }
.chart-placeholder i { position: absolute; inset: 15% 0 auto; height: 45%; background: radial-gradient(circle at 60% 50%, rgba(255,255,255,.7), transparent 48%); }
.donation-chart-card > p { margin: .8rem 0 0; color: rgba(7,22,37,.48); font-size: .58rem; }
.readiness-list { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.readiness-list li { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: .7rem; padding: .7rem; border: 1px solid var(--dash-line); border-radius: .85rem; }
.readiness-list li > span { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: .65rem; color: rgba(7,22,37,.55); background: rgba(7,22,37,.06); font-size: .63rem; font-weight: 800; }
.readiness-list li div { display: grid; gap: .1rem; }.readiness-list strong { font-size: .65rem; }.readiness-list small { color: rgba(7,22,37,.48); font-size: .52rem; }.readiness-list b { color: #8a6127; font-size: .53rem; }.readiness-list .is-ready b { color: #217053; }.readiness-list .is-ready > span { color: #fff; background: #217053; }
.recent-card { margin-top: .9rem; min-height: 14rem; }.donation-list { display: grid; }.empty-state { display: grid; min-height: 11rem; place-items: center; align-content: center; gap: .25rem; color: rgba(7,22,37,.5); text-align: center; }.empty-state > span { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border: 1px solid var(--dash-line); border-radius: .8rem; font-size: .75rem; font-weight: 900; }.empty-state strong { color: rgba(7,22,37,.68); font-size: .68rem; }.empty-state p { margin: 0; font-size: .56rem; }.donation-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--dash-line); }.donation-row div { display: grid; gap: .15rem; }.donation-row strong { font-size: .68rem; }.donation-row span { color: rgba(7,22,37,.5); font-size: .56rem; }.donation-row b { font-size: .72rem; }

.profile-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1rem; align-items: start; }
.form-card { display: grid; gap: 1rem; }
.dashboard-field { display: grid; gap: .38rem; color: rgba(7,22,37,.68); font-size: .63rem; font-weight: 700; }
.dashboard-field input, .dashboard-field textarea, .dashboard-field select { width: 100%; border: 1px solid rgba(7,22,37,.13); border-radius: .85rem; outline: none; color: var(--ink); background: rgba(249,253,255,.58); font-size: .72rem; transition: border-color .18s ease, box-shadow .18s ease; }
.dashboard-field input, .dashboard-field select { height: 3rem; padding: 0 .9rem; }.dashboard-field textarea { padding: .85rem .9rem; resize: vertical; line-height: 1.6; }.dashboard-field input:focus, .dashboard-field textarea:focus, .dashboard-field select:focus { border-color: rgba(23,72,106,.52); box-shadow: 0 0 0 3px rgba(57,108,145,.1); }.dashboard-field small { justify-self: end; color: rgba(7,22,37,.43); font-size: .52rem; font-weight: 400; }.slug-input { display: flex; align-items: center; overflow: hidden; border: 1px solid rgba(7,22,37,.13); border-radius: .85rem; background: rgba(249,253,255,.58); }.slug-input > span { padding-left: .9rem; color: rgba(7,22,37,.4); font-size: .65rem; }.slug-input input { border: 0; background: transparent; }.social-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .35rem; }.form-status { margin: 0; font-size: .6rem; font-weight: 700; }.form-status.is-success { color: #176140; }.form-status.is-error { color: #902532; }

.security-banner { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; padding: 1rem; border-radius: 1rem; }.security-banner svg { flex: 0 0 auto; width: 1.6rem; fill: none; stroke: #176140; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }.security-banner div { display: grid; gap: .15rem; }.security-banner strong { font-size: .69rem; }.security-banner span { color: rgba(7,22,37,.52); font-size: .56rem; line-height: 1.5; }.payment-form { margin-bottom: 1rem; }.payment-form__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }.icon-button { width: 2rem; height: 2rem; border: 1px solid var(--dash-line); border-radius: .6rem; background: rgba(255,255,255,.4); cursor: pointer; }.payment-list { display: grid; gap: .75rem; }.payment-method { display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: .9rem; padding: 1rem; border-radius: 1rem; opacity: .68; }.payment-method.is-enabled { opacity: 1; }.payment-method__icon { display: grid; width: 3rem; height: 3rem; place-items: center; border-radius: .85rem; color: var(--ice); background: var(--ink); font-size: .62rem; font-weight: 900; }.payment-method__details { display: grid; gap: .12rem; min-width: 0; }.payment-method__details > span { color: rgba(7,22,37,.42); font-size: .5rem; font-weight: 800; letter-spacing: .1em; }.payment-method__details strong, .payment-method__details small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.payment-method__details strong { font-size: .75rem; }.payment-method__details small { color: rgba(7,22,37,.5); font-size: .58rem; }.payment-method__controls { display: flex; align-items: center; gap: .75rem; }.payment-method__delete { border: 0; color: #8e2834; background: transparent; font-size: .6rem; font-weight: 800; cursor: pointer; }.switch { position: relative; width: 2.3rem; height: 1.3rem; }.switch input { position: absolute; opacity: 0; }.switch span { position: absolute; inset: 0; border-radius: 2rem; background: rgba(7,22,37,.18); cursor: pointer; transition: .2s; }.switch span::after { position: absolute; top: .18rem; left: .18rem; width: .94rem; height: .94rem; content: ""; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(7,22,37,.2); transition: .2s; }.switch input:checked + span { background: #217053; }.switch input:checked + span::after { transform: translateX(1rem); }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(7,22,37,.28); backdrop-filter: blur(2px); }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid, .profile-layout { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .dashboard-sidebar { transform: translateX(-105%); transition: transform .25s ease; }
  .dashboard-sidebar.is-open { transform: translateX(0); }
  .dashboard-shell { margin-left: 0; }
  .dashboard-menu-button { display: grid; width: 2rem; height: 2rem; place-items: center; }
  .dashboard-topbar__title { margin-right: auto; margin-left: .7rem; }
  .dashboard-user > div { display: none; }
}

@media (max-width: 600px) {
  .dashboard-content { padding: 1.15rem; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-heading .dashboard-primary { width: 100%; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 8rem; }
  .social-field-grid, .payment-form__grid { grid-template-columns: 1fr; }
  .payment-method { grid-template-columns: 2.6rem 1fr; }
  .payment-method__icon { width: 2.6rem; height: 2.6rem; }
  .payment-method__controls { grid-column: 1 / -1; justify-content: flex-end; padding-top: .6rem; border-top: 1px solid var(--dash-line); }
  .form-actions { align-items: stretch; flex-direction: column; }
  .dashboard-primary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-page *, .dashboard-page *::before, .dashboard-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}