/* Academy management (functions_am_ui.php): public pages (link, join, pay, sign, my memberships)
   and the admin pages under updateacademy.php. Tokens from styles/modern.css / dark.css only. */

/* ---------- Public card pages ---------- */
.bc-amp { max-width: 600px; margin: 12px auto 48px; padding: 0 12px; }
.bc-amp--wide { max-width: 880px; }
.bc-amp-card { background: var(--bc-surface); border-radius: var(--bc-r-lg, 22px); box-shadow: var(--bc-shadow-2), 0 0 0 1px var(--bc-line); overflow: hidden; }
.bc-amp-card + .bc-amp-card { margin-top: 16px; }
.bc-amp-cover { height: 120px; background: linear-gradient(120deg, #03b2d1, #5b4bd1 55%, #d4744f); background-size: cover; background-position: center; }
.bc-amp-logo { width: 84px; height: 84px; border-radius: 22px; margin: -44px auto 0; background: var(--bc-surface); box-shadow: 0 0 0 4px var(--bc-surface), 0 8px 20px -8px rgba(16, 16, 30, .35); display: grid; place-items: center; overflow: hidden; position: relative; }
.bc-amp-logo img { width: 100%; height: 100%; object-fit: cover; }
.bc-amp-logo b { font-size: 28px; color: var(--bc-ink); letter-spacing: -0.02em; }
.bc-amp-body { padding: 14px 22px 24px; }
.bc-amp-center { text-align: center; }
.bc-amp-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bc-muted); margin: 6px 0 4px; }
.bc-amp h1 { font-size: 25px; line-height: 1.2; margin: 0 0 6px; color: var(--bc-ink); letter-spacing: -0.02em; }
.bc-amp h2 { font-size: 18px; margin: 0 0 10px; color: var(--bc-ink); letter-spacing: -0.01em; }
.bc-amp-place { color: var(--bc-muted); font-size: 14px; margin: 0 0 14px; }
.bc-amp-lead { color: var(--bc-ink-2); font-size: 15px; line-height: 1.55; margin: 0 auto 18px; max-width: 460px; }
.bc-amp-actions { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 0 auto; }
.bc-amp-actions--row { flex-direction: row; flex-wrap: wrap; max-width: none; justify-content: flex-end; }
.bc-amp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 14px; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.bc-amp .bc-amp-btn--primary, .bc-amp .bc-amp-btn--primary:hover { background: var(--bc-ink); color: var(--bc-surface); }
.bc-amp .bc-amp-btn--soft, .bc-amp .bc-amp-btn--soft:hover { background: var(--bc-surface-2); color: var(--bc-ink); box-shadow: inset 0 0 0 1px var(--bc-line); }
.bc-amp .bc-amp-btn--quiet, .bc-amp .bc-amp-btn--quiet:hover { background: transparent; color: var(--bc-muted); min-height: 40px; }
.bc-amp-btn[disabled] { opacity: .5; cursor: default; }
.bc-amp-note { margin: 14px auto 0; font-size: 13px; color: var(--bc-muted); line-height: 1.5; max-width: 440px; }
.bc-amp-msg { margin: 0 auto 16px; max-width: 460px; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; text-align: left; }
.bc-amp-msg--ok { background: color-mix(in srgb, var(--bc-green, #22c55e) 14%, var(--bc-surface)); color: var(--bc-ink); }
.bc-amp-msg--err { background: color-mix(in srgb, var(--bc-red, #ef4444) 14%, var(--bc-surface)); color: var(--bc-ink); }
.bc-amp-msg--info { background: var(--bc-surface-2); color: var(--bc-ink); }

/* Forms on public pages */
.bc-amp-form { display: grid; gap: 14px; text-align: left; }
.bc-amp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .bc-amp-grid2 { grid-template-columns: 1fr; } }
.bc-amp-field { display: flex; flex-direction: column; gap: 6px; }
.bc-amp-field > span { font-size: 13px; font-weight: 600; color: var(--bc-ink-2); }
.bc-amp-field small { font-size: 12px; color: var(--bc-muted); font-weight: 400; }
.bc-amp-input { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--bc-line-strong, var(--bc-line)); background: var(--bc-surface); color: var(--bc-ink); font: 500 15px var(--bc-font, inherit); box-sizing: border-box; }
.bc-amp-input:focus { outline: none; box-shadow: var(--bc-ring); border-color: var(--bc-accent); }
textarea.bc-amp-input { min-height: 90px; resize: vertical; }
.bc-amp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--bc-ink-2); line-height: 1.45; }
.bc-amp-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--bc-ink); }
.bc-amp-section { border-top: 1px solid var(--bc-line); padding-top: 16px; margin-top: 4px; }
.bc-amp-section h3 { font-size: 15px; margin: 0 0 10px; color: var(--bc-ink); }

