/* ==========================================================================
   components.css — Shared component styles extracted from templates
   Loaded in base.html after chan.css, before dark.css.
   DO NOT add page-specific layout here — use chan.css or layout.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Auth extras (register.html)
   -------------------------------------------------------------------------- */
.auth-tos-field { margin-bottom: 1rem; }
.auth-tos-label { display: flex; align-items: flex-start; gap: 0.5rem; font-size: var(--font-size-xs); color: var(--text-muted); line-height: 1.4; cursor: pointer; }
.auth-tos-checkbox { margin-top: 0.15rem; flex-shrink: 0; accent-color: var(--gold); }
.auth-tos-label a { color: var(--gold); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Pricing extras (pricing.html)
   -------------------------------------------------------------------------- */
.pricing-legal-notice { text-align: center; font-size: var(--font-size-xs); color: var(--text-muted); margin-top: 1.5rem; line-height: 1.5; }
.pricing-legal-notice a { color: var(--gold); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Mod tools (mod_dashboard.html, ban_list.html)
   -------------------------------------------------------------------------- */
.mod-table { width: 100%; border-collapse: collapse; margin-top: var(--gap-md); }
.mod-table th, .mod-table td { padding: var(--gap-sm) var(--gap-md); border: 1px solid var(--border); text-align: left; font-size: var(--font-size-sm); }
.mod-table th { background: var(--bg-alt); font-weight: var(--font-weight-bold); }
.mod-id { font-family: monospace; color: var(--text-dim); }
.mod-excerpt { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-actions { display: flex; gap: var(--gap-xs); flex-wrap: wrap; }
.btn-mod { padding: 2px 8px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; font-size: var(--font-size-sm); border-radius: 2px; }
.btn-delete { color: var(--color-error); border-color: var(--color-error); }
.btn-resolve { color: #060; border-color: #060; }
.btn-dismiss { color: #666; }
.btn-ban { color: #c60; border-color: #c60; }
.mod-empty { color: var(--text-dim); font-style: italic; margin-top: var(--gap-md); }
.mod-section { margin-top: var(--gap-lg); }
.mod-section-title { font-size: var(--font-size-md); font-weight: var(--font-weight-bold); margin-bottom: var(--gap-sm); border-bottom: 1px solid var(--border); padding-bottom: var(--gap-xs); }
.board-status-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: var(--font-size-xs); font-weight: bold; }
.badge-active { background: rgba(26,122,74,0.15); color: #1a7a4a; }
.badge-locked { background: rgba(200,146,58,0.15); color: var(--gold); }
.mod-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; align-items: center; justify-content: center; z-index: 1000; }
.mod-modal-box { background: var(--bg); border: 1px solid var(--border); padding: var(--gap-lg); min-width: 320px; }
.mod-ban-reason { width: 100%; padding: var(--gap-sm); margin: var(--gap-sm) 0 var(--gap-md); border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.mod-modal-actions { display: flex; gap: var(--gap-sm); }

/* Inbound email operations (Phase 53-04) */
.mail-lane-count { color: var(--text-dim); font-weight: normal; }
.mail-lane--critical .mod-section-title { color: var(--color-error); }
.mail-unseen { font-weight: bold; }
.mail-quarantine { opacity: 0.85; }
.mail-detail-box { min-width: 420px; max-width: 720px; width: 90%; max-height: 85vh; overflow-y: auto; text-align: left; }
.mail-detail-meta { font-size: var(--font-size-sm); color: var(--text-dim); margin-bottom: var(--gap-sm); }
.mail-detail-body { white-space: pre-wrap; word-break: break-word; background: var(--bg-alt, rgba(0,0,0,.04)); padding: var(--gap-sm); border: 1px solid var(--border); max-height: 30vh; overflow-y: auto; }
.mail-detail-html-wrap { margin: var(--gap-sm) 0; }
.mail-detail-html { border: 1px solid var(--border); padding: var(--gap-sm); margin-top: var(--gap-xs); max-height: 30vh; overflow-y: auto; }
.mail-reply-body { width: 100%; }

/* --------------------------------------------------------------------------
   Error pages (403.html, 404.html, 500.html)
   -------------------------------------------------------------------------- */
.error-page { text-align: center; padding: var(--gap-lg) 0; max-width: 480px; margin: 0 auto; }
.error-star { font-size: 3rem; color: var(--gold); opacity: 0.4; line-height: 1; margin-bottom: var(--gap-sm); }
.error-code { font-size: 5rem; font-weight: 900; color: var(--accent); line-height: 1; }
.error-title { font-size: var(--font-size-lg); margin: var(--gap-sm) 0; }
.error-desc { color: var(--text-dim); margin-bottom: var(--gap-lg); }
.error-actions { margin-top: var(--gap-md); display: flex; gap: var(--gap-sm); justify-content: center; flex-wrap: wrap; }
.error-suggestions { margin: var(--gap-md) 0; text-align: left; }
.error-suggest-label { font-size: var(--font-size-sm); color: var(--text); margin-bottom: var(--gap-xs); }
.error-suggest-list { list-style: none; padding: 0; font-size: var(--font-size-sm); }
.error-suggest-list li { padding: 3px 0; }
.error-suggest-list a { color: var(--link); }
.error-suggest-list a:hover { color: var(--hover); }

/* --------------------------------------------------------------------------
   Legal pages (terms.html, privacy.html, rules.html, faq.html)
   -------------------------------------------------------------------------- */
.legal-hero { background: var(--navy); padding: var(--gap-xl) var(--gap-lg); text-align: center; }
.legal-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px); color: #fff; margin-bottom: var(--gap-sm); }
.legal-hero-meta { font-size: var(--font-size-sm); color: #fff; opacity: 0.7; }
.legal-body-section { background: var(--bg); padding: var(--gap-xl) var(--gap-lg); }
.legal-doc-wrap { max-width: 68ch; margin: 0 auto; }
.legal-doc-wrap p, .legal-doc-wrap li { font-family: var(--font-display); font-size: 16px; line-height: 1.75; color: var(--text); margin-bottom: 1em; }
.legal-doc-wrap ul, .legal-doc-wrap ol { padding-left: 1.5em; margin-bottom: 1em; }
.legal-doc-wrap a { color: var(--link); text-decoration: underline; }
.legal-doc-wrap a:hover { color: var(--hover); }
.legal-doc-wrap h2 { font-family: var(--font-main); font-size: var(--font-size-xl); font-weight: 700; color: var(--navy); margin-top: 2.5em; margin-bottom: 0.5em; }
[data-theme="dark"] .legal-doc-wrap h2 { color: var(--text); }
.legal-doc-wrap h3 { font-family: var(--font-main); font-size: var(--font-size-md); font-weight: 600; color: var(--text); margin-top: 1.75em; margin-bottom: 0.4em; }
.legal-doc-wrap h2[id], .legal-doc-wrap h3[id] { scroll-margin-top: calc(var(--header-height) + var(--tabs-height) + 16px); }
.legal-divider { border: none; border-top: 1px solid var(--border); margin: var(--gap-xl) 0 var(--gap-lg); }
.legal-toc { background: var(--bg-post); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--radius-md); padding: var(--gap-md) var(--gap-lg); margin-bottom: var(--gap-xl); }
.legal-toc-title { font-family: var(--font-main); font-size: var(--font-size-sm); font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 var(--gap-sm); }
.legal-toc-list { margin: 0; padding-left: 1.25em; list-style: decimal; }
.legal-toc-list li { margin-bottom: 6px; font-size: 15px; font-family: var(--font-main); color: var(--text); }
.legal-toc-list a { color: var(--link); text-decoration: none; }
.legal-toc-list a:hover { color: var(--hover); text-decoration: underline; }
.legal-updated-banner { background: var(--bg-post); border: 1px solid var(--gold); border-radius: var(--radius-sm); padding: var(--gap-sm) var(--gap-md); margin-bottom: var(--gap-lg); font-size: var(--font-size-sm); color: var(--text); text-align: center; }
/* Internal [ATTORNEY: confirm] TODO markers — hidden from the public.
   Switch to display:block during a legal review pass. */
.legal-attorney-draft { display: none; }

/* Upgrade success page (post-checkout) — class-based so it survives the
   strict CSP (style-src 'self'; inline style="" attributes are blocked). */
.upgrade-success { max-width: 600px; margin: var(--gap-xl) auto; text-align: center; }
.upgrade-success__star { font-size: 3rem; margin-bottom: var(--gap-md); }
.upgrade-success__title { font-size: var(--font-size-xl); color: var(--gold); margin-bottom: var(--gap-sm); }
.upgrade-success__lede { margin-bottom: var(--gap-lg); color: var(--text-dim); }
.upgrade-success__list { text-align: left; list-style: none; margin: 0 auto var(--gap-lg); max-width: 360px; }
.upgrade-success__list li { padding: var(--gap-xs) 0; border-bottom: 1px solid var(--border); }
.upgrade-success__list li:last-child { border-bottom: none; }
.upgrade-success__cta { display: inline-block; background: var(--gold); color: #fff; padding: var(--gap-sm) var(--gap-lg); border-radius: var(--radius-sm); text-decoration: none; font-weight: 700; margin-bottom: var(--gap-md); }
.upgrade-success__forum { font-size: var(--font-size-sm); color: var(--text-dim); }

/* Founder setup page (one-time #0001 claim) — moved out of an inline <style>
   block that the strict CSP (style-src 'self') was blocking. */
.setup-wrap { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.setup-card { max-width: 400px; width: 100%; text-align: center; padding: 2.5rem 2rem; border: 1px solid var(--border); border-radius: 8px; background: var(--post-bg); }
.setup-glyph { font-size: 2.5rem; color: #c8923a; margin-bottom: 0.75rem; animation: setup-pulse 3s ease-in-out infinite; }
@keyframes setup-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.setup-title { font-size: 1.4rem; font-weight: 700; margin: 0 0 0.25rem; color: var(--text-primary); }
.setup-subtitle { font-family: monospace; font-size: 1rem; color: #c8923a; margin: 0 0 1.25rem; font-weight: 600; }
.setup-desc { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; margin: 0 0 1.5rem; }
.setup-btn { display: inline-block; padding: 0.65rem 1.5rem; background: #c8923a; color: #fff; border: none; border-radius: 5px; font-size: 0.95rem; font-weight: 600; cursor: pointer; text-decoration: none; letter-spacing: 0.02em; }
.setup-btn:hover { background: #b07830; }
.setup-btn-secondary { background: transparent; color: var(--link); border: 1px solid var(--border); }
.setup-btn-secondary:hover { background: var(--post-bg); }
.setup-note { margin-top: 1rem; font-size: 0.78rem; color: var(--text-dim); }

/* Mod dashboard pin-management inputs — moved off inline style="" (CSP). */
#pin-thread-id { width: 260px; max-width: 100%; }
#pin-order { width: 180px; max-width: 100%; }
@media (max-width: 768px) {
  .legal-body-section { padding: var(--gap-lg) var(--gap-md); }
  .legal-doc-wrap { max-width: 100%; }
  .legal-toc { padding: var(--gap-md); }
}

/* --------------------------------------------------------------------------
   Astro app animation (astro_app.html)
   -------------------------------------------------------------------------- */
@keyframes astro-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   account.html — section spacing and loading text
   -------------------------------------------------------------------------- */
.account-section { margin-bottom: var(--gap-lg); }
.account-loading { font-size: var(--font-size-sm); color: var(--text); }

/* --------------------------------------------------------------------------
   donate_success.html — success page overrides
   -------------------------------------------------------------------------- */
.donate-mission--compact { padding: 2rem 1rem; text-align: center; }
.donate-success-lede { font-size: 1.1rem; margin-bottom: 1.5rem; }
.donate-cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   logout.html
   -------------------------------------------------------------------------- */
.logout-card { max-width: 360px; margin: var(--gap-lg) auto; text-align: center; }
.logout-note { margin-top: var(--gap-md); }

/* --------------------------------------------------------------------------
   notifications.html — static cosmetic classes
   -------------------------------------------------------------------------- */
.notif-wrap { max-width: 720px; margin: 0 auto; }
.notif-header-row { display: flex; align-items: baseline; gap: var(--gap-md); margin-bottom: var(--gap-md); }
.notif-title { margin: 0; }
.notif-mark-all-btn { font-size: var(--font-size-sm); padding: 2px 10px; }
.notif-item { margin-bottom: var(--gap-sm); position: relative; transition: opacity 0.3s ease; }
.notif-delete-btn { position: absolute; top: 6px; right: 6px; background: none; border: none; cursor: pointer; opacity: 0.45; font-size: 1.1em; line-height: 1; padding: 2px 4px; }
.notif-meta-right { float: right; color: var(--muted); padding-right: var(--gap-lg); }
.notif-new-badge { color: var(--accent); }
.notif-empty { color: var(--muted); }
.mark-all-msg { font-size: var(--font-size-sm); }

/* --------------------------------------------------------------------------
   profile.html — static cosmetic classes (HTML attributes)
   -------------------------------------------------------------------------- */
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; border: 1px solid var(--border); float: left; margin-right: var(--gap-md); }
.profile-astrologer-badge { font-size: var(--font-size-sm); color: var(--link); }
.profile-clearfix { clear: both; }
.profile-bio-section { margin-top: var(--gap-md); }
.profile-bio-heading { font-size: var(--font-size-base); margin-bottom: var(--gap-xs); }
.profile-bio-text { font-size: var(--font-size-base); line-height: var(--line-height); }
.profile-history-section { margin-top: var(--gap-lg); }
.profile-history-heading { margin-bottom: var(--gap-sm); }
.profile-history-empty { color: var(--text-muted); }
.profile-pager-wrap { margin-top: var(--gap-sm); }
.profile-pager-prev { margin-right: var(--gap-xs); }
.profile-pager-label { font-size: var(--font-size-sm); }
.profile-pager-next { margin-left: var(--gap-xs); }

/* --------------------------------------------------------------------------
   profile.html — Phase 34 enhancements: avatar placeholder, tier badge, stat bar
   -------------------------------------------------------------------------- */
.profile-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  font-family: var(--font-display);
  user-select: none;
}

.profile-tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  background: rgba(200, 146, 58, 0.12);
  border: 1px solid rgba(200, 146, 58, 0.25);
  border-radius: 20px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--accent);
  margin-left: var(--gap-sm);
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.profile-stat-bar {
  display: flex;
  gap: var(--gap-md);
  margin-top: var(--gap-xs);
  font-size: var(--font-size-sm);
  color: var(--text-dim);
  clear: left;
}

@media (max-width: 480px) {
  .profile-avatar,
  .profile-avatar-placeholder {
    float: none;
    display: block;
    margin: 0 0 var(--gap-sm) 0;
  }
}

/* --------------------------------------------------------------------------
   account.html — avatar image CSS class (replaces inline styles)
   -------------------------------------------------------------------------- */
.account-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid var(--border);
  margin-bottom: var(--gap-sm);
  display: block;
}

/* --------------------------------------------------------------------------
   profile.html — dynamically rendered post history items
   -------------------------------------------------------------------------- */
.post-history-msg   { color: var(--text-muted); }
.post-history-error { color: var(--color-error); }
.post-history-item  { margin-bottom: var(--gap-sm); padding: var(--gap-sm); }
.post-history-item-meta { font-size: var(--font-size-sm); color: var(--text-muted); }
.post-history-item-body { margin-top: var(--gap-xs); }
.post-history-item-link { font-size: var(--font-size-sm); }

/* --------------------------------------------------------------------------
   thread.html — chart status messages (static + JS-injected)
   -------------------------------------------------------------------------- */
.chart-status-msg { text-align: center; color: var(--text-dim); padding: var(--gap-lg); }

/* --------------------------------------------------------------------------
   verify_email.html
   -------------------------------------------------------------------------- */
.auth-card--centered { text-align: center; }
.auth-card-body { color: var(--text-on-dark); margin: var(--gap-md) 0; }
.auth-btn--inline { display: inline-block; text-decoration: none; }
.auth-title--error { color: #e05c5c; }

/* --------------------------------------------------------------------------
   create_thread.html — image preview
   -------------------------------------------------------------------------- */
.image-preview-wrap { margin-top: var(--gap-xs); }
.image-preview { max-width: 200px; max-height: 200px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.image-preview-info { font-size: var(--font-size-sm); color: var(--text); opacity: 0.7; margin: 4px 0 0; }
.thread-cancel-link { margin-left: var(--gap-md); font-size: var(--font-size-sm); }

/* --------------------------------------------------------------------------
   mod_dashboard.html — modal inner elements
   -------------------------------------------------------------------------- */
.mod-modal-target { font-size: var(--font-size-sm); color: var(--text); margin-bottom: var(--gap-sm); }
.mod-ban-label { font-size: var(--font-size-sm); }

/* --------------------------------------------------------------------------
   auth.js / login.html — auth message
   -------------------------------------------------------------------------- */
.auth-msg { display: none; color: #e05c5c; }

/* --------------------------------------------------------------------------
   Phase 43: Per-field error messages (register.html)
   -------------------------------------------------------------------------- */
.auth-field-error {
  color: var(--color-error);
  font-size: 12px;
  min-height: 16px;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Behavioral show/hide — initial hidden state; JS reveals explicitly
   -------------------------------------------------------------------------- */
#image-preview-wrap      { display: none; }
#post-history-pagination { display: none; }
#mark-all-msg            { display: none; }

/* --------------------------------------------------------------------------
   astro_app.html — placeholder text opacity
   -------------------------------------------------------------------------- */
.astro-placeholder-inner p:first-child { opacity: 0.6; }
.astro-placeholder-inner p:last-child  { opacity: 0.45; }

/* --------------------------------------------------------------------------
   Dark mode overrides — contrast fixes for mod dashboard components
   -------------------------------------------------------------------------- */

/* .badge-active: #1a7a4a fails WCAG AA (2.3:1) on dark bg (#1a1e28).
   #4ade80 passes 5.2:1 against var(--bg-post) in dark mode. */
[data-theme="dark"] .badge-active {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

/* .btn-resolve: #060 is near-invisible on dark bg (#111420).
   #4ade80 passes contrast and matches the badge-active green. */
[data-theme="dark"] .btn-resolve {
  color: #4ade80;
  border-color: #4ade80;
}

/* ==========================================================================
   Donate page — /donate
   Constellation reveals on scroll. All dc-* classes live here.
   ========================================================================== */

body.donate-page { background: #03040a; }
.donate-page .page-wrap { background: transparent; }
.donate-page .site-footer {
  display: none;
}

/* Fixed sky gradient */
.dc-sky {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 25% 15%, rgba(25,15,55,0.85) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 75% 85%, rgba(15,8,38,0.75) 0%, transparent 65%),
    linear-gradient(175deg, #04050e 0%, #070a18 45%, #090d1e 100%);
  z-index: -3;
  pointer-events: none;
}

/* Star field */
.dc-stars { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.dc-star   { position: absolute; border-radius: 50%; background: #fff; }
@keyframes dc-twinkle {
  0%, 100% { opacity: 0.95; transform: scale(1); }
  50%       { opacity: 0.15; transform: scale(0.55); }
}

/* Constellation — fixed to RIGHT half so content on left stays unobstructed */
.dc-constellation-frame {
  position: fixed;
  right: 0;
  top: 0;
  width: 52%;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}
.dc-constellation-svg {
  height: 92vh;
  width: auto;
  max-width: 52vw;
}

/* Dots: fade in via opacity when their group's scroll threshold is hit */
.g-dot  { opacity: 0; transition: opacity 0.9s ease; }
.g-dot.on { opacity: 1; }

/* Lantern star — irregular fire flicker once revealed */
@keyframes dc-lantern-flicker {
  0%   { opacity: 1.00; }
  8%   { opacity: 0.50; }
  16%  { opacity: 0.88; }
  27%  { opacity: 0.40; }
  35%  { opacity: 0.95; }
  44%  { opacity: 0.62; }
  53%  { opacity: 1.00; }
  61%  { opacity: 0.45; }
  70%  { opacity: 0.85; }
  79%  { opacity: 0.38; }
  88%  { opacity: 0.92; }
  100% { opacity: 1.00; }
}
.dc-star-rays {
  animation: dc-lantern-flicker 2.6s ease-in-out infinite;
}

/* Lines: always visible opacity-wise — stroke-dashoffset controls drawing.
   JS sets strokeDasharray = strokeDashoffset = line-length on init, then
   drives dashoffset → 0 as scroll progresses (lines trace themselves). */
.g-line line { stroke-dasharray: 9999; stroke-dashoffset: 9999; }

/* Lantern glow: fades in last */
.g-glow { opacity: 0; transition: opacity 2.2s ease; }
.g-glow.on { opacity: 1; }

/* Scrollable content — sits above the constellation */
.dc-content { position: relative; z-index: 10; }

/* Semi-transparent text backdrop so content is readable over constellation */
.dc-hero,
.dc-mission,
.dc-donate-section,
.dc-wall,
.dc-disclaimer {
  position: relative;
}
.dc-hero::before,
.dc-mission::before,
.dc-donate-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 50%,
    rgba(3,4,10,0.72) 0%,
    rgba(3,4,10,0.45) 60%,
    transparent 100%
  );
  pointer-events: none;
  z-index: -1;
}

/* Content — hard left column on desktop so Hermit is fully right */
@media (min-width: 960px) {
  .dc-content {
    width: 50%;
    max-width: 50%;
    box-sizing: border-box;
  }
  .dc-hero,
  .dc-mission,
  .dc-donate-section,
  .dc-wall,
  .dc-disclaimer {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: clamp(32px, 5vw, 80px);
    padding-right: 32px;
  }
}

/* Mobile / narrow: content full width, constellation fades behind */
@media (max-width: 959px) {
  .dc-hero,
  .dc-mission,
  .dc-donate-section,
  .dc-wall,
  .dc-disclaimer {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Hero — very tall, users must scroll a full screen before seeing anything */
.dc-hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 100px;
  text-align: center;
}
.dc-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c8923a;
  margin-bottom: 12px;
}
.dc-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3.2rem, 6.5vw, 5rem);
  font-weight: 600;
  line-height: 1.08;
  color: #eef4ff;
  margin-bottom: 24px;
  text-shadow: 0 0 60px rgba(200,146,58,0.12);
}
.dc-hero h1 em {
  font-style: normal;
  color: #c8923a;
  text-shadow: 0 0 30px rgba(200,146,58,0.45), 0 0 80px rgba(200,146,58,0.15);
}
.dc-hero-sub {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(221,232,244,0.65);
  margin-bottom: 32px;
}
.dc-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200,146,58,0.5);
  animation: dc-bob 2.2s ease-in-out infinite;
}
@keyframes dc-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* Mission — tall padding to push donate section deep */
.dc-mission { padding-top: 120px; padding-bottom: 160px; }
.dc-section-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c8923a;
  margin-bottom: 12px;
}
.dc-mission h2 {
  font-family: Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #dde8f4;
  margin-bottom: 24px;
}
.dc-mission-list { list-style: none; padding: 0; margin: 0; }
.dc-mission-list li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(200,146,58,0.1);
  color: rgba(221,232,244,0.75);
  font-size: 15px;
  line-height: 1.6;
}
.dc-mission-list li:last-child { border-bottom: none; }
.dc-mi { color: #c8923a; min-width: 22px; font-size: 17px; line-height: 1.6; }

/* Donate section */
.dc-donate-section { padding-top: 80px; padding-bottom: 40px; }
.dc-donate-section h2 {
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #eef4ff;
  margin-bottom: 6px;
  text-shadow: 0 0 40px rgba(200,146,58,0.20);
}
.dc-donate-sub {
  color: rgba(221,232,244,0.52);
  font-size: 14px;
  margin-bottom: 36px;
  letter-spacing: 0.02em;
}

/* Tier cards — Liquid Glass style */
.dc-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  align-items: start;
}
@media (max-width: 600px) { .dc-tier-grid { grid-template-columns: 1fr; } }

.dc-tier-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(200,146,58,0.30);
  border-radius: 12px;
  padding: 24px 16px 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.2s var(--ease-spring), box-shadow 0.25s;
  user-select: none;
}
.dc-tier-card:hover {
  border-color: rgba(200,146,58,0.65);
  background: rgba(200,146,58,0.08);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(200,146,58,0.16);
}
.dc-tier-card.dc-selected {
  border-color: #c8923a;
  background: rgba(200,146,58,0.10);
  transform: scale(1.06) translateY(-4px);
  box-shadow:
    0 0 0 1.5px rgba(200,146,58,0.6),
    0 12px 40px rgba(200,146,58,0.22),
    0 0 60px rgba(200,146,58,0.08);
}

/* Popular badge on the featured (selected) card */
.dc-tier-card.dc-selected::before {
  content: '✦ Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #c8923a, #d4a84e);
  color: #0a0b12;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.dc-tier-name {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c8923a;
  margin: 0 0 10px;
  font-weight: var(--font-weight-semibold);
}
.dc-tier-amt {
  font-size: 2.6rem;
  font-weight: var(--font-weight-bold);
  color: #eef4ff;
  line-height: 1;
  margin: 0 0 10px;
  font-family: Georgia, serif;
  letter-spacing: -0.02em;
}
.dc-tier-desc { font-size: 12px; color: rgba(221,232,244,0.58); line-height: 1.6; margin: 0; }

/* Name field */
.dc-name-field { margin-bottom: 20px; }
.dc-name-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200,146,58,0.65);
  margin-bottom: 6px;
}
.dc-name-field input {
  width: 100%;
  max-width: 360px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,146,58,0.22);
  border-radius: 4px;
  color: #dde8f4;
  padding: 10px 14px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.dc-name-field input:focus { outline: none; border-color: #c8923a; }

/* Submit button — single dominant CTA, maximum impact */
.dc-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 52px;
  background: linear-gradient(135deg, #c8923a 0%, #e0a84a 50%, #c8923a 100%);
  background-size: 200% 100%;
  color: #05060f;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-position 0.4s, transform 0.18s var(--ease-spring), box-shadow 0.25s;
  box-shadow: 0 4px 24px rgba(200,146,58,0.30);
}
.dc-submit:hover {
  background-position: 100% 0;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 40px rgba(200,146,58,0.50);
}

/* Custom amount */
.dc-custom { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(200,146,58,0.1); }
.dc-custom-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200,146,58,0.55);
  margin-bottom: 10px;
}
.dc-custom-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dc-custom-row input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,146,58,0.18);
  border-radius: 4px;
  color: #dde8f4;
  padding: 9px 12px;
  font-size: 14px;
  width: 110px;
}
.dc-custom-row input:focus { outline: none; border-color: #c8923a; }
.dc-custom-btn {
  padding: 9px 18px;
  background: transparent;
  border: 1px solid rgba(200,146,58,0.35);
  border-radius: 4px;
  color: #c8923a;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.dc-custom-btn:hover { background: rgba(200,146,58,0.1); }

/* Donor wall — generous padding so donate section is deep in the scroll */
.dc-wall { padding-top: 80px; padding-bottom: 120px; }
.dc-wall h2 { font-family: Georgia, serif; font-size: 1.5rem; color: #dde8f4; margin-bottom: 16px; }
.dc-donor-list { list-style: none; padding: 0; margin: 0 0 12px; }
.dc-donor-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(200,146,58,0.08);
  color: rgba(221,232,244,0.72);
  font-size: 14px;
}
.dc-donor-list li:last-child { border-bottom: none; }
.dc-donor-star { color: #c8923a; margin-right: 6px; }
.dc-donor-tier { color: rgba(200,146,58,0.65); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.dc-wall-empty { color: rgba(221,232,244,0.35); font-style: italic; font-size: 14px; padding: 24px 0; }
.dc-wall-note { color: rgba(221,232,244,0.3); font-size: 12px; }

/* Disclaimer */
.dc-disclaimer { padding-bottom: 32px; color: rgba(221,232,244,0.25); font-size: 12px; }

/* ── Dot pulse: gentle breathing once revealed ───────────────────── */
@keyframes dc-dot-pulse {
  0%, 100% { transform: scale(1);   opacity: 1;    }
  50%       { transform: scale(1.3); opacity: 0.65; }
}
/* Blue body dots */
.g-dot.on circle[fill="#8ab4d0"] {
  animation: dc-dot-pulse 4.5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
/* Gold staff/arm dots — slightly faster */
.g-dot.on circle[fill="#c8923a"] {
  animation: dc-dot-pulse 3.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

/* ── Lantern box corners + lantern dot — gold glow pulse ─────────── */
@keyframes dc-box-glow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(255,220,80,0.35)); }
  50%       { filter: drop-shadow(0 0 7px rgba(255,210,60,0.85)) drop-shadow(0 0 14px rgba(200,146,58,0.50)); }
}
.g-dot.on circle[fill="#fff8c0"] {
  animation: dc-box-glow 2.2s ease-in-out infinite;
}

/* ── Line shimmer — subtle opacity breathe after drawn ───────────── */
@keyframes dc-line-shimmer {
  0%, 100% { opacity: 1;    }
  50%       { opacity: 0.45; }
}
.g-line.shimmer line { animation: dc-line-shimmer 7s ease-in-out infinite; }

/* ── Mountain dots — brighter fill ──────────────────────────────── */
.g-dot circle[fill="#4a6888"] { fill: #6a8aaa; }
.g-line line[stroke="#506080"] { stroke: #708098; }

/* ── Donate button pulse ─────────────────────────────────────────── */
@keyframes dc-btn-pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(200,146,58,0.30); }
  50%       { box-shadow: 0 4px 44px rgba(200,146,58,0.70), 0 0 22px rgba(200,146,58,0.28); }
}
.dc-submit { animation: dc-btn-pulse 2.8s ease-in-out infinite; }
.dc-submit:hover { animation: none; }

/* ── Tier card selected badge — stronger glow ───────────────────── */
.dc-tier-card.dc-selected {
  box-shadow:
    0 0 0 1.5px rgba(200,146,58,0.7),
    0 12px 40px rgba(200,146,58,0.28),
    0 0 80px rgba(200,146,58,0.10);
}

/* Mobile */
@media (max-width: 600px) {
  .dc-constellation-frame {
    position: fixed;
    width: 100%;
    height: 100vh;
    align-items: flex-end;
    opacity: 0.55;
  }
  .dc-constellation-svg { height: 55vh; max-width: 95vw; }
  .dc-hero { min-height: 70vh; padding-top: 80px; }
}

/* ─── Donation page polish pass ─────────────────────────────────────────── */

/* --- Donor list: flex row layout ----------------------------------------- */
.dc-donor-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(6,10,26,0.45);
  border: 1px solid rgba(200,146,58,0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}
.dc-donor-list li:last-child {
  border-bottom: 1px solid rgba(200,146,58,0.08); /* override old border-bottom removal */
  margin-bottom: 0;
}
.dc-donor-name {
  flex: 1;
  color: rgba(221,232,244,0.82);
  font-size: 14px;
}

/* Donor tier pill badges — three levels of visual weight */
.dc-tier-pill {
  flex-shrink: 0;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dc-tier-pill--stardust {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(221,232,244,0.45);
}
.dc-tier-pill--celestial {
  background: rgba(200,146,58,0.12);
  border: 1px solid rgba(200,146,58,0.30);
  color: #d4a84e;
}
.dc-tier-pill--cosmic {
  background: rgba(200,146,58,0.20);
  border: 1px solid rgba(200,146,58,0.50);
  color: #e8b860;
  box-shadow: 0 0 10px rgba(200,146,58,0.15);
}

/* --- Mission list icons: circular background container ------------------- */
.dc-mi {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: rgba(200,146,58,0.10);
  border: 1px solid rgba(200,146,58,0.18);
  font-size: 15px;
  line-height: 1;
}

/* --- Success page additions ---------------------------------------------- */
.dc-hero--success {
  min-height: 100vh;
  align-items: center;
}
.dc-success-glyph {
  font-size: 2.4rem;
  color: var(--gold);
  opacity: 0.65;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  margin: var(--gap-md) 0 var(--gap-sm);
  text-shadow: 0 0 24px rgba(200,146,58,0.35);
}
/* Receipt fineprint — was a CSP-stripped inline style="" (2026-07-01) */
.dc-receipt-note {
  font-size: 13px;
  color: rgba(221, 232, 244, 0.38);
  margin-top: 0;
}
.dc-cta-row {
  display: flex;
  gap: var(--gap-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--gap-lg);
}
/* Smaller variant of dc-submit for non-form contexts */
.dc-submit--sm {
  padding: 10px 28px;
  font-size: var(--font-size-sm);
  animation: none; /* no pulse on success page */
  text-decoration: none;
}
/* Outline button for secondary CTA */
.dc-outline-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 28px;
  border: 1px solid rgba(200,146,58,0.28);
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(221,232,244,0.68);
  font-size: var(--font-size-sm);
  font-family: var(--font-main);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
}
.dc-outline-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
