:root {
  overflow-x: hidden;
  overflow-y: auto;
  color-scheme: dark;
  background-color: var(--brand-background);
  --brand-background-image: none;
  --pro-overlay-color: rgba(255, 255, 255, 0.92);
  font-family: ui-sans-serif, "Inter", "Segoe UI", sans-serif;
  --brand-background: #000000;
  --brand-surface: #0b0b0b;
  --brand-surface-alt: #0f1116;
  --brand-border: #171717;
  --brand-border-strong: #1a1a1a;
  --brand-text-primary: #f5f7fa;
  --brand-text-secondary: #9aa29b;
  --brand-text-muted: #7f7f7f;
  --brand-accent: #03ff0a;
  --brand-accent-soft: #6dff81;
  --brand-accent-contrast: #052b1a;
  --brand-danger: #ff4f6f;
  --brand-danger-soft: #ff8f92;
  --brand-warning: #f7b955;
  --brand-warning-soft: #facc15;
}

* {
  box-sizing: border-box;
}

.icon {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--brand-background);
  background-image: var(--brand-background-image);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: var(--brand-text-primary);
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
}

body[data-template="professional"] {
  color-scheme: light;
  background-color: var(--brand-background, #f8fafc);
  background-image: var(--brand-background-image, linear-gradient(135deg, #e2e8f0, #f8fafc));
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: var(--brand-text-primary, #0f172a);
  --pro-panel-background: var(--pro-overlay-color, rgba(255, 255, 255, 0.92));
  --pro-panel-border: color-mix(in srgb, var(--brand-border, rgba(15, 23, 42, 0.35)) 80%, transparent);
  --pro-panel-shadow: 0 35px 80px color-mix(in srgb, var(--brand-border, rgba(15, 23, 42, 0.18)) 40%, transparent);
  --pro-text-primary: var(--brand-text-primary, #0f172a);
  --pro-text-secondary: var(--brand-text-secondary, #475569);
  --pro-text-muted: var(--brand-text-muted, #94a3b8);
  --pro-accent: var(--brand-accent, #2563eb);
  --pro-accent-soft: var(--brand-accent-soft, #93c5fd);
  --pro-accent-contrast: var(--brand-accent-contrast, #052b1a);
  --pro-danger: var(--brand-danger, #b91c1c);
  --pro-danger-soft: var(--brand-danger-soft, #fecdd3);
  --pro-warning: var(--brand-warning, #facc15);
  --pro-warning-soft: var(--brand-warning-soft, #fde68a);
  --pro-border-strong: color-mix(in srgb, var(--brand-border-strong, #1a1a1a) 35%, transparent);
  --pro-border-soft: color-mix(in srgb, var(--brand-border, #0f172a) 12%, transparent);
  --pro-surface: color-mix(in srgb, var(--brand-surface, #f8fafc) 85%, transparent);
  --pro-surface-alt: color-mix(in srgb, var(--brand-surface-alt, #e2e8f0) 80%, transparent);
}

body[data-template="professional"] .app {
  background: transparent;
  padding: clamp(24px, 4vw, 48px);
  max-width: 1560px;
}

body[data-template="professional"] .app.overlay-disabled {
  --pro-panel-background: transparent;
  --pro-panel-border: color-mix(in srgb, var(--brand-text-primary, #f5f7fa) 25%, transparent);
  --pro-panel-shadow: none;
  backdrop-filter: none;
}

#root {
  flex: 1;
  display: flex;
}

.app {
  --simple-shell-padding: clamp(20px, 4vw, 36px);
  width: 100%;
  max-width: 1480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: var(--simple-shell-padding);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.4vw, 22px);
  background: var(--brand-background);
}

.app.has-background-image {
  background: transparent;
  backdrop-filter: none;
}

.app.has-background-image.overlay-disabled {
  background: transparent;
  backdrop-filter: none;
}

body[data-template="professional"] .app.has-background-image {
  background: transparent;
  backdrop-filter: none;
}

.template-simple .header {
  position: relative;
  padding-top: clamp(90px, 12vw, 160px);
}

.template-simple .brand-logo-wrapper {
  position: absolute;
  top: calc(-0.6 * var(--simple-shell-padding, 24px));
  left: 50%;
  transform: translate(-50%, 0);
  width: min(780px, calc(100% - 2 * var(--simple-shell-padding, 24px)));
  padding: clamp(12px, 2vw, 18px);
  border-radius: clamp(18px, 4vw, 36px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 242, 242, 0.9));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.template-simple .brand-logo-wrapper img.brand-logo {
  display: block;
  max-width: min(640px, 60vw);
  height: auto;
}

.template-simple .header-top {
  margin-top: clamp(40px, 6vw, 60px);
}

.template-simple.app.is-livestream .status-pill {
  position: absolute;
  top: calc(0px - 0.3 * var(--simple-shell-padding, 24px));
  right: clamp(18px, 4vw, 48px);
  z-index: 3;
}

@media (max-width: 1100px) {
  body[data-template="simple"] {
    padding: clamp(10px, 4vw, 20px);
  }

  body[data-template="simple"] .app,
  .app.template-simple {
    padding: clamp(16px, 4vw, 22px);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
  }

  body[data-template="simple"] .brand-logo,
  .app.template-simple .brand-logo {
    height: clamp(56px, 24vw, 96px) !important;
    max-width: 90%;
  }
}

.template-professional.pro-app {
  gap: clamp(20px, 2vw, 32px);
}

.pro-hero {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 28px);
  background: var(--pro-panel-background);
  border-radius: 0;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--pro-panel-border);
  box-shadow: var(--pro-panel-shadow);
}

.pro-hero__brand {
  display: flex;
  gap: clamp(18px, 2vw, 28px);
  align-items: flex-start;
}

.pro-hero__logo {
  width: clamp(90px, 12vw, 140px);
  height: auto;
  object-fit: contain;
}

.pro-hero__eyebrow {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--pro-text-muted, #94a3b8);
}

.pro-hero__mint {
  margin: 8px 0 0;
  color: var(--pro-text-secondary, #475569);
  font-size: 0.9rem;
}

.pro-hero__mint a {
  color: var(--pro-accent, var(--brand-accent, #2563eb));
  text-decoration: none;
  margin-left: 6px;
}

.pro-hero__links {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pro-hero__brand h1 {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--pro-text-primary, #0f172a);
}

.pro-status-chip {
  align-self: flex-start;
  padding: 6px 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pro-text-primary, #0f172a) 80%, transparent);
  border: 1px solid var(--pro-border-strong);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--pro-surface, #f8fafc);
}

.pro-status-chip.is-live {
  background: var(--pro-accent, #22c55e);
  border-color: transparent;
  color: var(--pro-accent-contrast, #052e16);
}

.pro-status-caption {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pro-text-muted, #94a3b8);
}

.pro-hero__meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pro-hero__status-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pro-hero__next {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--pro-text-secondary, #475569);
}

.pro-hero__next strong {
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: 0.18em;
  color: var(--pro-text-primary, #0f172a);
}

.pro-control {
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 12px 18px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--pro-accent, #2563eb);
  color: var(--pro-accent-contrast, #052b1a);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pro-control[data-state="stop"] {
  background: transparent;
  color: var(--pro-text-primary, #0f172a);
  border: 1px solid color-mix(in srgb, var(--pro-text-muted, #94a3b8) 30%, transparent);
}

.pro-control:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px color-mix(in srgb, var(--pro-accent, #2563eb) 25%, transparent);
}

.pro-link {
  border-radius: 0;
  border: 1px solid var(--pro-border-strong);
  padding: 10px 18px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--pro-text-primary, #0f172a);
  background: color-mix(in srgb, var(--pro-surface-alt, rgba(148, 163, 184, 0.15)) 60%, transparent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.pro-link--accent {
  background: linear-gradient(120deg, var(--pro-accent-soft, #22d3ee), var(--pro-accent, #2563eb));
  color: var(--pro-accent-contrast, #052b1a);
  border: none;
}

.pro-link--ghost {
  background: transparent;
  border-color: var(--pro-border-soft);
}

.pro-snapshot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 2vw, 20px);
}

.pro-card {
  background: var(--pro-panel-background);
  border-radius: 0;
  padding: 20px;
  border: 1px solid var(--pro-panel-border);
  display: grid;
  gap: 12px;
  box-shadow: var(--pro-panel-shadow);
}

.pro-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pro-card__label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pro-text-muted, #94a3b8);
}

.pro-card__meta {
  font-size: 0.85rem;
  color: var(--pro-text-secondary, #475569);
}

.pro-card__content {
  display: flex;
  gap: 12px;
  align-items: center;
}

.holder-eligibility {
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
}

.holder-eligibility__stat {
  flex: 1 1 200px;
  min-width: 160px;
}

.holder-eligibility__stat--holders {
  text-align: right;
}

@media (max-width: 1100px) {
  .holder-eligibility__stat--holders {
    text-align: left;
  }
}

.pro-card__logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--pro-border-strong);
}

.pro-card__value {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pro-text-primary, #0f172a);
}

.pro-card__sub {
  margin: 4px 0;
  font-size: 0.85rem;
  color: var(--pro-text-secondary, #475569);
}

.pro-card__link {
  font-size: 0.78rem;
  color: var(--pro-accent, #2563eb);
  text-decoration: none;
}

.pro-card__link.is-disabled {
  color: var(--pro-text-muted, #94a3b8);
  cursor: default;
}

.pro-card--countdown {
  text-align: center;
}

.pro-countdown {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: 0.2em;
}

.pro-card--metrics {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.pro-main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.pro-panel {
  background: var(--pro-panel-background);
  border-radius: 0;
  border: 1px solid var(--pro-panel-border);
  box-shadow: var(--pro-panel-shadow);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pro-panel__header {
  padding: 20px 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pro-panel__header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--pro-text-primary, #0f172a);
}

.pro-panel__header p {
  margin: 4px 0 0;
  color: var(--pro-text-secondary, #475569);
  font-size: 0.9rem;
}

.pro-panel__actions {
  display: flex;
  align-items: flex-start;
}

.pro-panel__body {
  padding: 16px 24px 24px;
  min-height: 0;
}

.pro-activity-log {
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pro-activity-item {
  padding: 14px 16px;
  border-radius: 0;
  border: 1px solid var(--pro-border-soft);
  background: var(--pro-surface-alt);
}

.pro-activity-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--pro-text-secondary, #475569);
  margin-bottom: 6px;
  gap: 10px;
  flex-wrap: wrap;
}

.pro-activity-headline {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pro-text-primary, #0f172a);
}

.pro-activity-detail {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--pro-text-secondary, #475569);
}

.pro-tag {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  border: 1px solid var(--pro-border-soft);
  border-radius: 0;
  padding: 2px 10px;
  color: var(--pro-text-secondary, #475569);
}

.pro-tag--error {
  border-color: color-mix(in srgb, var(--pro-danger, #b91c1c) 50%, transparent);
  color: var(--pro-danger, #b91c1c);
  background: color-mix(in srgb, var(--pro-danger-soft, #fecdd3) 40%, transparent);
}

.pro-tag--success {
  border-color: color-mix(in srgb, var(--pro-accent, #22c55e) 50%, transparent);
  color: var(--pro-accent, #22c55e);
  background: color-mix(in srgb, var(--pro-accent-soft, #bbf7d0) 35%, transparent);
}

.pro-tag--warn,
.pro-tag--warning {
  border-color: color-mix(in srgb, var(--pro-warning, #facc15) 50%, transparent);
  color: var(--pro-warning, #facc15);
  background: color-mix(in srgb, var(--pro-warning-soft, #fde68a) 35%, transparent);
}

.pro-tag--info {
  border-color: color-mix(in srgb, var(--pro-text-muted, #94a3b8) 40%, transparent);
  color: var(--pro-text-muted, #94a3b8);
}

.pro-empty {
  margin: 0;
  color: var(--pro-text-muted, #94a3b8);
}

.pro-donation-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pro-donation-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--pro-border-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pro-donation-name {
  margin: 0;
  font-weight: 600;
}

.pro-donation-amount {
  color: var(--pro-accent, #2563eb);
  font-weight: 600;
}

.pro-donation-meta {
  font-size: 0.82rem;
  color: var(--pro-text-secondary, #475569);
  display: flex;
  gap: 12px;
}

.pro-donation-meta a {
  color: var(--pro-accent, #2563eb);
  text-decoration: none;
}

.pro-error {
  color: var(--pro-danger, #b91c1c);
}

.pro-muted {
  color: var(--pro-text-muted, #94a3b8);
}

.pro-table-wrapper {
  overflow-x: auto;
}

.pro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pro-table th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--pro-text-muted, #94a3b8);
  padding-bottom: 8px;
}

.pro-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--pro-border-soft);
}

.pro-vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 0 24px 24px;
}

.pro-vote-card {
  border: 1px solid var(--pro-border-soft);
  border-radius: 18px;
  padding: 14px 16px;
  background: var(--pro-surface);
  display: grid;
  gap: 12px;
}

.pro-vote-card.is-active {
  border-color: var(--pro-accent, #2563eb);
  box-shadow: 0 18px 36px color-mix(in srgb, var(--pro-accent, #2563eb) 35%, transparent);
}

.pro-vote-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.pro-vote-card__head p {
  margin: 0;
  font-weight: 600;
  color: var(--pro-text-primary, #0f172a);
}

.pro-vote-card__head span {
  font-size: 0.78rem;
  color: var(--pro-text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.pro-progress {
  background: color-mix(in srgb, var(--pro-text-muted, #94a3b8) 20%, transparent);
  border-radius: 0;
  height: 8px;
  overflow: hidden;
}

.pro-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(120deg, var(--pro-accent-soft, #22d3ee), var(--pro-accent, #2563eb));
}

.pro-footer {
  background: var(--pro-panel-background);
  color: var(--pro-text-primary, #e2e8f0);
  border-radius: 0;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--pro-panel-border);
  box-shadow: var(--pro-panel-shadow);
}

.pro-footer h3 {
  margin: 0 0 8px;
}

.pro-footer p {
  margin: 0 0 16px;
  color: var(--pro-text-secondary, #475569);
}

.pro-footer__links {
  display: flex;
  gap: 12px;
}

.pro-footer__art {
  max-width: 340px;
  border-radius: 0;
  width: 100%;
  border: 1px solid var(--pro-border-soft);
}

.pro-footer__placeholder {
  font-size: 0.85rem;
  color: var(--pro-text-secondary, #475569);
  border: 1px dashed color-mix(in srgb, var(--pro-text-muted, #94a3b8) 40%, transparent);
  border-radius: 0;
  padding: 18px;
}

body[data-template="terminal"] {
  background-color: var(--brand-background, #010a05);
  background-image: var(--brand-background-image, none);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: var(--brand-text-primary, #57ff9c);
  font-family: "Share Tech Mono", "IBM Plex Mono", monospace;
  align-items: stretch;
}

body[data-template="terminal"] #root {
  width: 100%;
}

body[data-template="terminal"] .app {
  max-width: none;
  width: min(1880px, calc(100vw - clamp(24px, 8vw, 160px)));
  background: color-mix(in srgb, var(--brand-background, #000000) 85%, #000000 15%);
  padding: clamp(20px, 3vw, 40px);
  margin: 0 auto;
}

.terminal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2vw, 32px);
  align-items: stretch;
  width: 100%;
}

.terminal-layout--with-aside {
  grid-template-columns: minmax(200px, 0.4fr) minmax(0, 1.6fr);
}

.terminal-aside {
  border: 1px solid color-mix(in srgb, var(--brand-accent, #57ff9c) 25%, transparent);
  padding: 6px;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.terminal-aside img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.terminal-app a {
  color: var(--brand-accent, #57ff9c);
}

.terminal-window {
  position: relative;
  background: radial-gradient(
      circle at top left,
      color-mix(in srgb, var(--brand-accent, #57ff9c) 10%, transparent),
      transparent 55%
    ),
    color-mix(in srgb, var(--brand-background, #010a05) 85%, #020403 15%);
  border: 1px solid color-mix(in srgb, var(--brand-accent, #57ff9c) 40%, transparent);
  box-shadow: 0 0 60px color-mix(in srgb, var(--brand-accent, #57ff9c) 24%, transparent);
  width: 100%;
  min-height: calc(100vh - clamp(120px, 12vh, 200px));
  overflow: hidden;
}

.terminal-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--brand-accent, #57ff9c) 25%, transparent),
    transparent 45%,
    transparent 55%,
    color-mix(in srgb, var(--brand-accent, #57ff9c) 12%, transparent)
  );
  opacity: 0.06;
  pointer-events: none;
}

.terminal-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.6));
  mix-blend-mode: screen;
  opacity: 0.3;
  pointer-events: none;
}

.terminal-bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-accent, #57ff9c) 30%, transparent);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--brand-accent, #57ff9c) 20%, transparent),
    transparent
  );
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.terminal-bar__status {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.75rem;
}

.terminal-chip {
  padding: 2px 10px;
  border: 1px solid color-mix(in srgb, var(--brand-accent, #57ff9c) 40%, transparent);
  text-transform: uppercase;
  font-size: 0.72rem;
}

.terminal-chip.is-live {
  background: color-mix(in srgb, var(--brand-accent, #57ff9c) 35%, transparent);
}

.terminal-body {
  position: relative;
  padding: clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.6vw, 36px);
}

.terminal-columns {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 32px);
}

.terminal-column {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.5vw, 24px);
}

@media (min-width: 1100px) {
  .terminal-columns {
    flex-direction: row;
    align-items: flex-start;
  }

  .terminal-column--primary {
    flex: 1.1 1 0;
  }

  .terminal-column--secondary {
    flex: 0.9 1 0;
  }
}

.terminal-header {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--brand-accent, #57ff9c) 20%, transparent);
  padding: 12px 14px;
}

.terminal-header-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.terminal-badge {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand-accent, #57ff9c) 35%, transparent);
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--brand-accent, #57ff9c);
  background: rgba(5, 15, 10, 0.6);
  animation: terminalPulse 4s ease-in-out infinite;
}

.terminal-badge.is-accent {
  border-color: color-mix(in srgb, var(--brand-warning, #f7b955) 55%, transparent);
  color: var(--brand-warning, #f7b955);
}

.terminal-logo {
  max-height: 72px;
  width: auto;
  object-fit: contain;
}

.terminal-app-name {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.terminal-app-mint {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--brand-textSecondary, #94ffce);
}

.terminal-type-line {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--brand-textSecondary, #94ffce);
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid var(--brand-accent, #57ff9c);
  padding-right: 6px;
  animation: terminalType 6s steps(45) infinite;
}

.terminal-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  border: 1px solid color-mix(in srgb, var(--brand-accent, #57ff9c) 35%, transparent);
  padding: 16px;
  background: color-mix(in srgb, var(--brand-background, #010a05) 70%, #000000 30%);
}

.terminal-highlight-label {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  color: var(--brand-textSecondary, #94ffce);
}

.terminal-highlight-value {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.18em;
  color: var(--brand-textPrimary, #57ff9c);
  text-shadow: 0 0 25px color-mix(in srgb, var(--brand-accent, #57ff9c) 30%, transparent);
}

.terminal-section {
  border: 1px solid color-mix(in srgb, var(--brand-accent, #57ff9c) 20%, transparent);
  padding: 16px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.terminal-section h2 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--brand-accent, #57ff9c);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.terminal-label {
  color: var(--brand-accent, #57ff9c);
  margin-right: 12px;
}

.terminal-list,
.terminal-log {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
}

.terminal-log li,
.terminal-list li {
  padding: 4px 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--brand-textMuted, #94ffce) 30%, transparent);
  animation: terminalLineGlow 6s ease-in-out infinite;
}

.terminal-time {
  color: var(--brand-textSecondary, #22ef9f);
  margin-right: 10px;
}

.terminal-level {
  color: var(--brand-accentSoft, #94ffce);
  margin-right: 8px;
}

.terminal-footer-art {
  margin-top: 12px;
  border: 1px solid color-mix(in srgb, var(--brand-accent, #57ff9c) 20%, transparent);
  padding: 6px;
}

.terminal-footer-art img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 960px) {
  .pro-hero__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

.header {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}

.header-top {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 20px);
}

.primary-nav-wrap {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 20px);
  flex-wrap: nowrap;
  margin-left: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-link,
.nav-cta {
  font-size: 0.85rem;
}

.nav-link {
  color: var(--brand-text-primary);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--brand-accent);
}

.nav-link-social {
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-link svg {
  width: 20px;
  height: 20px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-left: clamp(12px, 2vw, 20px);
  padding: 10px 24px;
  background: var(--brand-accent-contrast);
  color: var(--brand-text-primary);
  border: 1px solid color-mix(in srgb, var(--brand-accent) 30%, transparent);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--brand-accent) 22%, transparent);
  border-color: color-mix(in srgb, var(--brand-accent) 45%, transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 20px);
  flex: 0 0 auto;
}

.logo {
  height: clamp(60px, 10vw, 90px);
  width: auto;
  object-fit: contain;
  align-self: center;
}

.brand-logo {
  height: var(--brand-logo-height, clamp(44px, 8vw, 90px));
  width: auto;
  object-fit: contain;
}

.app.is-livestream .brand-logo {
  height: var(--brand-logo-height, clamp(28px, 5vw, 80px));
}

.app.is-livestream .header-top,
.app.is-livestream .header {
  align-items: center;
  gap: 16px;
}

.app.is-livestream .status-pill {
  align-self: center;
}

.vote-sections.is-livestream {
  gap: clamp(10px, 2vw, 16px);
}

.charity-card {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.45);
  min-width: clamp(220px, 22vw, 320px);
  min-height: clamp(120px, 18vw, 160px);
  align-self: stretch;
}

.charity-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-text-muted);
}

.charity-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.charity-name {
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 600;
  color: var(--brand-text-primary);
}

.charity-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.charity-mark {
  width: clamp(68px, 8vw, 96px);
  height: clamp(68px, 8vw, 96px);
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid var(--brand-border-strong);
  background: var(--brand-surface-alt);
}

.charity-address {
  font-family: "IBM Plex Mono", "Share Tech Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--brand-text-secondary);
}

.metric-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: clamp(12px, 2vw, 18px);
  justify-items: stretch;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.metric-card {
  min-width: 0;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border-strong);
  border-radius: 22px;
  padding: clamp(14px, 2.4vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  height: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

.metric-label {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-text-muted);
}

.metric-value {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-text-primary);
}

.metric-value.metric-small {
  font-size: clamp(20px, 3.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.metric-value.status-live {
  color: var(--brand-accent);
}

.metric-value.status-paused {
  color: var(--brand-danger);
}

.metric-caption {
  font-size: 14px;
  color: var(--brand-text-secondary);
}

.header-grid {
  display: grid;
  width: 100%;
  /* --header-grid-template: minmax(340px, 2fr) repeat(2, minmax(220px, 1fr)); */
  grid-template-columns: var(--header-grid-template);
  gap: clamp(12px, 1.6vw, 18px);
  align-items: stretch;
}

.header-grid--count-1 {
  --header-grid-template: minmax(0, 1fr);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.header-grid--count-2 {
  --header-grid-template: repeat(2, minmax(260px, 1fr));
}

.header-grid--count-3 {
  /* --header-grid-template: minmax(340px, 2fr) repeat(2, minmax(220px, 1fr)); */
}

.header-card {
  min-height: clamp(110px, 14vw, 160px);
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: clamp(12px, 1.6vw, 20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.4);
}

.header-card-support {
  flex-direction: column;
  gap: clamp(12px, 1.8vw, 18px);
}

.header-card-support--expanded {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 20px);
  align-items: center;
}

.support-primary {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 20px);
}

.header-card-charity-mark {
  height: clamp(48px, 7vw, 84px);
  width: clamp(48px, 7vw, 84px);
  border-radius: 14px;
  border: 1px solid var(--brand-border-strong);
  object-fit: contain;
  background: var(--brand-surface-alt);
}

.header-card-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.header-card-label,
.support-meta-label {
  font-size: clamp(0.9rem, 1.4vw, 1.125rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-text-muted);
}

.header-card-name {
  font-size: clamp(1.1rem, 2.6vw, 1.65rem);
  font-weight: 600;
  color: var(--brand-text-primary);
}

.header-card-address {
  font-family: "IBM Plex Mono", "Share Tech Mono", monospace;
  font-size: clamp(0.72rem, 1.5vw, 0.85rem);
  letter-spacing: 0.06em;
  color: var(--brand-text-secondary);
  overflow-wrap: anywhere;
}

.support-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.support-meta-value {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--brand-accent-soft);
}

.support-meta-link {
  font-family: "IBM Plex Mono", "Share Tech Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--brand-accent-soft);
  text-decoration: none;
}

.support-meta-link:hover {
  text-decoration: underline;
}

.support-meta-muted {
  font-size: 0.75rem;
  color: var(--brand-text-secondary);
  opacity: 0.7;
}

.header-card-compact {
  padding: clamp(10px, 1.2vw, 14px) clamp(12px, 1.4vw, 16px);
  gap: 10px;
}

.header-card-wide {
  grid-column: span 2;
}

.metric-inline {
  display: grid;
  gap: 8px;
}

.metric-inline-label {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-text-muted);
}

.metric-inline-value {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--brand-accent-soft);
}

.metric-inline-caption {
  font-size: 0.78rem;
  color: var(--brand-text-secondary);
}

.metric-stack {
  display: grid;
  gap: 12px;
}

.metric-stack-item {
  display: grid;
  gap: 6px;
}

.metric-stack-label {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-text-muted);
}

.metric-stack-value {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 600;
  color: var(--brand-text-primary);
}

.metric-stack-caption {
  font-size: 0.75rem;
  color: var(--brand-accent-soft);
}

.status-pill {
  align-self: flex-end;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  padding: 10px 14px;
  background: var(--brand-accent-contrast);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  color: var(--brand-text-primary);
}

.status-pill-label {
  font-size: 0.65rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brand-text-primary);
}

.status-pill-value {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand-text-primary);;
}

.status-pill.is-paused .status-pill-value {
  color: var(--brand-danger-soft);
}

.status-pill-caption {
  font-size: 0.7rem;
  color: var(--brand-text-secondary);
  opacity: 0.8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vote-sections {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vw, 16px);
}

.how-it-works {
  display: flex;
}

.how-it-works-card {
  flex: 1 1 auto;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: clamp(14px, 1.8vw, 20px);
  display: grid;
  gap: 10px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  color: var(--brand-text-secondary);
}

.how-it-works-card h2 {
  margin: 0;
  color: var(--brand-text-primary);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.charity-vote-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  align-items: stretch;
}

.charity-vote-card {
  background: var(--brand-surface-alt);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: clamp(16px, 1.8vw, 20px);
  display: flex;
  align-items: stretch;
  min-height: clamp(150px, 22vw, 200px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.charity-vote-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(120px, 22vw, 180px);
  align-items: center;
  gap: clamp(12px, 1.8vw, 20px);
  width: 100%;
}

.charity-vote-card.countdown {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.charity-vote-card:hover {
  transform: translateY(-1px);
  border-color: var(--brand-accent);
  box-shadow: 0 14px 24px color-mix(in srgb, var(--brand-accent) 30%, transparent);
}

.charity-vote-card.is-active {
  border-color: var(--brand-accent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand-accent) 40%, transparent),
    0 18px 28px color-mix(in srgb, var(--brand-accent) 18%, transparent);
}

 .charity-vote-details {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   gap: clamp(10px, 1.4vw, 14px);
   text-align: left;
 }

.charity-vote-count {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  color: var(--brand-text-primary);
  font-family: "IBM Plex Mono", "Share Tech Mono", monospace;
}

.charity-vote-logo {
  width: 100%;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--brand-border-strong);
  background: var(--brand-surface);
}

.charity-vote-name {
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: var(--brand-text-primary);
  line-height: 1.3;
}

.charity-vote-command {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--brand-accent-soft);
  white-space: nowrap;
}

.charity-countdown-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-text-muted);
}

.charity-countdown-value {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 650;
  color: var(--brand-text-primary);
  font-family: "IBM Plex Mono", "Share Tech Mono", monospace;
}

.charity-countdown-caption {
  font-size: 0.82rem;
  color: var(--brand-accent-soft);
  letter-spacing: 0.1em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 18px);
  justify-content: flex-start;
}

.actions .toggle {
  flex: 0 0 auto;
  border: none;
  border-radius: 14px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--brand-border-strong);
  background: var(--brand-accent);
  color: var(--brand-accent-contrast);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: 0 14px 26px color-mix(in srgb, var(--brand-accent) 25%, transparent);
}

.actions .toggle:hover {
  transform: translateY(-2px);
}

.actions .toggle:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--brand-accent) 25%, transparent);
}

.actions .toggle[data-state="stop"] {
  background: transparent;
  color: var(--brand-text-primary);
  border-color: var(--brand-border-strong);
  box-shadow: none;
}

.actions .toggle[data-state="stop"]:hover {
  box-shadow: 0 12px 20px color-mix(in srgb, var(--brand-accent) 18%, transparent);
}

.log-region {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 18px);
  margin-top: clamp(8px, 1.2vw, 14px);
}

.donations-section,
.donations-page {
  margin-top: clamp(24px, 4vw, 36px);
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: clamp(18px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 20px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: clamp(10px, 1.4vw, 18px);
  align-items: flex-start;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  font-weight: 600;
  color: var(--brand-text-primary);
}

.section-heading p {
  margin: 0;
  color: var(--brand-text-secondary);
  opacity: 0.85;
  max-width: 640px;
  line-height: 1.5;
}

.about-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: 1px solid var(--brand-accent-soft);
  color: var(--brand-accent-soft);
  background: transparent;
}

.about-link.about-link-accent {
  border-color: var(--brand-accent-soft);
  color: var(--brand-accent-soft);
}

.about-link:hover,
.about-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--brand-accent-soft) 18%, transparent);
  background: color-mix(in srgb, var(--brand-accent-soft) 12%, transparent);
}

.icon-inline {
  width: 18px;
  height: 18px;
}

.link-button {
  border: 1px solid var(--brand-border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--brand-text-primary);
  padding: 8px 18px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.link-button:hover,
.link-button:focus-visible {
  color: var(--brand-accent);
  border-color: var(--brand-accent);
  transform: translateY(-1px);
}

.link-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  border-color: var(--brand-border-strong);
}

.section-message {
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--brand-surface-alt);
  border: 1px solid var(--brand-border);
  color: var(--brand-text-secondary);
  font-size: 0.85rem;
}

.section-message--error {
  background: color-mix(in srgb, var(--brand-danger) 12%, transparent);
  border-color: color-mix(in srgb, var(--brand-danger) 32%, transparent);
  color: var(--brand-danger-soft);
}

.donation-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vw, 16px);
}

.donation-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  background: var(--brand-surface-alt);
  padding: clamp(12px, 1.6vw, 18px);
}

.donation-primary {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.donation-charity {
  font-weight: 600;
  color: var(--brand-text-primary);
  font-size: 1rem;
}

.donation-amount {
  font-family: "IBM Plex Mono", "Share Tech Mono", monospace;
  font-weight: 600;
  color: var(--brand-accent);
}

.donation-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--brand-text-secondary);
}

.donation-time {
  color: var(--brand-text-muted);
}

.donation-link {
  color: var(--brand-accent);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.donation-link:hover,
.donation-link:focus-visible {
  text-decoration: underline;
}

.donation-link.disabled {
  color: var(--brand-text-muted);
  pointer-events: none;
  text-decoration: none;
}

.donations-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.donations-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
}

.donations-table th,
.donations-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--brand-border);
  font-size: 0.84rem;
  color: var(--brand-text-secondary);
}

.donations-table th {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--brand-text-muted);
}

.donations-table tbody tr:hover {
  background: color-mix(in srgb, var(--brand-surface-alt) 90%, transparent);
}

.donations-table a {
  color: var(--brand-accent);
  text-decoration: none;
}

.donations-table a:hover,
.donations-table a:focus-visible {
  text-decoration: underline;
}

.global-footer {
  margin-top: clamp(32px, 5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 32px);
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: clamp(18px, 2.8vw, 32px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

.global-footer-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
}

.global-footer-content h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: var(--brand-text-primary);
}

.global-footer-content p {
  margin: 0;
  color: var(--brand-text-secondary);
  opacity: 0.85;
  line-height: 1.6;
}

.global-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.global-footer-links .nav-link-social {
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.global-footer-links .nav-cta {
  font-size: 0.72rem;
  padding: 10px 20px;
}

.global-footer-art {
  flex: 0 0 clamp(420px, 45%, 560px);
  max-width: clamp(420px, 45%, 560px);
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--brand-border);
  background: var(--brand-surface-alt);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  padding: clamp(8px, 1vw, 12px);
}

.global-footer-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.nokids-proof {
  margin-top: clamp(24px, 4vw, 42px);
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 22px;
  padding: clamp(18px, 2.6vw, 30px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.nokids-proof-card {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
}

.nokids-proof-text {
  flex: 1 1 55%;
}

.nokids-proof-eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--brand-text-muted);
}

.nokids-proof-text h3 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  color: var(--brand-text-primary);
}

.nokids-proof-text p {
  margin: 0 0 10px;
  color: var(--brand-text-secondary);
  line-height: 1.6;
}

.nokids-proof-media {
  flex: 0 0 min(320px, 38%);
  max-width: min(320px, 38%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
  min-width: 220px;
}

.nokids-proof-media img {
  width: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .nokids-proof-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .nokids-proof-media {
    width: 100%;
  }
}

.log-panel {
  flex: 1 1 320px;
  min-width: min(320px, 100%);
  min-height: 0;
  height: clamp(260px, 42vh, 420px);
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 26px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  overflow: visible;
}

.log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 2.4vw, 22px);
  border-bottom: 1px solid var(--brand-border);
  color: var(--brand-text-primary);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
}

.log-subtitle {
  font-size: 14px;
  color: var(--brand-text-muted);
}

.log-stream {
  min-height: 0;
  height: 100%;
  overflow-y: scroll;
  padding: clamp(14px, 2.2vw, 20px);
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(10px, 1.4vw, 14px);
  scrollbar-gutter: stable both-edges;
  scrollbar-width: auto;
  scrollbar-color: var(--brand-accent-soft) var(--brand-surface-alt);
}

.log-stream::-webkit-scrollbar {
  width: 12px;
}

.log-stream::-webkit-scrollbar-track {
  background: var(--brand-surface-alt);
  border-left: 1px solid var(--brand-border-strong);
}

.log-stream::-webkit-scrollbar-thumb {
  background: var(--brand-accent-soft);
  border-radius: 8px;
  border: 2px solid var(--brand-surface-alt);
}

.log-stream::-webkit-scrollbar-thumb:hover {
  background: var(--brand-accent);
}

.log-entry {
  background: var(--brand-surface-alt);
  border-radius: 16px;
  border: 1px solid var(--brand-border);
  padding: clamp(12px, 1.6vw, 16px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
  margin-top: 16px;
}

.log-entry.info {
  border-left: 4px solid var(--brand-accent);
}

.log-entry.success {
  border-left: 4px solid var(--brand-accent);
}

.log-entry.warn {
  border-left: 4px solid var(--brand-warning);
}

.log-entry.error {
  border-left: 4px solid var(--brand-danger);
}

.log-headline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  font-family: "IBM Plex Mono", "Share Tech Mono", monospace;
}

.timestamp {
  color: var(--brand-accent-soft);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.level-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-text-secondary);
}

.message {
  font-size: clamp(15px, 2.4vw, 18px);
  line-height: 1.6;
  color: var(--brand-text-primary);
  font-family: "Inter", "Segoe UI", sans-serif;
}

.vote-log-entry {
  background: var(--brand-surface-alt);
  border-radius: 14px;
  border: 1px solid var(--brand-border);
  padding: clamp(10px, 2vw, 16px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.4);
}

.vote-log-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--brand-text-secondary);
}

.vote-log-name {
  font-weight: 600;
  color: var(--brand-text-primary);
}

.vote-log-timestamp {
  font-size: 0.72rem;
  color: var(--brand-text-muted);
  font-family: "IBM Plex Mono", "Share Tech Mono", monospace;
}

.vote-log-body {
  font-size: 0.9rem;
  color: var(--brand-text-secondary);
}

.vote-log-wallet {
  font-family: "IBM Plex Mono", "Share Tech Mono", monospace;
  font-size: 0.72rem;
  color: var(--brand-accent-soft);
  letter-spacing: 0.1em;
}

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

.meta span {
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-text-secondary);
  background: color-mix(in srgb, var(--brand-surface-alt) 90%, transparent);
  font-family: "IBM Plex Mono", "Share Tech Mono", monospace;
}


/* @media (max-width: 720px) {
  .donations-table {
    min-width: 0;
  }

  .donations-table thead {
    display: none;
  }

  .donations-table tbody tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 0;
  }

  .donations-table tbody tr:not(:last-of-type) {
    border-bottom: 1px solid var(--brand-border);
  }

  .donations-table td {
    border: none;
    padding: 6px 0;
  }

  .donations-table td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-text-muted);
    margin-right: 6px;
  }

  .primary-nav-wrap {
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-start;
  }

  .primary-nav {
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
  }

  .nav-link,
  .nav-cta {
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .nav-cta {
    width: auto;
    justify-content: center;
    padding: 8px 16px;
  }

  .global-footer-content {
    max-width: 100%;
  }
}

@media (max-width: 1100px) {
  .header-grid {
    --header-grid-template: 1fr;
    gap: 12px;
  }

  .header-card {
    width: 100%;
  }

  .header-card-support--expanded {
    display: grid;
    grid-template-columns: 1fr;
  }

  .support-primary {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .support-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .how-it-works {
    flex-direction: column;
  }

  .global-footer-art {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 6px;
  }

  .about-link {
    width: auto;
    justify-content: center;
  }

  .section-heading p {
    max-width: 100%;
  }

  .primary-nav {
    width: auto;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
    flex-wrap: nowrap;
  }

  .primary-nav-wrap {
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    width: 100%;
  }

  .nav-cta {
    flex: 0 0 auto;
  }
} */





body::-webkit-scrollbar { width: 0; height: 0; }

.admin-page {
  margin: 0;
  min-height: 100vh;
  background: var(--brand-background);
  color: var(--brand-text-primary);
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: clamp(24px, 5vw, 40px);
  font-family: "Inter", "Segoe UI", sans-serif;
}

.admin-login-wrapper,
.admin-loading {
  width: min(420px, 100%);
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.admin-loading {
  font-size: 1rem;
  color: var(--brand-text-secondary);
  opacity: 0.8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-shell {
  width: min(1320px, 100%);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 24px);
}

.admin-shell__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: clamp(14px, 2vw, 20px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.admin-shell__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.admin-shell__brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(96px, 10vw, 120px);
  height: clamp(36px, 6vw, 44px);
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 45%, transparent);
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--brand-accent) 55%, transparent), var(--brand-accent-contrast));
  color: var(--brand-text-primary);
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
}

.admin-shell__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-shell__account {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-shell__actions .secondary {
  border: 1px solid var(--brand-border-strong);
  background: transparent;
  color: var(--brand-text-primary);
  border-radius: 12px;
  padding: 10px 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
}

.admin-shell__actions .secondary:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.admin-shell main {
  flex: 1 1 auto;
  display: flex;
}

.admin-shell__nav {
  display: inline-flex;
  gap: 12px;
  background: color-mix(in srgb, var(--brand-surface) 95%, transparent);
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  align-self: flex-start;
  flex-wrap: wrap;
}

.admin-shell__nav-link {
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  background: transparent;
  color: var(--brand-text-secondary);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.admin-shell__nav-link:hover {
  color: var(--brand-accent);
}

.admin-shell__nav-link.is-active {
  background: color-mix(in srgb, var(--brand-accent) 18%, transparent);
  color: var(--brand-accent);
  box-shadow: 0 10px 18px color-mix(in srgb, var(--brand-accent) 18%, transparent);
  transform: translateY(-1px);
}

.admin-dashboard-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--brand-border);
  background: color-mix(in srgb, var(--brand-surface) 85%, transparent);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.admin-dashboard-tab {
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  background: transparent;
  color: var(--brand-text-secondary);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.admin-dashboard-tab.is-active {
  background: color-mix(in srgb, var(--brand-accent) 18%, transparent);
  color: var(--brand-accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px color-mix(in srgb, var(--brand-accent) 18%, transparent);
}

.admin-dashboard-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 24px);
  width: 100%;
}

.admin-page label {
  color: var(--brand-text-secondary);
}

.admin-page label span {
  color: var(--brand-text-muted);
}

.admin-page input[type="text"],
.admin-page input[type="url"],
.admin-page input[type="number"],
.admin-page input[type="password"],
.admin-page textarea {
  border-radius: 12px;
  border: 1px solid var(--brand-border-strong);
  background: var(--brand-surface-alt);
  color: var(--brand-text-primary);
  padding: 10px 12px;
}

.admin-main-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 24px);
  width: 100%;
}

.admin-main-stack--charities {
  flex: 1 1 auto;
}

.global-settings-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: clamp(18px, 2.4vw, 24px);
  display: grid;
  gap: 14px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.global-settings-card header h2 {
  margin: 0 0 6px;
  font-size: clamp(1.04rem, 2vw, 1.25rem);
  font-weight: 600;
}

.global-settings-card header p {
  margin: 0;
  color: var(--brand-text-secondary);
  opacity: 0.8;
  font-size: 0.9rem;
}

.global-settings-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--brand-text-secondary);
}

.global-settings-card label span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--brand-text-muted);
}

.global-settings-card input {
  border-radius: 12px;
  border: 1px solid var(--brand-border-strong);
  background: var(--brand-surface-alt);
  color: var(--brand-text-primary);
  padding: 10px 12px;
  font-size: 0.92rem;
}

.global-settings-card input[type="checkbox"] {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 6px;
}

.feature-flags-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-flags-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--brand-border);
  background: var(--brand-surface-alt);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.feature-flags-toggle:hover {
  border-color: var(--brand-border-strong);
  background: rgba(255, 255, 255, 0.03);
}

.feature-flags-toggle input[type="checkbox"] {
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--brand-accent);
}

.feature-flags-toggle__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-flags-toggle__content strong {
  font-size: 0.95rem;
  color: var(--brand-text-primary);
}

.feature-flags-toggle__content p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--brand-text-secondary);
}

.feature-flags-message {
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.82rem;
  border: 1px solid var(--brand-border);
  background: var(--brand-surface-alt);
}

.feature-flags-message--error {
  border-color: var(--brand-danger);
  color: var(--brand-danger);
}

.feature-flags-message--success {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.challenge-manager-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.challenge-manager-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.challenge-manager-item__prompt {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.challenge-manager-item__status {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-text-secondary);
}

.challenge-manager-item__window {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--brand-text-muted);
}

.challenge-manager-item__answers {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.challenge-manager-item__answers li {
  padding: 0.25rem 0.4rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.challenge-manager-item__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.donation-settings-burn {
  font-size: 0.8rem;
  color: var(--brand-text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: -4px;
  margin-bottom: 8px;
}

.donation-settings-burn strong {
  color: var(--brand-accent);
}

.donation-settings-retained-note {
  font-size: 0.72rem;
  color: var(--brand-text-muted);
}

.donation-settings-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--brand-text-muted);
}

.donation-settings-mode {
  border: 1px solid color-mix(in srgb, var(--brand-border) 65%, transparent);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 18px 0;
}

.donation-settings-mode legend {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--brand-text-primary);
}

.donation-settings-radio {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--brand-text-secondary);
  margin-bottom: 6px;
}

.donation-settings-radio:last-of-type {
  margin-bottom: 0;
}

.donation-settings-radio input {
  width: auto;
}

.donation-settings-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 8px;
}

.donation-settings-metric {
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--brand-surface) 80%, transparent);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.donation-settings-metric span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-text-muted);
}

.donation-settings-metric strong {
  font-size: 0.92rem;
  color: var(--brand-text-primary);
}

.donation-settings-feedback {
  margin-top: 8px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.85rem;
}

.donation-settings-feedback--error {
  background: color-mix(in srgb, var(--brand-danger) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-danger) 35%, transparent);
  color: var(--brand-danger-soft);
}

.donation-settings-feedback--success {
  background: color-mix(in srgb, var(--brand-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-accent) 35%, transparent);
  color: var(--brand-accent);
}

.donation-settings-reset {
  border: 1px solid color-mix(in srgb, var(--brand-danger) 45%, transparent);
  background: transparent;
  color: var(--brand-danger-soft);
  border-radius: 12px;
  padding: 10px 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.donation-settings-reset:hover:not([disabled]) {
  border-color: color-mix(in srgb, var(--brand-danger) 70%, transparent);
  color: var(--brand-danger);
}

.donation-settings-reset[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.account-security-card {
  position: relative;
}

.account-security-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  font-size: 0.85rem;
  color: var(--brand-text-secondary);
}

.account-security-meta strong {
  color: var(--brand-text-primary);
  font-weight: 600;
}

.account-security-loading {
  font-size: 0.78rem;
  color: var(--brand-text-muted);
}

.account-security-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--brand-text-muted);
  line-height: 1.4;
}

.account-security-feedback {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.85rem;
  margin: 4px 0 0;
}

.account-security-feedback--error {
  background: color-mix(in srgb, var(--brand-danger) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-danger) 40%, transparent);
  color: var(--brand-danger-soft);
}

.account-security-feedback--success {
  background: color-mix(in srgb, var(--brand-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-accent) 40%, transparent);
  color: var(--brand-accent);
}

.account-security-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.global-settings-section {
  display: grid;
  gap: 12px;
}

.global-settings-section h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-text-primary);
}

.global-settings-description {
  margin: 0;
  font-size: 0.85rem;
  color: var(--brand-text-secondary);
}

.global-settings-divider {
  height: 1px;
  background: var(--brand-border);
  border-radius: 1px;
}

.global-settings-note {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--brand-text-secondary);
  word-break: break-all;
}

.global-settings-note code {
  font-family: "Menlo", "Courier New", monospace;
  color: var(--brand-accent-soft);
}

.global-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.global-settings-actions button {
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--brand-accent);
  color: var(--brand-accent-contrast);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.global-settings-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.global-settings-actions button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px color-mix(in srgb, var(--brand-accent) 28%, transparent);
}

.global-settings-error {
  background: color-mix(in srgb, var(--brand-danger) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-danger) 30%, transparent);
  color: var(--brand-danger-soft);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
}

.branding-settings-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: clamp(18px, 2.6vw, 28px);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 24px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

.branding-settings-card header h2 {
  margin: 0 0 6px;
  font-size: clamp(1.04rem, 2vw, 1.3rem);
  font-weight: 600;
}

.branding-settings-card header p {
  margin: 0;
  color: var(--brand-text-secondary);
  opacity: 0.8;
  font-size: 0.94rem;
}

.branding-settings-section {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 18px);
}

.branding-settings-section__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.branding-settings-section__header h3 {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 600;
  color: var(--brand-text-primary);
}

.branding-settings-section__header p {
  margin: 0;
  color: var(--brand-text-secondary);
  opacity: 0.85;
  font-size: 0.88rem;
}

.branding-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}

.branding-template-card {
  position: relative;
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: 0;
  cursor: pointer;
  background: var(--brand-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.branding-template-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.branding-template-card__body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.branding-template-card__preview {
  border-radius: 12px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-text-primary);
  border: 1px solid var(--brand-border-strong);
}

.branding-template-card__preview--simple {
  background: linear-gradient(135deg, #040404, #121822);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.branding-template-card__preview--professional {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  color: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.branding-template-card__preview--terminal {
  background: linear-gradient(135deg, #021005, #062c16);
  color: #57ff9c;
  box-shadow: inset 0 0 0 1px rgba(87, 255, 156, 0.2);
}

.branding-template-card__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.branding-template-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-text-primary);
}

.branding-template-card__tagline {
  font-size: 0.85rem;
  color: var(--brand-text-secondary);
}

.branding-template-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.branding-template-card__badge {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--brand-text-muted);
}

.branding-template-card.is-selected {
  border-color: var(--brand-accent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand-accent) 40%, transparent),
    0 18px 32px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

.branding-template-card.is-selected .branding-template-card__badge {
  border-color: var(--brand-accent);
  color: var(--brand-accent-soft);
}

.branding-settings-hint {
  margin: 0;
  color: var(--brand-text-muted);
  font-size: 0.82rem;
}

.branding-settings-media {
  display: grid;
  gap: clamp(12px, 1.8vw, 18px);
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  align-items: start;
}

.branding-settings-media__preview {
  background: var(--brand-surface-alt);
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.branding-settings-media__preview img {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 12px;
}

.branding-settings-media__placeholder {
  font-size: 0.9rem;
  color: var(--brand-text-muted);
  text-align: center;
  opacity: 0.8;
}

.branding-settings-media__controls {
  display: grid;
  gap: 12px;
}

.branding-settings-media__controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--brand-text-secondary);
}

.branding-settings-media__controls span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--brand-text-muted);
}

.branding-settings-media__controls input[type="file"] {
  border: 1px dashed var(--brand-border-strong);
  border-radius: 10px;
  padding: 10px;
  background: var(--brand-surface-alt);
  color: var(--brand-text-secondary);
  cursor: pointer;
}

.branding-settings-media__controls input[type="url"],
.branding-settings-media__controls input[type="text"] {
  border-radius: 12px;
  border: 1px solid var(--brand-border-strong);
  background: var(--brand-surface-alt);
  color: var(--brand-text-primary);
  padding: 10px 12px;
  font-size: 0.92rem;
}

.branding-settings-media__filename {
  font-size: 0.75rem;
  color: var(--brand-text-muted);
  letter-spacing: 0.08em;
}

.branding-settings-media__actions {
  display: flex;
  gap: 10px;
}

.branding-settings-media__actions .secondary {
  border: 1px solid var(--brand-border-strong);
  background: transparent;
  color: var(--brand-text-secondary);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.branding-settings-media__actions .secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.branding-settings-media__actions .secondary:not(:disabled):hover {
  color: var(--brand-accent);
  border-color: var(--brand-accent);
}

.branding-settings-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--brand-text-secondary);
  margin: 4px 0;
}

.branding-settings-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-accent);
}

.branding-overlay-color {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.branding-overlay-color label {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.branding-overlay-color input[type="color"] {
  width: 64px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.branding-overlay-alpha__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.branding-overlay-alpha input[type="range"] {
  flex: 1 1 auto;
  accent-color: var(--brand-accent);
}

.branding-overlay-alpha output {
  min-width: 3ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--brand-text-secondary);
}

.branding-custom-css {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.branding-custom-css span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-weight: 600;
  color: var(--brand-text-secondary);
}

.branding-custom-css small {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--brand-text-muted);
}

.branding-custom-css textarea {
  width: 100%;
  min-height: 200px;
  border-radius: 12px;
  border: 1px solid var(--brand-border);
  background: rgba(15, 17, 24, 0.35);
  color: var(--brand-text-primary);
  font-family: "JetBrains Mono", Consolas, "SFMono-Regular", monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 12px;
  resize: vertical;
}

.branding-custom-css textarea::placeholder {
  color: var(--brand-text-muted);
}

.branding-settings-media--background .branding-settings-media__preview {
  min-height: 220px;
}

.branding-settings-background-card {
  width: 100%;
  height: 220px;
  border-radius: 18px;
  border: 1px solid var(--brand-border);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.branding-settings-colors {
  display: grid;
  gap: clamp(12px, 1.6vw, 18px);
}

.branding-settings-colors__group {
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  padding: clamp(12px, 1.6vw, 18px);
  background: var(--brand-surface-alt);
}

.branding-settings-colors__group legend {
  padding: 0 6px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-text-muted);
}

.branding-settings-colors__group legend small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--brand-text-secondary);
  opacity: 0.75;
  text-transform: none;
  margin-top: 4px;
}

.branding-settings-colors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.branding-settings-colors__grid label {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--brand-text-secondary);
}

.branding-settings-colors__grid label span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  color: var(--brand-text-muted);
}

.branding-settings-colors__grid input[type="color"] {
  width: 100%;
  height: 42px;
  border: 1px solid var(--brand-border-strong);
  border-radius: 10px;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.branding-settings-color-value {
  border-radius: 10px;
  border: 1px solid var(--brand-border-strong);
  background: var(--brand-surface);
  color: var(--brand-text-primary);
  padding: 8px 10px;
  font-size: 0.8rem;
  font-family: "IBM Plex Mono", "Share Tech Mono", monospace;
}

.branding-settings-message {
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.branding-settings-message--error {
  background: color-mix(in srgb, var(--brand-danger) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-danger) 28%, transparent);
  color: var(--brand-danger-soft);
}

.branding-settings-message--success {
  background: color-mix(in srgb, var(--brand-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-accent) 28%, transparent);
  color: var(--brand-accent-soft);
}

.branding-settings-message__dismiss {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.branding-settings-actions {
  display: flex;
  justify-content: flex-end;
}

.branding-settings-actions button {
  border-radius: 12px;
  border: none;
  padding: 12px 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--brand-accent);
  color: var(--brand-accent-contrast);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.branding-settings-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.branding-settings-actions button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px color-mix(in srgb, var(--brand-accent) 26%, transparent);
}

.charity-manager {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: clamp(18px, 2.4vw, 24px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 20px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.charity-manager__header h2 {
  margin: 0 0 6px;
  font-size: clamp(1.04rem, 2vw, 1.25rem);
  font-weight: 600;
}

.charity-manager__header p {
  margin: 0;
  color: var(--brand-text-secondary);
  opacity: 0.7;
  font-size: 0.9rem;
}

.charity-manager__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1fr);
  gap: clamp(18px, 2vw, 24px);
  align-items: flex-start;
}

.charity-manager__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.charity-manager__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--brand-text-secondary);
}

.charity-manager__form label span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--brand-text-muted);
}

.charity-manager__form input {
  border-radius: 12px;
  border: 1px solid var(--brand-border-strong);
  background: var(--brand-surface-alt);
  color: var(--brand-text-primary);
  padding: 10px 12px;
  font-size: 0.92rem;
}

.charity-manager__file input[type="file"] {
  border: 1px dashed var(--brand-border-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand-surface-alt) 70%, transparent);
  padding: 12px;
  color: var(--brand-text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
}

.charity-manager__file input[type="file"]::file-selector-button {
  border: none;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-accent) 18%, transparent);
  color: var(--brand-accent);
  padding: 6px 12px;
  margin-right: 12px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.charity-manager__file input[type="file"]:hover::file-selector-button {
  background: color-mix(in srgb, var(--brand-accent) 28%, transparent);
}

.charity-manager__file-name,
.charity-manager__file-hint {
  font-size: 0.75rem;
  color: rgba(154, 164, 160, 0.78);
}

.charity-manager__form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.charity-manager__cancel {
  border-radius: 12px;
  padding: 9px 16px;
  border: 1px solid var(--brand-border);
  background: transparent;
  color: var(--brand-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.charity-manager__cancel:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.charity-manager__cancel[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.charity-manager__preview {
  margin-top: 4px;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 10px;
  background: rgba(5, 5, 5, 0.9);
  max-width: 180px;
}

.charity-manager__preview img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.charity-manager__status {
  margin-top: 2px;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.78rem;
  background: rgba(24, 24, 24, 0.85);
  border: 1px solid rgba(38, 38, 38, 0.8);
  color: var(--brand-text-secondary);
}

.charity-manager__status--error {
  background: color-mix(in srgb, var(--brand-danger) 12%, transparent);
  border-color: color-mix(in srgb, var(--brand-danger) 28%, transparent);
  color: var(--brand-danger-soft);
}

.charity-manager__status--success {
  background: color-mix(in srgb, var(--brand-accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--brand-accent) 35%, transparent);
  color: var(--brand-accent-soft);
}

.charity-manager__hint--info {
  color: var(--brand-accent-soft);
}

.charity-manager__hint {
  font-size: 0.78rem;
  color: rgba(154, 164, 160, 0.85);
  margin-bottom: 4px;
}

.charity-manager__list {
  background: rgba(5, 5, 5, 0.82);
  border: 1px solid var(--brand-border-strong);
  border-radius: 16px;
  padding: 16px;
  max-height: 420px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.charity-manager__list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.charity-manager__empty {
  text-align: center;
  font-size: 0.85rem;
  padding: 24px 12px;
  color: rgba(154, 164, 160, 0.74);
}

.charity-manager__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(27, 27, 27, 0.9);
  background: rgba(12, 12, 12, 0.9);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.charity-manager__item.is-editing {
  border-color: color-mix(in srgb, var(--brand-accent) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-accent) 35%, transparent),
    0 12px 24px rgba(18, 82, 54, 0.35);
}

.charity-manager__item:hover {
  border-color: color-mix(in srgb, var(--brand-accent) 30%, transparent);
  transform: translateY(-1px);
}

.charity-manager__item.is-active {
  border-color: color-mix(in srgb, var(--brand-accent) 55%, transparent);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-accent) 24%, transparent);
}

.charity-manager__logo,
.charity-manager__avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(29, 29, 29, 0.9);
  object-fit: cover;
  flex: 0 0 auto;
}

.charity-manager__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-accent) 20%, transparent), color-mix(in srgb, var(--brand-accent-contrast) 90%, transparent));
  color: var(--brand-accent-soft);
  font-weight: 600;
  font-size: 1.1rem;
}

.charity-manager__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.charity-manager__details strong {
  font-size: 0.95rem;
  color: var(--brand-text-primary);
}

.charity-manager__address {
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(186, 198, 191, 0.8);
  word-break: break-all;
}

.charity-manager__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
}

.charity-manager__vote {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(63, 145, 104, 0.16);
  color: var(--brand-accent-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.charity-manager__badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-accent) 18%, transparent);
  color: var(--brand-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.charity-manager__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.charity-manager__edit {
  border: 1px solid var(--brand-border);
  background: rgba(20, 20, 20, 0.85);
  color: var(--brand-text-secondary);
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.charity-manager__edit:hover:not([disabled]) {
  border-color: color-mix(in srgb, var(--brand-accent) 65%, transparent);
  color: var(--brand-accent);
  background: rgba(28, 28, 28, 0.95);
}

.charity-manager__edit[disabled] {
  opacity: 0.6;
  cursor: default;
}

.charity-manager__activate {
  border: 1px solid color-mix(in srgb, var(--brand-accent) 45%, transparent);
  background: rgba(12, 48, 30, 0.6);
  color: var(--brand-accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.charity-manager__activate:hover:not([disabled]) {
  border-color: color-mix(in srgb, var(--brand-accent) 70%, transparent);
  background: rgba(20, 72, 44, 0.85);
}

.charity-manager__activate[disabled] {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 980px) {
  .charity-manager__grid {
    grid-template-columns: 1fr;
  }

  .charity-manager__list {
    max-height: none;
  }
}

.admin-panel__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(12px, 1.8vw, 16px);
}

.admin-panel__heading h2 {
  margin: 0;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  font-weight: 600;
}

.admin-panel__heading p {
  margin: 4px 0 0;
}

.admin-panel--moderation {
  gap: clamp(12px, 1.8vw, 18px);
}

.admin-access {
  margin-top: 6px;
  display: flex;
  justify-content: flex-start;
}

.admin-login-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: clamp(16px, 3vw, 24px);
  max-width: 320px;
  display: grid;
  gap: 14px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.45);
}

.admin-login-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.admin-login-subtext {
  margin: 0;
  color: var(--brand-text-secondary); opacity: 0.7;
  font-size: 0.9rem;
}

.admin-login-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--brand-text-secondary);
}

.admin-login-card label span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--brand-text-muted);
}

.admin-login-card input {
  border-radius: 12px;
  border: 1px solid var(--brand-border-strong);
  background: var(--brand-surface-alt);
  color: var(--brand-text-primary);
  padding: 10px 12px;
}

.admin-login-card button {
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--brand-accent);
  color: var(--brand-accent-contrast);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-login-card button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.admin-login-card button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px color-mix(in srgb, var(--brand-accent) 28%, transparent);
}

.admin-login-error {
  background: color-mix(in srgb, var(--brand-danger) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-danger) 30%, transparent);
  color: var(--brand-danger-soft);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
}

.admin-session-chip {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.45);
}

.admin-session-label {
  display: block;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--brand-text-muted);
  margin-bottom: 4px;
}

.admin-session-chip strong {
  font-size: 1rem;
  color: var(--brand-accent-soft);
}

.admin-session-actions {
  display: flex;
  gap: 10px;
}

.admin-session-actions .secondary {
  border: 1px solid var(--brand-border-strong);
  background: transparent;
  color: var(--brand-text-secondary);
  border-radius: 12px;
  padding: 8px 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
}

.admin-session-actions .secondary:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 10, 0.86);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(18px, 5vw, 36px);
  z-index: 999;
  overflow-y: auto;
}

.admin-panel {
  width: min(1280px, 100%);
  background: var(--brand-surface-alt);
  border: 1px solid var(--brand-border-strong);
  border-radius: 22px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(18px, 2.4vw, 28px);
  color: var(--brand-text-primary);
}

.admin-panel__topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-panel__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: 0.02em;
}

.admin-panel__brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(96px, 10vw, 120px);
  height: clamp(34px, 6vw, 44px);
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 45%, transparent);
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--brand-accent) 55%, transparent), color-mix(in srgb, var(--brand-accent-contrast) 95%, transparent));
  color: var(--brand-accent-soft);
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
}

.admin-panel__status {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--brand-surface-alt);
  border: 1px solid var(--brand-border-strong);
  color: var(--brand-text-primary);
  font-size: 0.82rem;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.admin-panel__status[data-state="connected"] {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.admin-panel__status small {
  font-size: 0.72rem;
  color: rgba(211, 243, 226, 0.8);
}

.admin-panel__close {
  border: 1px solid var(--brand-border-strong);
  background: transparent;
  color: var(--brand-text-primary);
  border-radius: 14px;
  padding: 10px 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-panel__layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1.75fr) minmax(240px, 1fr);
  gap: clamp(16px, 2vw, 20px);
}

.admin-panel__section {
  background: var(--brand-surface-alt);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: clamp(14px, 2vw, 18px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26);
}

.admin-panel__muted {
  margin: 0;
  color: rgba(172, 191, 230, 0.75);
  font-size: 0.85rem;
}

@keyframes terminalPulse {
  0%,
  100% {
    box-shadow: 0 0 6px rgba(3, 255, 10, 0.2);
    opacity: 0.9;
  }
  50% {
    box-shadow: 0 0 18px rgba(3, 255, 10, 0.45);
    opacity: 1;
  }
}

@keyframes terminalMarquee {
  0% {
    transform: translateX(5%);
  }
  100% {
    transform: translateX(-105%);
  }
}

@keyframes terminalType {
  0% {
    width: 0;
  }
  60% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}

@keyframes terminalLineGlow {
  0%,
  100% {
    border-color: color-mix(in srgb, var(--brand-textMuted, #94ffce) 30%, transparent);
  }
  50% {
    border-color: color-mix(in srgb, var(--brand-accent, #57ff9c) 35%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-badge,
  .terminal-marquee-text,
  .terminal-type-line,
  .terminal-log li {
    animation: none;
  }
}

.admin-panel__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-panel__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

.admin-panel__form label span {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}

.admin-panel__form input,
.admin-panel__form textarea {
  border-radius: 12px;
  border: 1px solid var(--brand-border-strong);
  background: #0f1116;
  color: var(--brand-text-primary);
  padding: 10px 12px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-panel__form textarea {
  min-height: 96px;
  resize: vertical;
}

.admin-panel__form input:focus,
.admin-panel__form textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent) 25%, transparent);
}

.admin-panel__checkbox {
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
}

.admin-panel__checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--brand-accent);
}

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

.admin-panel__button-row button {
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  background: var(--brand-accent);
  color: var(--brand-accent-contrast);
}

.admin-panel__button-row button.secondary {
  background: transparent;
  border: 1px solid var(--brand-border);
  color: var(--brand-text-primary);
}

.admin-panel__button-row button.secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-panel__art {
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.admin-panel__art img {
  max-width: 240px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--brand-border);
}

.admin-panel__chat {
  grid-column: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
}

.admin-panel__messages {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: var(--brand-surface-alt);
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 25%, transparent);
  box-shadow: inset 0 14px 28px rgba(0, 0, 0, 0.45);
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
}

.admin-panel__message {
  background: color-mix(in srgb, var(--brand-accent-contrast) 85%, transparent);
  border-radius: 12px;
  padding: 12px;
  box-shadow: inset 0 0 18px rgba(85, 210, 146, 0.06), 0 18px 40px rgba(8, 11, 10, 0.55);
}

.admin-panel__message.is-flagged {
  border: 1px solid color-mix(in srgb, var(--brand-danger) 55%, transparent);
}

.admin-panel__message-head {
  display: flex;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(124, 231, 177, 0.8);
  margin-bottom: 6px;
  align-items: center;
}

.admin-panel__message-head time {
  margin-left: auto;
  opacity: 0.7;
}

.admin-panel__message-body {
  font-size: 0.85rem;
  margin: 0 0 10px;
  color: var(--brand-accent-soft);
}

.admin-panel__message-actions {
  display: inline-flex;
  gap: 8px;
}

.admin-panel__message-actions button {
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  background: transparent;
  cursor: pointer;
}

.admin-panel__message-actions .danger {
  border: 1px solid var(--brand-danger-soft);
  color: var(--brand-danger-soft);
}

.admin-panel__message-actions .warning {
  border: 1px solid var(--brand-warning);
  color: var(--brand-warning);
}

.admin-panel__send {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.admin-panel__send textarea {
  min-height: 60px;
  border-radius: 12px;
  border: 1px solid var(--brand-border-strong);
  background: #0f1116;
  color: var(--brand-text-primary);
  padding: 10px 12px;
}

.admin-panel__send button {
  border-radius: 12px;
  border: none;
  background: var(--brand-accent);
  color: var(--brand-accent-contrast);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
}

.admin-panel__log {
  grid-column: 3;
}

.admin-panel__log-stream {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-panel__log-entry {
  background: #0f1116;
  border-radius: 12px;
  border: 1px solid var(--brand-border-strong);
  padding: 12px;
  display: grid;
  gap: 8px;
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
}

.admin-panel__log-entry header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(221, 231, 235, 0.8);
}

.admin-panel__log-entry pre {
  margin: 0;
  font-size: 0.72rem;
  background: var(--brand-surface-alt);
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--brand-border-strong);
  color: var(--brand-accent-soft);
  overflow-x: auto;
}

.admin-panel__empty {
  background: #0f1116;
  border-radius: 12px;
  border: 1px dashed var(--brand-border-strong);
  padding: 16px;
  text-align: center;
  color: rgba(207, 216, 219, 0.6);
  font-size: 0.85rem;
}

@media (max-width: 1200px) {
  .admin-panel__layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-panel__chat {
    grid-column: 1;
  }
  .admin-panel__log {
    grid-column: 1;
  }
  .admin-panel__send {
    grid-template-columns: 1fr;
  }
}
.terminal-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.terminal-hero-card {
  border: 1px solid color-mix(in srgb, var(--brand-accent, #57ff9c) 18%, transparent);
  background: linear-gradient(135deg, rgba(5, 15, 10, 0.85), rgba(3, 9, 6, 0.5));
  padding: 16px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.terminal-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand-accent, #57ff9c) 25%, transparent), transparent 60%);
  opacity: 0.12;
  pointer-events: none;
}

.terminal-hero-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-textSecondary, #94ffce);
}

.terminal-hero-value {
  margin: 6px 0;
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: 0.15em;
  color: var(--brand-accent, #57ff9c);
  text-shadow: 0 0 20px color-mix(in srgb, var(--brand-accent, #57ff9c) 45%, transparent);
}

.terminal-hero-caption {
  margin: 0;
  font-size: 0.75rem;
  color: var(--brand-text-muted, #94ffce);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.terminal-hero-card--eligibility {
  border-color: color-mix(in srgb, var(--brand-warning, #f7b955) 25%, transparent);
}

.terminal-hero-chip {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px dashed color-mix(in srgb, var(--brand-warning, #f7b955) 40%, transparent);
  text-transform: uppercase;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--brand-warning, #f7b955);
}

.terminal-marquee {
  margin-top: 4px;
  border: 1px solid color-mix(in srgb, var(--brand-accent, #57ff9c) 20%, transparent);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(2, 9, 6, 0.85), rgba(2, 5, 4, 0.65));
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.terminal-marquee-label {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-warning, #f7b955);
}

.terminal-marquee-text {
  font-size: 0.88rem;
  color: var(--brand-text-primary, #57ff9c);
  white-space: nowrap;
  animation: terminalMarquee 18s linear infinite;
}

.terminal-marquee::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.8));
}
.challenge-card-wrapper {
  margin: 2rem auto;
}

.challenge-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 20, 0.92);
  padding: 1.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  color: var(--brand-text-primary, #f5f7fa);
}

.challenge-card--professional {
  background: var(--brand-surface, rgba(8, 11, 20, 0.92));
}

.challenge-card--terminal {
  border-color: rgba(0, 255, 247, 0.25);
  background: rgba(3, 10, 18, 0.95);
}

.challenge-card__head h3 {
  margin: 0.4rem 0 0;
  font-size: 1.5rem;
}

.challenge-card__eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--brand-text-secondary, #9aa29b);
}

.challenge-card__countdown {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--brand-text-secondary, #9aa29b);
}

.challenge-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--brand-text-secondary, #9aa29b);
}

.challenge-card__reward {
  padding: 0.15rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.challenge-card--terminal .challenge-card__reward {
  background: rgba(0, 255, 247, 0.1);
}

.challenge-card__answers {
  margin: 1.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
}

.challenge-card__answer {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.challenge-card--terminal .challenge-card__answer {
  border-color: rgba(0, 255, 247, 0.2);
  background: rgba(0, 0, 0, 0.5);
}

.challenge-card__answer-label {
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.challenge-card__answer-command {
  font-family: "Space Mono", "Fira Code", monospace;
  font-size: 0.85rem;
  color: var(--brand-accent, #03ff0a);
}

.challenge-card--terminal .challenge-card__answer-command {
  color: #00f5ff;
}

.challenge-card__footer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--brand-text-secondary, #9aa29b);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.challenge-card__footer-right {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pro-challenge {
  margin: 2rem 0 1rem;
}

.terminal-challenge-wrapper {
  margin: 1.5rem 0 2rem;
}

.challenge-card--terminal .challenge-card__eyebrow {
  color: #00f5ff;
}

@media (max-width: 1100px) {
  .challenge-card-wrapper {
    margin: 1.5rem 1rem;
  }

  .challenge-card {
    padding: 1.25rem;
  }
}

.challenge-result-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 15, 24, 0.95);
  padding: 1.15rem 1.35rem;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.challenge-result-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-text-secondary, #9aa29b);
}

.challenge-result-card h4 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--brand-text-primary, #f5f7fa);
}

.challenge-result-body {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--brand-text-secondary, #9aa29b);
}

.terminal-challenge-wrapper .challenge-result-card {
  border-color: rgba(0, 255, 247, 0.25);
  background: rgba(0, 0, 0, 0.55);
}

.challenge-payout-card {
  border-radius: 16px;
  border: 1px solid rgba(16, 196, 255, 0.2);
  background: rgba(5, 11, 22, 0.95);
  padding: 1rem 1.25rem;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}

.challenge-payout-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(16, 196, 255, 0.9);
}

.challenge-payout-card h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--brand-text-primary, #f5f7fa);
}

.challenge-payout-body {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--brand-text-secondary, #9aa29b);
}

.challenge-payout-footer {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--brand-text-secondary, #9aa29b);
}

.challenge-payout-footer a {
  color: var(--brand-accent, #4cc9ff);
}

#challenge-overlay {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  max-width: 320px;
  width: calc(100vw - 2rem);
}

#challenge-overlay.hidden {
  display: none;
}

.challenge-overlay-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 9, 15, 0.95);
  color: #f5f7fa;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  padding: 1rem 1.1rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.challenge-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.challenge-overlay-eyebrow {
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: #9aa29b;
}

.challenge-overlay-dismiss {
  background: transparent;
  border: none;
  color: #9aa29b;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
}

.challenge-overlay-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.challenge-overlay-muted {
  color: #9aa29b;
  margin: 0;
  font-size: 0.85rem;
}

.challenge-overlay-answers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.challenge-overlay-answer {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.challenge-overlay-answer p {
  margin: 0;
  font-weight: 600;
}

.challenge-overlay-command {
  font-family: "Space Mono", "Fira Code", monospace;
  font-size: 0.85rem;
  color: #03ff0a;
}

.challenge-overlay-result {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.65rem;
}
@media (max-width: 1100px) {
  body[data-template="simple"] .header-top {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 16px;
  }

  body[data-template="simple"] .brand-logo {
    align-self: center;
  }

  body[data-template="simple"] .primary-nav-wrap {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    margin-left: 0;
  }

  body[data-template="simple"] .primary-nav {
    width: 100%;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  body[data-template="simple"] .nav-link {
    flex: 1 1 calc(50% - 12px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    text-align: center;
  }

  body[data-template="simple"] .nav-link.nav-link-social {
    flex: 0 0 auto;
    padding: 10px;
  }

  body[data-template="simple"] .nav-cta {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    padding: 12px;
  }
}

@media (max-width: 1100px) {
  body[data-template="simple"] #root {
    padding: 0 clamp(14px, 5vw, 24px);
  }

  body[data-template="simple"] .app,
  .app[data-template="simple"] {
    gap: 16px;
    padding: clamp(18px, 4vw, 26px);
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
    background: color-mix(in srgb, var(--brand-surface, #0b0b0b) 90%, #050505 10%);
  }

  body[data-template="simple"] .header-grid,
  .app[data-template="simple"] .header-grid {
    --header-grid-template: 1fr;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body[data-template="simple"] .header-card,
  .app[data-template="simple"] .header-card {
    min-height: auto;
  }

  body[data-template="simple"] .header-card-support--expanded,
  .app[data-template="simple"] .header-card-support--expanded {
    grid-template-columns: 1fr;
  }

  body[data-template="simple"] .support-meta,
  .app[data-template="simple"] .support-meta {
    flex-direction: row;
    gap: 12px;
    width: 100%;
  }

  body[data-template="simple"] .support-meta-row,
  .app[data-template="simple"] .support-meta-row {
    flex: 1 1 50%;
  }

  body[data-template="simple"] .metric-grid,
  .app[data-template="simple"] .metric-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  body[data-template="simple"] .vote-sections,
  .app[data-template="simple"] .vote-sections {
    flex-direction: column;
  }

  body[data-template="simple"] .how-it-works,
  .app[data-template="simple"] .how-it-works {
    flex-direction: column;
    width: 100%;
  }

  body[data-template="simple"] .charity-vote-row,
  .app[data-template="simple"] .charity-vote-row {
    grid-template-columns: 1fr;
  }

  body[data-template="simple"] .log-region,
  .app[data-template="simple"] .log-region {
    flex-direction: column;
  }

  body[data-template="simple"] .log-panel,
  .app[data-template="simple"] .log-panel {
    width: 100%;
  }

  body[data-template="simple"] .donations-section,
  .app[data-template="simple"] .donations-section {
    margin-top: 16px;
  }
}

@media (max-width: 1100px) {
  body[data-template="simple"] .charity-vote-card,
  .app[data-template="simple"] .charity-vote-card {
    min-height: auto;
    padding: 14px;
  }

  body[data-template="simple"] .charity-vote-body,
  .app[data-template="simple"] .charity-vote-body {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body[data-template="simple"] .charity-vote-logo,
  .app[data-template="simple"] .charity-vote-logo {
    max-width: 160px;
    width: 70%;
    justify-self: flex-start;
  }

  body[data-template="simple"] .charity-vote-command,
  .app[data-template="simple"] .charity-vote-command {
    letter-spacing: 0.16em;
    font-size: 1rem;
    white-space: normal;
  }
}

@media (max-width: 1100px) {
  body[data-template="simple"] .primary-nav {
    flex-direction: column;
  }

  body[data-template="simple"] .nav-link {
    flex: 1 1 100%;
  }

  body[data-template="simple"] .nav-cta {
    padding: 12px 16px;
  }
}