/* Plan cards */
.bc-amp-plans { display: grid; gap: 10px; }
.bc-amp-plan { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--bc-line); background: var(--bc-surface); cursor: pointer; text-align: left; }
.bc-amp-plan:hover { border-color: var(--bc-line-strong, var(--bc-line)); }
.bc-amp-plan input { position: absolute; opacity: 0; pointer-events: none; }
.bc-amp-plan:has(input:checked) { border-color: var(--bc-ink); box-shadow: 0 0 0 1px var(--bc-ink); }
.bc-amp-plan:has(input:focus-visible) { box-shadow: var(--bc-ring); }
.bc-amp-plan-main { flex: 1; min-width: 0; }
.bc-amp-plan-name { display: block; font-weight: 700; font-size: 15px; color: var(--bc-ink); }
.bc-amp-plan-desc { display: block; font-size: 13px; color: var(--bc-muted); margin-top: 2px; line-height: 1.45; }
@media (max-width: 520px) { .bc-amp-plan { flex-direction: column; gap: 6px; } .bc-amp-plan-price { text-align: left; } }
.bc-amp-plan-price { font-weight: 800; font-size: 16px; color: var(--bc-ink); white-space: nowrap; text-align: right; }
.bc-amp-plan-price small { display: block; font-weight: 500; font-size: 12px; color: var(--bc-muted); }

