/* natbox.io look for Paymenter's default theme. Loaded through the Natbox extension's `head` hook,
   so it survives theme rebuilds; colours themselves are Paymenter theme settings. */
@font-face { font-family: "Inter"; src: url("/natbox/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root { --nbx-brand: #f6821f; --nbx-ring: 0 0 0 3px rgba(246, 130, 31, .25); --nbx-shadow: 0 1px 2px rgba(14, 21, 37, .05), 0 8px 24px -12px rgba(14, 21, 37, .14); }
.dark { --nbx-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6); }

html, body, button, input, select, textarea { font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important; }
body { -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
h1, h2, h3, .text-xl, .text-2xl, .text-3xl, .text-4xl { letter-spacing: -.02em; }

/* Top bar: white glass with a hairline border, like the main site */
nav.fixed {
  background: hsl(var(--color-background) / .82) !important;
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
nav.fixed a span.text-sm, nav.fixed button span.text-sm { font-weight: 500; }

/* Sidebar (dashboard) */
#main-aside, aside { background: hsl(var(--color-background)) !important; }

/* Cards: crisp border, soft lift on hover */
.bg-background-secondary.border, .card {
  border-radius: 12px !important;
  transition: box-shadow .15s, border-color .15s;
}
.bg-background-secondary.border:hover { box-shadow: var(--nbx-shadow); }
main .bg-background-secondary.border { background: hsl(var(--color-background)) !important; }

/* Buttons */
button.bg-primary, a.bg-primary, .bg-primary.text-white {
  border-radius: 8px !important; font-weight: 600 !important;
  transition: background .15s, box-shadow .15s, transform .15s !important;
}
button.bg-primary:hover:not(:disabled), a.bg-primary:hover {
  background: hsl(var(--color-primary)) !important; transform: translateY(-1px);
  box-shadow: 0 6px 18px -6px rgba(246, 130, 31, .7);
}

/* Inputs */
input:not([type=checkbox]):not([type=radio]), select, textarea { border-radius: 8px !important; }
input:focus, select:focus, textarea:focus { box-shadow: var(--nbx-ring) !important; border-color: hsl(var(--color-primary)) !important; outline: none !important; }

/* Links inside text */
.prose a { color: hsl(var(--color-primary)); text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* Footer: less dead space, quieter "Powered by" */
footer { margin-top: 6rem !important; background: hsl(var(--color-background-secondary)) !important; }
footer > .container { margin-top: 2rem !important; margin-bottom: 2rem !important; }
footer a[href*="paymenter.org"] { opacity: .7; border-radius: 8px; }

/* Home page hero (HTML lives in the theme's "Home Page Text" setting) */
div:has(> .container > article .nbx-hero) {
  padding: 0 !important; border-radius: 0 !important; position: relative; overflow: hidden;
  background: hsl(var(--color-background)) !important;
}
div:has(> .container > article .nbx-hero)::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 280px at 85% 0%, rgba(246, 130, 31, .16), transparent 70%),
    linear-gradient(hsl(var(--color-neutral)) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, hsl(var(--color-neutral)) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: radial-gradient(ellipse 80% 90% at 60% 20%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 60% 20%, #000 25%, transparent 80%);
  opacity: .8;
}
article:has(.nbx-hero) { position: relative; }
.nbx-hero { padding: 72px 0 64px; max-width: 760px; }
.nbx-hero .nbx-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 5px; border-radius: 99px;
  border: 1px solid hsl(var(--color-neutral)); background: hsl(var(--color-background)); font-size: 13px; font-weight: 500;
  color: hsl(var(--color-muted)); text-decoration: none; margin-bottom: 20px;
}
.nbx-hero .nbx-pill b { background: rgba(246, 130, 31, .14); color: hsl(var(--color-primary)); padding: 2px 8px; border-radius: 99px; font-size: 12px; }
.prose .nbx-hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 0 0 16px; color: hsl(var(--color-base)); }
.nbx-hero h1 em { font-style: normal; background: linear-gradient(100deg, #f6821f, #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prose .nbx-hero p { font-size: 18px; color: hsl(var(--color-muted)); margin: 0 0 28px; max-width: 34em; }
.nbx-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.prose .nbx-actions a {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: 15px;
  text-decoration: none; background: hsl(var(--color-primary)); color: #fff; transition: transform .15s, box-shadow .15s;
}
.prose .nbx-actions a:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -6px rgba(246, 130, 31, .7); }
.prose .nbx-actions a.ghost { background: hsl(var(--color-background)); color: hsl(var(--color-base)); border: 1px solid hsl(var(--color-neutral)); }
.prose .nbx-actions a.ghost:hover { box-shadow: var(--nbx-shadow); }
@media (max-width: 640px) { .nbx-hero { padding: 40px 0 36px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