/* Signature pad */
.bc-amp-sigwrap { position: relative; border-radius: 14px; border: 1px dashed var(--bc-line-strong, var(--bc-line)); background: #fff; }
.bc-amp-sig { display: block; width: 100%; height: 160px; touch-action: none; cursor: crosshair; border-radius: 14px; }
.bc-amp-sigclear { position: absolute; top: 6px; right: 8px; font-size: 12px; background: #fff; border: 1px solid #ddd; color: #666; border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.bc-amp-doc { max-height: 320px; overflow: auto; padding: 14px 16px; border-radius: 14px; background: var(--bc-surface-2); font-size: 14px; line-height: 1.6; color: var(--bc-ink-2); text-align: left; white-space: pre-wrap; }

/* Lists on "My memberships" */
.bc-amp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bc-amp-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bc-surface-2); }
.bc-amp-item-main { flex: 1; min-width: 0; }
.bc-amp-item-title { font-weight: 700; color: var(--bc-ink); font-size: 15px; }
.bc-amp-item-meta { color: var(--bc-muted); font-size: 13px; margin-top: 2px; }
.bc-amp-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--bc-surface); color: var(--bc-ink-2); box-shadow: inset 0 0 0 1px var(--bc-line); }
.bc-amp-pill--green { background: color-mix(in srgb, var(--bc-green, #22c55e) 16%, var(--bc-surface)); box-shadow: none; }
.bc-amp-pill--amber { background: color-mix(in srgb, var(--bc-amber, #f59e0b) 18%, var(--bc-surface)); box-shadow: none; }
.bc-amp-pill--red { background: color-mix(in srgb, var(--bc-red, #ef4444) 16%, var(--bc-surface)); box-shadow: none; }
.bc-amp-qr { display: grid; place-items: center; margin: 8px auto 4px; }
.bc-amp-qr img, .bc-amp-qr canvas, .bc-amp-qr svg { width: 220px; height: 220px; border-radius: 16px; background: #fff; padding: 10px; }

/* ---------- Admin pages (inside the updateacademy.php settings shell) ---------- */
.bc-am-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
.bc-am-kpi { padding: 14px 16px; border-radius: 16px; background: var(--bc-surface-2); }
.bc-am-kpi-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bc-muted); }
.bc-am-kpi-value { font-size: 24px; font-weight: 800; color: var(--bc-ink); letter-spacing: -0.02em; margin-top: 4px; line-height: 1.15; }
.bc-am-kpi-sub { font-size: 12px; color: var(--bc-muted); margin-top: 2px; }
.bc-am-kpi--alert .bc-am-kpi-value { color: var(--bc-red, #dc2626); }
.bc-am-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.bc-am-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--bc-ink-2); background: var(--bc-surface-2); text-decoration: none !important; }
.bc-am-tab span { color: var(--bc-muted); font-weight: 700; }
.bc-am-tab.is-active { background: var(--bc-ink); color: var(--bc-surface) !important; }
.bc-am-tab.is-active span { color: inherit; opacity: .75; }
.bc-am-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; }
.bc-am-toolbar .bc-aa-search { flex: 1; min-width: 200px; }
.bc-am-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bc-am-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--bc-muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--bc-line); white-space: nowrap; }
.bc-am-table td { padding: 10px; border-bottom: 1px solid var(--bc-line); color: var(--bc-ink); vertical-align: middle; }
.bc-am-table tr:last-child td { border-bottom: 0; }
.bc-am-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bc-am-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bc-am-muted { color: var(--bc-muted); }
.bc-am-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bc-am-person a, .bc-am-person button { color: var(--bc-ink); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.bc-am-initials { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bc-surface-3, var(--bc-surface-2)); color: var(--bc-ink-2); font-weight: 700; font-size: 13px; flex: none; }
.bc-am-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .bc-am-detail { grid-template-columns: 1fr; } }
.bc-am-dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 14px; margin: 0; }
.bc-am-dl dt { color: var(--bc-muted); }
.bc-am-dl dd { margin: 0; color: var(--bc-ink); word-break: break-word; }
.bc-am-steps { display: flex; gap: 6px; margin: 0 0 16px; }
.bc-am-step { flex: 1; height: 4px; border-radius: 4px; background: var(--bc-line); }
.bc-am-step.is-done { background: var(--bc-ink); }
.bc-am-banner { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--bc-surface-2); margin: 0 0 16px; font-size: 14px; color: var(--bc-ink-2); line-height: 1.5; }
.bc-am-banner > i { font-size: 20px; color: var(--bc-ink); }
.bc-am-banner--warn { background: color-mix(in srgb, var(--bc-amber, #f59e0b) 16%, var(--bc-surface)); }
.bc-am-banner--ok { background: color-mix(in srgb, var(--bc-green, #22c55e) 14%, var(--bc-surface)); }
.bc-am-banner .bc-set-btn { margin-left: auto; flex: none; }
.bc-am-chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding: 8px 0 0; }
.bc-am-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; height: 100%; justify-content: flex-end; }
.bc-am-chart-bar { width: 100%; max-width: 36px; border-radius: 6px 6px 2px 2px; background: var(--bc-ink); min-height: 2px; }
.bc-am-chart-lbl { font-size: 11px; color: var(--bc-muted); white-space: nowrap; }
.bc-am-chart-val { font-size: 11px; color: var(--bc-ink-2); font-weight: 600; white-space: nowrap; }
.bc-am-inline { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bc-am-hint { font-size: 13px; color: var(--bc-muted); margin: -4px 0 14px; line-height: 1.5; }
.bc-am-printcard { display: inline-grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--bc-line); border-radius: 12px; width: 320px; background: #fff; color: #111; }
@media print {
	.bc-am-noprint, .bc-set-nav, .bc-set-top, header, footer, nav { display: none !important; }
	.bc-am-printcard { break-inside: avoid; margin: 6px; }
}

/* Rows with buttons (member page, next steps, leads): the buttons go under the text on phones */
@media (max-width: 640px) {
	.bc-set-main .bc-set-row:has(.bc-aa-rowbtns, .bc-set-btn) { flex-wrap: wrap; }
	.bc-set-main .bc-set-row:has(.bc-aa-rowbtns, .bc-set-btn) .bc-set-row-main { flex: 1 1 calc(100% - 64px); min-width: 0; }
	.bc-set-main .bc-set-row:has(.bc-aa-rowbtns, .bc-set-btn) .bc-set-row-act { flex: 1 1 100%; justify-content: flex-start; flex-wrap: wrap; padding-left: 0; }
	.bc-set-main .bc-set-row-act .bc-aa-rowbtns { justify-content: flex-start !important; }
}
@media (max-width: 520px) {
	.bc-amp-item { flex-wrap: wrap; }
	.bc-amp-item > .bc-amp-actions, .bc-amp-item > form, .bc-amp-item > a.bc-amp-btn { flex: 1 1 100%; justify-content: flex-start; }
}

/* Bulk bar on the member list */
.bc-am-bulkbar { position: sticky; bottom: 76px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bc-surface); box-shadow: var(--bc-shadow-2), 0 0 0 1px var(--bc-line); }
.bc-am-bulkbar strong { font-size: 13px; color: var(--bc-ink); margin-right: 4px; }

/* ---------- Overview (updateacademy_am_dashboard.php, functions_am_charts.php) ----------
   --am-c: cyan for magnitude, --am-c2: coral for the second series. Both pairs validated for
   colour blindness against the light and the dark surface. The hero is always dark, like Club TV. */
:root { --am-c: #0891b2; --am-c2: #d4744f; --am-violet: #5b4bd1; }
html[data-theme="dark"] { --am-c: #0ea5c4; --am-c2: #d96c45; --am-violet: #8b7cf0; }
.am-ov { display: grid; gap: 16px; font-variant-numeric: tabular-nums; }
.am-ov h2, .am-ov h3, .am-ov p { margin: 0; }
.am-ov a { text-decoration: none; }

/* Hero */
.am-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 26px; padding: 22px 24px 20px; color: #fff; background: #0c0d1d;
	display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head acts" "main main" "foot foot"; gap: 20px 16px; }
.am-hero::before { content: ""; position: absolute; inset: -40% -10% -10% -10%; z-index: -2; background:
	radial-gradient(40% 55% at 12% 30%, rgba(3, 195, 227, .55), transparent 70%),
	radial-gradient(38% 60% at 55% 10%, rgba(91, 75, 209, .7), transparent 70%),
	radial-gradient(36% 50% at 88% 35%, rgba(224, 131, 90, .5), transparent 70%),
	radial-gradient(30% 45% at 72% 85%, rgba(154, 62, 168, .45), transparent 70%); filter: blur(12px); animation: am-drift 18s ease-in-out infinite alternate; }
.am-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 13, 29, 0) 35%, rgba(12, 13, 29, .6)); }
@keyframes am-drift { from { transform: translate3d(-3%, 0, 0) scale(1); } to { transform: translate3d(3%, 4%, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .am-hero::before { animation: none; } }
.am-hero-glow { display: none; }
.am-hero-head { grid-area: head; display: flex; align-items: center; gap: 14px; min-width: 0; }
.am-hero-logo { width: 52px; height: 52px; border-radius: 16px; overflow: hidden; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.am-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.am-hero-logo b { font-size: 18px; color: #fff; }
.am-hero-hi { font-size: 14px; color: rgba(255, 255, 255, .72); }
.am-hero-name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: #fff; overflow-wrap: anywhere; }
.am-hero-main { grid-area: main; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.am-hero-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.am-hero-num { font-size: clamp(56px, 9vw, 92px); font-weight: 800; letter-spacing: -0.05em; line-height: .9; color: #fff; text-shadow: 0 8px 40px rgba(3, 195, 227, .35); }
.am-hero-unit { font-size: 20px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.am-hero-delta { align-self: center; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(52, 211, 153, .18); color: #a7f3d0; box-shadow: inset 0 0 0 1px rgba(167, 243, 208, .25); }
.am-hero-delta.is-down { background: rgba(251, 146, 60, .18); color: #fed7aa; box-shadow: inset 0 0 0 1px rgba(254, 215, 170, .25); }
.am-hero-trend { width: min(340px, 100%); color: #7ee7fb; }
.am-hero-trend-lbl { display: block; font-size: 12px; color: rgba(255, 255, 255, .62); margin-bottom: 6px; }
.am-hero-trend .am-sparkwrap { height: 64px; }
.am-hero-foot { grid-area: foot; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.am-hero-note { font-size: 14px; color: rgba(255, 255, 255, .8); }
.am-hero-acts { grid-area: acts; display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
	.am-hero { grid-template-columns: 1fr; grid-template-areas: "head" "main" "foot" "acts"; padding: 20px 18px 18px; border-radius: 22px; }
	.am-hero-acts { justify-content: flex-start; }
	.am-hero-acts .am-btn { flex: 1 1 auto; }
}

/* Faces */
.am-faces { display: flex; padding-left: 10px; flex-wrap: wrap; row-gap: 6px; }
.am-face { position: relative; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #2a2b45; color: #fff; font-weight: 700; letter-spacing: -0.01em; }
.am-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.am-face--ini { background: linear-gradient(145deg, hsl(var(--am-h, 220) 70% 62%), hsl(calc(var(--am-h, 220) + 40) 65% 45%)); }
.am-faces .am-face { margin-left: -10px; box-shadow: 0 0 0 3px #17182c; transition: transform .2s ease; }
.am-faces .am-face:hover { transform: translateY(-3px); z-index: 2; }
.am-face--more { width: 40px; height: 40px; font-size: 13px; background: rgba(255, 255, 255, .16); }
.am-face--belt { overflow: visible; }
.am-face--belt img { border-radius: 50%; }
.am-face--belt::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--am-ring); pointer-events: none; }

/* Buttons */
.am-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 13px; font-weight: 650; font-size: 14px; white-space: nowrap; border: 0; cursor: pointer; transition: transform .15s ease; }
.am-btn:active { transform: scale(.98); }
.am-ov .am-btn--light, .am-ov .am-btn--light:hover { background: #fff; color: #0c0d1d; }
.am-ov .am-btn--glass, .am-ov .am-btn--glass:hover { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.am-ov .am-btn--ink, .am-ov .am-btn--ink:hover { background: var(--bc-ink); color: var(--bc-surface); }
.am-ov .am-btn--soft, .am-ov .am-btn--soft:hover { background: var(--bc-surface-2); color: var(--bc-ink); }
.am-btn:focus-visible, .am-alert:focus-visible, .am-link:focus-visible { outline: 2px solid var(--am-c); outline-offset: 2px; }

/* Setup */
.am-setup { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 20px; background: var(--bc-surface); box-shadow: 0 0 0 1px var(--bc-line); }
.am-setup-main { flex: 1; min-width: 0; }
.am-setup h3 { font-size: 16px; color: var(--bc-ink); }
.am-setup p { font-size: 14px; color: var(--bc-muted); margin-top: 2px; }
.am-setup-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 10px 0 0; }
.am-setup-steps li { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; background: var(--bc-surface-2); color: var(--bc-muted); }
.am-setup-steps li.is-done { background: color-mix(in srgb, var(--am-c) 16%, var(--bc-surface)); color: var(--am-c); }
@media (max-width: 560px) { .am-setup { flex-wrap: wrap; } .am-setup > .am-btn { flex: 1 1 100%; } }

/* Ring */
.am-ring { position: relative; width: 64px; height: 64px; display: inline-grid; place-items: center; flex: none; }
.am-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.am-ring circle { fill: none; stroke-width: 7; }
.am-ring-track { stroke: var(--bc-surface-2); }
.am-ring-val { stroke: var(--am-violet); stroke-linecap: round; }
.am-ring b { font-size: 17px; font-weight: 800; color: var(--bc-ink); letter-spacing: -0.03em; }
.am-ring b small { font-size: 10px; font-weight: 700; color: var(--bc-muted); margin-left: 1px; }

/* Alerts */
.am-alerts { display: flex; gap: 8px; flex-wrap: wrap; }
.am-alert { display: inline-flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--bc-ink); background: color-mix(in srgb, var(--tone) 10%, var(--bc-surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 26%, transparent); flex: 1 1 260px; }
.am-ov .am-alert, .am-ov .am-alert:hover { color: var(--bc-ink); }
.am-alert > i:first-child { color: var(--tone); }
.am-alert-go { margin-left: auto; font-size: 11px; color: var(--bc-muted); }
.am-alert--red { --tone: #dc2626; } .am-alert--amber { --tone: #d97706; } .am-alert--cyan { --tone: var(--am-c); }

/* KPI tiles */
.am-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1180px) { .am-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .am-tiles { grid-template-columns: 1fr; } }
.am-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 14px; border-radius: 20px; background: var(--bc-surface); box-shadow: 0 0 0 1px var(--bc-line); min-width: 0; }
.am-tile-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.am-tile-icon { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; color: var(--t); background: color-mix(in srgb, var(--t) 14%, var(--bc-surface)); flex: none; }
.am-tile-lbl { font-size: 13px; font-weight: 600; color: var(--bc-ink-2); }
.am-tile-val { font-size: 28px; font-weight: 800; letter-spacing: -0.035em; color: var(--bc-ink); line-height: 1.1; overflow-wrap: anywhere; }
.am-tile-sub { font-size: 12.5px; color: var(--bc-muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.am-tile-chart { margin-top: auto; padding-top: 12px; height: 46px; color: var(--am-c); box-sizing: content-box; }
.am-tile-chart--c2 { color: var(--am-c2); }
.am-tile-ringrow { display: flex; gap: 12px; align-items: center; margin-top: 2px; }
.am-tile-ringrow p { font-size: 12.5px; line-height: 1.45; color: var(--bc-muted); }
.am-delta { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--bc-surface-2); color: var(--bc-ink-2); white-space: nowrap; }
.am-delta i { font-size: 9px; }
.am-delta.is-up { background: color-mix(in srgb, #16a34a 14%, var(--bc-surface)); color: #15803d; }
.am-delta.is-down { background: color-mix(in srgb, #dc2626 12%, var(--bc-surface)); color: #b91c1c; }
html[data-theme="dark"] .am-delta.is-up { color: #6ee7b7; }
html[data-theme="dark"] .am-delta.is-down { color: #fca5a5; }

/* Sparkline + mini bars */
.am-sparkwrap { position: relative; display: block; width: 100%; height: 100%; }
.am-spark { display: block; width: 100%; height: 100%; overflow: visible; }
.am-spark-dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); pointer-events: none; }
.am-hero .am-spark-dot { box-shadow: 0 0 0 4px rgba(126, 231, 251, .25), 0 0 16px 2px rgba(126, 231, 251, .6); }
.am-minibars { display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.am-minibar { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.am-minibar i { display: block; width: 100%; border-radius: 4px 4px 1px 1px; background: currentColor; opacity: .38; transition: opacity .15s; }
.am-minibar.is-last i, .am-minibar:hover i { opacity: 1; }

/* Cards */
.am-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 900px) { .am-grid { grid-template-columns: 1fr; } }
.am-card { padding: 18px 18px 16px; border-radius: 22px; background: var(--bc-surface); box-shadow: 0 0 0 1px var(--bc-line); min-width: 0; }
.am-card--wide { grid-column: 1 / -1; }
.am-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.am-card-head h3 { font-size: 16px; font-weight: 700; color: var(--bc-ink); letter-spacing: -0.01em; }
.am-card-head p { font-size: 13px; color: var(--bc-muted); margin-top: 2px !important; }
.am-card-figure { text-align: right; }
.am-card-figure b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--bc-ink); }
.am-card-figure span { font-size: 12px; color: var(--bc-muted); }
.am-card-foot { font-size: 12px; color: var(--bc-muted); margin-top: 10px !important; }
.am-link { font-size: 13px; font-weight: 600; color: var(--bc-accent); white-space: nowrap; }
.am-empty { text-align: center; padding: 34px 20px; }
.am-empty > i { font-size: 30px; color: var(--am-c); margin-bottom: 10px; }
.am-empty p { color: var(--bc-muted); font-size: 14px; max-width: 420px; margin: 6px auto 16px !important; }
.am-empty-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* Area chart: HTML labels around a stretched SVG plot */
.am-area { margin: 0; position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: 220px 24px; }
@media (max-width: 640px) { .am-area { grid-template-rows: 170px 24px; } }
.am-area-y { position: relative; }
.am-area-y span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; color: var(--bc-muted); white-space: nowrap; }
.am-area-plot { position: relative; min-width: 0; }
.am-area-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.am-area-x { grid-column: 2; position: relative; }
.am-area-x span { position: absolute; top: 8px; transform: translateX(-50%); font-size: 11px; color: var(--bc-muted); white-space: nowrap; }
.am-area-x span:last-child { transform: translateX(-100%); }
.am-area-x span:first-child { transform: none; }
.am-gl { stroke: var(--bc-line); stroke-width: 1; }
html[data-theme="dark"] .am-gl { stroke: rgba(255, 255, 255, .09); }
.am-area-line { fill: none; stroke: var(--am-c); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.am-area-hit { position: absolute; top: 0; bottom: 0; }
.am-cross-line { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--bc-ink-2); opacity: 0; transition: opacity .12s; pointer-events: none; }
.am-cross-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--am-c); box-shadow: 0 0 0 3px var(--bc-surface), 0 0 0 7px color-mix(in srgb, var(--am-c) 22%, transparent); pointer-events: none; transition: left .12s ease, top .12s ease; }
.am-area-plot.is-hover .am-cross-line { opacity: .4; }

/* Heatmap */
.am-heat { display: grid; grid-template-columns: 34px repeat(var(--am-cols), minmax(0, 1fr)); gap: 3px; align-items: center; }
.am-heat-h { font-size: 10.5px; color: var(--bc-muted); height: 14px; white-space: nowrap; overflow: visible; }
.am-heat-d { font-size: 11.5px; color: var(--bc-muted); }
.am-heat-c { display: block; aspect-ratio: 1; min-height: 12px; max-height: 30px; border-radius: 4px; background: var(--bc-surface-2); }
.am-heat-c[data-l="1"] { background: color-mix(in srgb, var(--am-c) 18%, var(--bc-surface)); }
.am-heat-c[data-l="2"] { background: color-mix(in srgb, var(--am-c) 36%, var(--bc-surface)); }
.am-heat-c[data-l="3"] { background: color-mix(in srgb, var(--am-c) 56%, var(--bc-surface)); }
.am-heat-c[data-l="4"] { background: color-mix(in srgb, var(--am-c) 78%, var(--bc-surface)); }
.am-heat-c[data-l="5"] { background: var(--am-c); }
.am-heat .am-heat-c:hover { box-shadow: 0 0 0 2px var(--bc-ink); }
.am-heat-legend { display: flex; align-items: center; gap: 3px; justify-content: flex-end; margin-top: 10px; font-size: 11px; color: var(--bc-muted); }
.am-heat-legend .am-heat-c { width: 12px; min-height: 0; }
.am-heat-legend span:first-child { margin-right: 4px; } .am-heat-legend span:last-child { margin-left: 4px; }

/* Belt rack */
.am-belts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.am-belts li { display: grid; grid-template-columns: 46px minmax(70px, 130px) 1fr 34px; gap: 10px; align-items: center; font-size: 13.5px; }
.am-belt { position: relative; height: 14px; border-radius: 4px; background: var(--belt); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), inset 0 -3px 0 rgba(0, 0, 0, .08); }
.am-belt i { position: absolute; right: 7px; top: 0; bottom: 0; width: 12px; background: #17171c; }
html[data-theme="dark"] .am-belt i { box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.am-belts-name { color: var(--bc-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-belts-bar { height: 8px; border-radius: 999px; background: var(--bc-surface-2); overflow: hidden; }
.am-belts-bar i { display: block; height: 100%; border-radius: 999px; background: var(--belt); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.am-belts-n { text-align: right; font-weight: 700; color: var(--bc-ink); }

/* Lists: most on the mats, people, classes */
.am-top, .am-people, .am-classes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.am-top li, .am-people li, .am-classes li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.am-top-pos { width: 18px; text-align: center; font-weight: 800; font-size: 14px; color: var(--bc-muted); flex: none; }
.am-top-main, .am-people-main { flex: 1; min-width: 0; display: grid; gap: 5px; }
.am-top-main a, .am-people-main a, .am-people-main b { color: var(--bc-ink); font-weight: 650; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-people-main small { font-size: 12.5px; color: var(--bc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-top-bar { height: 6px; border-radius: 999px; background: var(--bc-surface-2); overflow: hidden; }
.am-top-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--am-c), var(--am-violet)); }
.am-top-n { text-align: right; font-weight: 800; font-size: 18px; color: var(--bc-ink); line-height: 1; letter-spacing: -0.02em; }
.am-top-n small { display: block; font-size: 11px; font-weight: 500; color: var(--bc-muted); letter-spacing: 0; margin-top: 3px; }
.am-classes-time { flex: none; min-width: 52px; padding: 0 6px; box-sizing: border-box; white-space: nowrap; /* min-width: "6:30 PM" on a 12-hour clock */ height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--am-c); background: color-mix(in srgb, var(--am-c) 12%, var(--bc-surface)); }

/* Tooltip (scripts/bc-am.js) */
.am-tip { position: fixed; z-index: 9999; pointer-events: none; padding: 7px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(14, 15, 30, .94); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .1s; }
.am-tip.is-on { opacity: 1; }
html[data-theme="dark"] .am-tip { background: #f1f1f5; color: #0b0b10; }

/* Entrance: one orchestrated reveal of the hero number and the lines */
@media (prefers-reduced-motion: no-preference) {
	.am-hero-num { animation: am-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
	.am-area-plot svg, .am-hero .am-spark { animation: am-wipe 1.3s .15s cubic-bezier(.4, 0, .2, 1) both; }
}
@keyframes am-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes am-wipe { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -2% -20% 0); } }
html[data-theme="dark"] .am-ov .am-top-main a, html[data-theme="dark"] .am-ov .am-people-main a, html[data-theme="dark"] .am-ov .am-alert { color: var(--bc-ink); }
html[data-theme="dark"] .am-ov .am-link { color: var(--bc-accent); }

/* Management pages: KPI tiles, charts and lists in the overview style */
.bc-am-kpi { background: var(--bc-surface); box-shadow: 0 0 0 1px var(--bc-line); border-radius: 18px; }
.bc-am-kpi-label { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--bc-ink-2); }
.bc-am-kpi-value { font-size: 26px; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.bc-am-table th { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; }
.bc-am-chart-bar { background: linear-gradient(180deg, var(--am-c), color-mix(in srgb, var(--am-c) 70%, var(--am-violet))); }
.am-sub { font-size: 14px; font-weight: 700; color: var(--bc-ink); margin: 22px 0 10px; }
.am-details { margin-top: 14px; }
.am-details summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--bc-accent); margin-bottom: 10px; }
.am-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--bc-ink-2); margin-bottom: 10px; }
.am-legend span { display: inline-flex; align-items: center; gap: 6px; }
.am-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.am-flow-cols { display: flex; gap: 6px; height: 200px; }
.am-flow-col { flex: 1; min-width: 0; display: grid; grid-template-rows: 1fr 1fr 20px; cursor: default; }
.am-flow-up, .am-flow-down { display: flex; justify-content: center; }
.am-flow-up { align-items: flex-end; border-bottom: 1px solid var(--bc-line); }
.am-flow-down { align-items: flex-start; }
.am-flow-up i, .am-flow-down i { display: block; width: min(100%, 28px); }
.am-flow-up i { background: var(--am-c); border-radius: 4px 4px 0 0; }
.am-flow-down i { background: var(--am-c2); border-radius: 0 0 4px 4px; margin-top: 2px; }
.am-flow-col:hover i { filter: brightness(1.1); }
.am-flow-lbl { font-size: 11px; color: var(--bc-muted); text-align: center; padding-top: 4px; white-space: nowrap; overflow: hidden; }
.am-share { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.am-share li { display: grid; gap: 6px; }
.am-share-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.am-share-top b { color: var(--bc-ink); font-weight: 650; }
.am-share-top span { color: var(--bc-muted); }
.am-share .am-top-bar { height: 8px; }
.bc-set-main .am-heat, .bc-set-main .am-heat-legend { max-width: 720px; }

/* Member page hero (updateacademy_am_member.php) */
.am-hero--member { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id acts" "stats stats"; margin-bottom: 16px; }
.am-mhero-id { grid-area: id; display: flex; gap: 18px; align-items: center; min-width: 0; }
.am-mhero-id .am-face--belt::after { box-shadow: 0 0 0 3px var(--am-ring); inset: -5px; }
.am-mhero-id .am-face { box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
.am-mhero-chips { margin-top: 8px; }
.am-mhero-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: #a5f3fc !important; }
.am-mstats { grid-area: stats; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.am-mstat { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.am-mstat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: #fff; line-height: 1.1; }
.am-mstat span { font-size: 12px; color: rgba(255, 255, 255, .7); }
@media (max-width: 640px) { .am-hero--member { grid-template-columns: 1fr; grid-template-areas: "id" "stats" "acts"; } .am-mhero-id { gap: 14px; } }
.am-mtrain { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; align-items: end; margin-bottom: 18px; }
@media (max-width: 760px) { .am-mtrain { grid-template-columns: 1fr; } }
.am-mtrain-cal { overflow-x: auto; }
.am-cal { display: grid; grid-template-columns: 30px repeat(var(--am-weeks), minmax(10px, 1fr)); gap: 3px; min-width: 380px; }
.am-cal-m { font-size: 10.5px; color: var(--bc-muted); white-space: nowrap; overflow: visible; height: 14px; }
.am-cal-d { font-size: 10.5px; color: var(--bc-muted); line-height: 1; }
.am-cal-c { min-height: 0; max-height: 18px; }
.am-cal-c.is-future { background: transparent; }
.am-mtrain-dow .am-tile-chart { color: var(--am-violet); padding-top: 0; }
.am-dow-lbl { display: flex; gap: 3px; margin-top: 4px; }
.am-dow-lbl span { flex: 1; text-align: center; font-size: 10.5px; color: var(--bc-muted); }
.am-hero--member { grid-template-areas: "id" "stats"; grid-template-columns: 1fr; }
.am-mhero-chips .bc-set-chip { background: rgba(255, 255, 255, .14) !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2) !important; }

/* Donut (payments by method) */
.am-donut { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.am-donut-ring { position: relative; width: 150px; height: 150px; flex: none; }
.am-donut-ring svg { width: 100%; height: 100%; }
.am-donut-ring circle { fill: none; stroke-width: 13; cursor: default; }
.am-donut-ring circle:hover { stroke-width: 15; }
.am-donut-track { stroke: var(--bc-surface-2); }
.am-donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.am-donut-c b { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--bc-ink); line-height: 1; }
.am-donut-c span { font-size: 12px; color: var(--bc-muted); }
.am-donut-leg { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; min-width: 180px; }
.am-donut-leg li { display: grid; grid-template-columns: 10px 1fr auto 38px; gap: 8px; align-items: center; font-size: 13.5px; }
.am-donut-leg i { width: 10px; height: 10px; border-radius: 3px; }
.am-donut-leg span { color: var(--bc-ink-2); }
.am-donut-leg b { color: var(--bc-ink); font-weight: 700; }
.am-donut-leg small { text-align: right; color: var(--bc-muted); font-size: 12px; }
.am-grid--pay { margin-bottom: 16px; }
.am-grid--pay .am-tile-chart { color: var(--am-c); }

/* Bare public pages (header.php $GLOBALS['bcBare']): signup, pay, sign. The academy is the brand:
   its cover photo fills the stage at the top, the card floats over it, Beltchecker only in the footer. */
body.bc-bare { background: var(--bc-bg, #f4f4f7); }
.bc-bare-content { padding: 0 !important; }
.bc-amp-page { position: relative; min-height: 100vh; min-height: 100dvh; padding: 56px 0 24px; isolation: isolate; }
.bc-amp-stage { position: absolute; inset: 0 0 auto 0; height: 360px; z-index: -1; overflow: hidden; background: #0c0d1d; }
.bc-amp-stage::before { content: ""; position: absolute; inset: -30% -10% 0 -10%; background:
	radial-gradient(40% 60% at 15% 40%, rgba(3, 195, 227, .55), transparent 70%),
	radial-gradient(40% 70% at 55% 10%, rgba(91, 75, 209, .7), transparent 70%),
	radial-gradient(35% 60% at 90% 45%, rgba(224, 131, 90, .5), transparent 70%); filter: blur(14px); animation: am-drift 18s ease-in-out infinite alternate; }
.bc-amp-page.has-cover .bc-amp-stage::before { inset: 0; filter: none; animation: none; background: var(--amp-cover) center var(--amp-cover-y, 50%) / cover no-repeat; transform: scale(1.04); }
.bc-amp-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 13, 29, .25), rgba(12, 13, 29, .55) 60%, var(--bc-bg, #f4f4f7)); }
.bc-amp-page.has-cover .bc-amp-stage::after { background: linear-gradient(180deg, rgba(12, 13, 29, .35), rgba(12, 13, 29, .6) 55%, var(--bc-bg, #f4f4f7)); }
html[data-theme="dark"] .bc-amp-stage::after { background: linear-gradient(180deg, rgba(12, 13, 29, .3), rgba(12, 13, 29, .6) 55%, var(--bc-bg, #0b0b10)); }
@media (prefers-reduced-motion: reduce) { .bc-amp-stage::before { animation: none; } }
.bc-amp-page .bc-amp { margin-top: 0; }
.bc-amp-page .bc-amp-card { box-shadow: 0 30px 80px -30px rgba(12, 13, 29, .55), 0 0 0 1px var(--bc-line); border-radius: 26px; }
.bc-amp-page .bc-amp-cover { height: 64px; background: none; }
.bc-amp-page .bc-amp-logo { margin-top: -52px; width: 96px; height: 96px; border-radius: 26px; box-shadow: 0 0 0 5px var(--bc-surface), 0 16px 36px -14px rgba(12, 13, 29, .6); }
.bc-amp-page .bc-amp-body { padding: 16px 26px 28px; }
.bc-amp-page h1 { font-size: 28px; letter-spacing: -0.03em; }
.bc-amp-page .bc-amp-kicker { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 700; color: var(--bc-accent); }
.bc-amp-page .bc-amp-plan { border-radius: 18px; padding: 16px 18px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.bc-amp-page .bc-amp-plan:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -16px rgba(12, 13, 29, .4); }
.bc-amp-page .bc-amp-plan:has(input:checked) { border-color: var(--bc-accent); box-shadow: 0 0 0 2px var(--bc-accent), 0 14px 30px -18px rgba(91, 75, 209, .6); background: color-mix(in srgb, var(--bc-accent) 5%, var(--bc-surface)); }
.bc-amp-page .bc-amp-plan-price { font-size: 18px; }
.bc-amp-page .bc-amp-btn--primary, .bc-amp-page .bc-amp-btn--primary:hover { background: linear-gradient(115deg, #0891b2, #5b4bd1 55%, #9a3ea8); color: #fff; box-shadow: 0 12px 26px -12px rgba(91, 75, 209, .7); }
.bc-amp-page .bc-amp-input { border-radius: 14px; min-height: 50px; background: var(--bc-surface); }
.bc-amp-page .bc-amp-section { border-top: 0; padding-top: 8px; }
.bc-amp-page .bc-amp-section h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.bc-amp-foot { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 18px 12px 0; font-size: 12.5px; color: var(--bc-muted); }
.bc-amp-foot a { color: var(--bc-muted) !important; text-decoration: none; font-weight: 600; }
.bc-amp-foot a:hover { color: var(--bc-ink) !important; }
@media (max-width: 520px) { .bc-amp-page { padding-top: 34px; } .bc-amp-page .bc-amp-body { padding: 14px 18px 22px; } .bc-amp-stage { height: 280px; } }
.bc-amp-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--bc-surface-2); margin-bottom: 4px; }
.bc-amp-seg label { position: relative; cursor: pointer; }
.bc-amp-seg input { position: absolute; opacity: 0; pointer-events: none; }
.bc-amp-seg span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 12px; font-weight: 650; font-size: 14.5px; color: var(--bc-ink-2); transition: background .15s, box-shadow .15s; }
.bc-amp-seg input:checked + span { background: var(--bc-surface); color: var(--bc-ink); box-shadow: 0 4px 14px -8px rgba(12, 13, 29, .4), 0 0 0 1px var(--bc-line); }
.bc-amp-seg input:focus-visible + span { box-shadow: var(--bc-ring); }
.bc-amp-page .bc-amp-form { gap: 18px; }
.bc-amp-page .bc-amp-input { font-size: 16px !important; }
.bc-amp-page .bc-amp-field > span { font-size: 13.5px; }
html[data-theme="dark"] .bc-amp-page .bc-amp-logo { box-shadow: 0 0 0 5px var(--bc-surface), 0 0 0 6px rgba(255, 255, 255, .1), 0 16px 36px -14px rgba(0, 0, 0, .8); }
.am-hero--member .am-mhero-id form, .am-hero--member .am-mhero-id .bc-am-inline + * { display: inline-flex; margin: 8px 6px 0 0; }
.am-hero--member .bc-set-btn { min-height: 32px !important; padding: 0 12px !important; font-size: 13px !important; background: rgba(255, 255, 255, .1) !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22) !important; }
.am-hero--member .am-mhero-link { display: block; }
