@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root,
[data-theme="light"] {
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --canvas: #fafafa;
  --surface: #ffffff;
  --surface-muted: #f1f1f4;
  --surface-raised: #ffffff;
  --border: #e0e0e5;
  --border-strong: #b3b3bf;
  --ink: #18181b;
  --muted: #62626d;
  --faint: #8b8b96;
  --accent: #202024;
  --accent-ink: #ffffff;
  --accent-soft: rgba(32, 32, 36, .06);
  --link: #2f78c8;
  --success: #2d7851;
  --success-ink: #22603f;
  --success-soft: #eaf5ee;
  --warning: #936511;
  --warning-ink: #7a5109;
  --warning-soft: #fbf2df;
  --danger: #b53741;
  --danger-ink: #a42832;
  --danger-soft: #fbeeee;
  --info: #2f78c8;
  --info-ink: #1d4f8a;
  --info-soft: #e3eefa;
  --focus: #586fa5;
  --shadow: 0 1px 2px rgba(24, 24, 27, .04), 0 18px 48px -36px rgba(24, 24, 27, .22);
  --shadow-soft: 0 1px 2px rgba(24, 24, 27, .04);
  --glow: rgba(47, 120, 200, .08);
  --hero: linear-gradient(135deg, #0c1424 0%, #17243b 52%, #1d2c49 100%);
  --header-h: 64px;
  --sidebar-w: 276px;
  color-scheme: light;
}

[data-theme="dark"] {
  --canvas: #111114;
  --surface: #19191e;
  --surface-muted: #222229;
  --surface-raised: #1d1d23;
  --border: #303038;
  --border-strong: #60606e;
  --ink: #f2f2f5;
  --muted: #a0a0ad;
  --faint: #7f7f8c;
  --accent: #ededf1;
  --accent-ink: #18181b;
  --accent-soft: rgba(237, 237, 241, .08);
  --link: #6aa9ec;
  --success: #72c99b;
  --success-ink: #91dfb5;
  --success-soft: #172c23;
  --warning: #d9b36b;
  --warning-ink: #e6c484;
  --warning-soft: #302718;
  --danger: #e88b94;
  --danger-ink: #f3a5ad;
  --danger-soft: #331f24;
  --info: #6aa9ec;
  --info-ink: #a9cff7;
  --info-soft: #15283d;
  --focus: #9eb9ee;
  --glow: rgba(106, 169, 236, .1);
  --shadow: 0 1px 0 rgba(255,255,255,.03), 0 34px 90px -54px rgba(0,0,0,.92);
  --shadow-soft: 0 1px 0 rgba(255,255,255,.03);
  --hero: linear-gradient(135deg, #0a101c 0%, #111d31 52%, #172641 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { font-size: 15.5px; background: var(--canvas); scroll-behavior: smooth; }
html, body { min-height: 100%; }
body.af-body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: none; }
h1, h2, h3, h4, h5 { color: inherit; letter-spacing: -.015em; }
h1 { font-size: 1.62rem; line-height: 1.2; font-weight: 600; }
h2 { font-size: 1.28rem; line-height: 1.3; font-weight: 600; }
h3 { font-size: 1.04rem; line-height: 1.35; font-weight: 600; }
p { margin: 0; }
code, pre, kbd { font-family: var(--font-mono); }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

.af-container { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 22px; padding-right: 22px; }
.af-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; }

/* Application shell */
.af-shell { display: flex; width: 100%; min-height: 100vh; }
.af-sidebar {
  position: sticky;
  top: 0;
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 14px 16px;
  background: var(--canvas);
  z-index: 60;
}
.af-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 8px; }
.af-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.af-brand:hover { text-decoration: none; }
.af-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow-soft);
  flex: none;
}
.af-brand-copy { min-width: 0; line-height: 1.15; }
.af-brand-name { display: block; color: var(--ink); font-size: 15px; font-weight: 650; letter-spacing: -.02em; white-space: nowrap; }
.af-brand-sub { display: block; color: var(--faint); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-top: 2px; }
.af-sidebar-close { display: none !important; }
.af-sidebar-toggle { display: none !important; }
@media (max-width: 1023px) {
  .af-sidebar-close { display: inline-flex !important; }
  .af-sidebar-toggle { display: inline-flex !important; }
}
.af-workspace {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 6px 4px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}
.af-workspace .icon { color: var(--faint); }
.af-workspace strong { color: var(--ink); font-weight: 600; }
.af-sidebar-search { position: relative; margin: 0 6px 2px; }
.af-sidebar-search .icon { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.af-sidebar-search input {
  width: 100%;
  height: 34px;
  padding: 0 10px 0 31px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
}
.af-sidebar-search input::placeholder { color: var(--faint); }
.af-sidebar-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 0 12px; }
.af-nav-group { margin-top: 16px; }
.af-nav-group[hidden] { display: none; }
.af-nav-group-label {
  padding: 0 12px 6px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.af-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 7px 10px;
  margin: 1px 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13.25px;
  font-weight: 500;
  line-height: 1.35;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.af-nav-link:hover { background: var(--surface-muted); color: var(--ink); text-decoration: none; }
.af-nav-link.is-active { background: var(--surface); border-color: var(--border); color: var(--ink); box-shadow: var(--shadow-soft); font-weight: 600; }
.af-nav-link .icon, .af-nav-link .fa-fw { color: var(--faint); width: 18px; flex: none; text-align: center; }
.af-nav-link.is-active .icon, .af-nav-link.is-active .fa-fw { color: var(--ink); }
.af-nav-link .af-nav-count { margin-left: auto; color: var(--faint); font-size: 11px; font-weight: 600; }
.af-nav-item[hidden] { display: none; }
.af-sidebar-foot { border-top: 1px solid var(--border); padding: 12px 6px 0; display: flex; flex-direction: column; gap: 8px; }
.af-theme-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; padding: 0 4px; }
.af-help-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 11px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}
.af-help-card strong { display: block; color: var(--ink); font-size: 12px; margin-bottom: 2px; }
.af-help-card a { color: var(--ink); font-weight: 600; }

.af-main {
  flex: 1;
  min-width: 0;
  min-height: calc(100vh - 16px);
  margin: 8px 8px 8px 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: var(--shadow);
}
.af-topbar {
  position: sticky;
  top: 8px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: var(--header-h);
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  border-radius: 15px 15px 0 0;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
}
.af-topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.af-topbar-title { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.af-topbar-title strong { color: var(--ink); font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-breadcrumb { display: flex; align-items: center; gap: 5px; color: var(--faint); font-size: 11px; }
.af-breadcrumb a { color: var(--faint); }
.af-breadcrumb i { font-size: 8px; opacity: .6; }
.af-topbar-actions { display: flex; align-items: center; gap: 5px; flex: none; }
.af-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.af-icon-btn:hover { background: var(--surface-muted); color: var(--ink); border-color: var(--border); }
.af-icon-btn .fa-solid, .af-icon-btn .fas { font-size: 13px; }
.af-ico-sun, .af-ico-moon { display: none; }
[data-theme-mode="light"] .af-ico-sun { display: inline-block; }
[data-theme-mode="dark"] .af-ico-moon { display: inline-block; }

.af-user-menu { position: relative; }
.af-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 8px 0 5px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.af-user-btn:hover { background: var(--surface-muted); border-color: var(--border); color: var(--ink); }
.af-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  flex: none;
}
.af-user-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 550; color: var(--ink); }
.af-user-btn .fa-chevron-down { font-size: 9px; color: var(--faint); }
#user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  width: 210px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
  z-index: 70;
}
#user-dropdown a, #user-dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}
#user-dropdown a:hover, #user-dropdown button:hover { background: var(--surface-muted); color: var(--ink); }
#user-dropdown i { width: 15px; text-align: center; color: var(--faint); }
#user-dropdown .af-dd-sep { height: 1px; margin: 4px 5px; background: var(--border); }
#user-dropdown .af-dd-danger { color: var(--danger-ink); }
#user-dropdown .af-dd-danger i { color: var(--danger); }
.af-dd-head { padding: 8px 9px 7px; }
.af-dd-head strong { display: block; color: var(--ink); font-size: 12.5px; font-weight: 600; }
.af-dd-head span { display: block; color: var(--faint); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.af-content { flex: 1; width: 100%; padding: 28px 32px 40px; }
.af-content > section[class~="py-8"] { padding-top: 0 !important; padding-bottom: 0 !important; background: transparent !important; min-height: 0 !important; }
.af-content .container { width: 100%; max-width: none; padding-left: 0; padding-right: 0; }
.af-content .mx-auto.max-w-7xl { max-width: none; }
.af-app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 32px 18px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 11px;
}
.af-app-footer a { color: var(--muted); }
.af-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(8, 10, 16, .45);
  backdrop-filter: blur(2px);
}
body.nav-open { overflow: hidden; }

/* Public shell */
.af-public-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.af-pub-top {
  background: #101827;
  color: rgba(255,255,255,.78);
  font-size: 11px;
}
[data-theme="dark"] .af-pub-top { background: #0a0d14; }
.af-pub-top .af-container { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 30px; }
.af-pub-top a { color: rgba(255,255,255,.78); }
.af-pub-top a:hover { color: #fff; }
.af-pub-top-links { display: flex; align-items: center; gap: 18px; }
.af-pub-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.af-pub-nav { display: flex; align-items: center; gap: 1px; }
.af-pub-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12.75px;
  font-weight: 500;
  white-space: nowrap;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.af-pub-link:hover, .af-pub-link.is-active { color: var(--ink); background: var(--surface-muted); text-decoration: none; }
.af-pub-link i { font-size: 8px; color: var(--faint); }
.af-pub-menu { position: relative; }
.af-pub-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  width: 360px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 60;
}
.af-pub-menu:hover .af-pub-panel, .af-pub-menu:focus-within .af-pub-panel { opacity: 1; visibility: visible; transform: none; }
.af-pub-panel a { display: flex; align-items: flex-start; gap: 10px; padding: 8px; border-radius: 8px; }
.af-pub-panel a:hover { background: var(--surface-muted); text-decoration: none; }
.af-pub-panel .af-pub-ico {
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 12px;
}
.af-pub-panel strong { display: block; color: var(--ink); font-size: 12.5px; font-weight: 600; }
.af-pub-panel span { display: block; color: var(--faint); font-size: 11px; line-height: 1.35; }
.af-pub-panel-foot { display: block; margin-top: 5px; padding: 8px; border-top: 1px solid var(--border); border-radius: 0 0 7px 7px; color: var(--muted); font-size: 11.5px; font-weight: 600; text-align: center; }
.af-pub-actions { display: flex; align-items: center; gap: 7px; flex: none; }
.af-public-main { flex: 1; }
.af-public-footer { border-top: 1px solid var(--border); background: var(--surface); }
.af-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding: 42px 0 34px; }
.af-footer-brand p { max-width: 290px; margin-top: 10px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.af-footer-col h4 { margin: 0 0 10px; color: var(--ink); font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.af-footer-col a { display: block; padding: 3px 0; color: var(--muted); font-size: 12.5px; }
.af-footer-col a:hover { color: var(--ink); }
.af-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0 20px; border-top: 1px solid var(--border); color: var(--faint); font-size: 11.5px; }
.af-footer-bottom a { color: var(--muted); }
.af-mobile-panel { border-top: 1px solid var(--border); background: var(--surface); max-height: calc(100vh - 94px); overflow-y: auto; }
.af-mobile-panel .af-container { padding-top: 12px; padding-bottom: 18px; }
.af-mobile-group { padding: 8px 0 2px; color: var(--faint); font-size: 10px; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; }
.af-mobile-link { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 7px; color: var(--muted); font-size: 13px; }
.af-mobile-link:hover { background: var(--surface-muted); color: var(--ink); }
.af-pub-burger { display: none; }

/* Auth */
.af-auth-body { background: var(--canvas); }
.af-auth-main { min-height: 100vh; display: flex; flex-direction: column; }
.af-auth-wrap { width: 100%; max-width: 1100px; margin: auto; padding: 28px 20px; }
.af-auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.02fr .98fr; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.af-auth-visual { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 38px; background: radial-gradient(circle at 80% 10%, rgba(47,120,200,.35), transparent 34%), var(--hero); color: #fff; }
.af-auth-visual::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.14) 1px, transparent 1px); background-size: 28px 28px; opacity: .3; pointer-events: none; }
.af-auth-visual > * { position: relative; z-index: 1; }
.af-auth-visual .af-brand-name, .af-auth-visual .af-brand-sub { color: #fff; }
.af-auth-visual .af-brand-sub { color: rgba(255,255,255,.55); }
.af-auth-visual .af-brand-mark { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.af-auth-title { max-width: 390px; margin-top: 70px; }
.af-auth-title h1 { color: #fff; font-size: 2.15rem; line-height: 1.12; font-weight: 600; letter-spacing: -.035em; }
.af-auth-title p { margin-top: 14px; color: rgba(255,255,255,.66); font-size: 13.5px; line-height: 1.65; }
.af-auth-points { display: grid; gap: 9px; margin-top: 28px; }
.af-auth-point { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.8); font-size: 12.5px; }
.af-auth-point i { color: #9fd0ff; font-size: 11px; }
.af-auth-form { display: flex; align-items: center; justify-content: center; padding: 38px 40px; }
.af-auth-card { width: 100%; max-width: 380px; }
.af-auth-card h2 { font-size: 1.42rem; letter-spacing: -.025em; }
.af-auth-card .af-auth-lead { margin-top: 5px; color: var(--muted); font-size: 12.5px; }
.af-auth-card .af-field { margin-top: 16px; }
.af-auth-links { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 12px; }
.af-auth-alt { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; text-align: center; }
.af-auth-alt a { font-weight: 600; color: var(--ink); }
.af-auth-back { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 18px; color: var(--muted); font-size: 11.5px; }

/* Typography helpers */
.af-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10.5px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.af-title { color: var(--ink); font-size: 1.65rem; line-height: 1.18; font-weight: 600; letter-spacing: -.03em; }
.af-subtitle { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.af-muted { color: var(--muted); }
.af-faint { color: var(--faint); }
.af-mono { font-family: var(--font-mono); }

/* Cards and surfaces */
.af-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-soft); }
.af-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--border); }
.af-card-head h2, .af-card-head h3 { margin: 0; font-size: 13.5px; font-weight: 600; }
.af-card-body { padding: 17px; }
.af-kpi { padding: 16px 17px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; box-shadow: var(--shadow-soft); }
.af-kpi-label { color: var(--muted); font-size: 11.5px; font-weight: 500; }
.af-kpi-value { margin-top: 4px; color: var(--ink); font-size: 1.65rem; line-height: 1.1; font-weight: 620; letter-spacing: -.035em; }
.af-kpi-note { margin-top: 4px; color: var(--faint); font-size: 10.5px; }
.af-divider { height: 1px; background: var(--border); border: 0; margin: 16px 0; }
.af-empty { padding: 44px 24px; text-align: center; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--surface-muted); }
.af-empty i { color: var(--faint); font-size: 26px; }
.af-empty h3 { margin-top: 12px; font-size: 14px; }
.af-empty p { max-width: 430px; margin: 5px auto 0; color: var(--muted); font-size: 12.5px; }

/* Buttons */
.af-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .12s ease;
}
.af-btn:hover { background: var(--surface-muted); text-decoration: none; }
.af-btn:active { transform: translateY(1px); }
.af-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.af-btn-primary:hover { background: var(--accent); color: var(--accent-ink); filter: brightness(.94); }
.af-btn-secondary { background: var(--surface); border-color: var(--border); color: var(--ink); }
.af-btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.af-btn-ghost:hover { background: var(--surface-muted); color: var(--ink); }
.af-btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
[data-theme="dark"] .af-btn-danger { color: #1a1114; }
.af-btn-danger:hover { filter: brightness(.95); color: #fff; }
[data-theme="dark"] .af-btn-danger:hover { color: #1a1114; }
.af-btn-sm { min-height: 28px; padding: 4px 9px; font-size: 11.5px; border-radius: 7px; }
.af-btn-lg { min-height: 42px; padding: 10px 18px; font-size: 13.5px; border-radius: 9px; }
.af-btn[disabled], .af-btn:disabled { opacity: .55; cursor: not-allowed; }
.af-btn .fa-solid, .af-btn .fas { font-size: 11px; }

/* Badges and status */
.af-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border: 1px solid transparent; border-radius: 999px; font-size: 10.5px; font-weight: 600; line-height: 1.45; white-space: nowrap; }
.af-badge i { font-size: 7px; }
.af-badge-success { background: var(--success-soft); color: var(--success-ink); border-color: color-mix(in srgb, var(--success) 18%, transparent); }
.af-badge-warning { background: var(--warning-soft); color: var(--warning-ink); border-color: color-mix(in srgb, var(--warning) 20%, transparent); }
.af-badge-danger { background: var(--danger-soft); color: var(--danger-ink); border-color: color-mix(in srgb, var(--danger) 18%, transparent); }
.af-badge-info { background: var(--info-soft); color: var(--info-ink); border-color: color-mix(in srgb, var(--info) 18%, transparent); }
.af-badge-neutral { background: var(--surface-muted); color: var(--muted); border-color: var(--border); }
.af-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex: none; }
.af-dot-success { background: var(--success); }
.af-dot-warning { background: var(--warning); }
.af-dot-danger { background: var(--danger); }
.af-dot-muted { background: var(--faint); }

/* Forms */
.af-body input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):not([type="file"]),
.af-body select,
.af-body textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.af-body input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):not([type="file"]):focus,
.af-body select:focus,
.af-body textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--glow);
}
.af-body input::placeholder, .af-body textarea::placeholder { color: var(--faint); }
.af-body input[type="checkbox"], .af-body input[type="radio"] { accent-color: var(--accent); width: 15px; height: 15px; }
.af-body label { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.af-field label, .af-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .01em; }
.af-field input, .af-field select, .af-field textarea { width: 100%; }
.af-hint { margin-top: 5px; color: var(--faint); font-size: 10.5px; font-weight: 400; line-height: 1.4; }
.af-check { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.af-check input { flex: none; margin-top: 2px; }
.af-body input.bg-gray-50, .af-body select.bg-gray-50, .af-body textarea.bg-gray-50 { background-color: var(--surface-muted); }

/* Tables */
.af-body table { width: 100%; border-collapse: separate; border-spacing: 0; }
.af-body thead th {
  padding: 9px 13px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--faint);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.af-body thead th:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.af-body thead th:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.af-body tbody td { padding: 11px 13px; border-bottom: 1px solid var(--border); color: var(--ink); font-size: 12.5px; vertical-align: middle; }
.af-body tbody tr:last-child td { border-bottom: 0; }
.af-body tbody tr:hover { background: var(--accent-soft); }
.af-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.af-table-wrap table { min-width: 640px; }

/* Alerts */
.af-alert {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 12px 38px 12px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.5;
}
.af-alert.hidden { display: none; }
.af-alert-success { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 26%, transparent); color: var(--success-ink); }
.af-alert-error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 26%, transparent); color: var(--danger-ink); }
.af-alert-warning { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 28%, transparent); color: var(--warning-ink); }
.af-alert-info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 26%, transparent); color: var(--info-ink); }
.af-alert-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: rgba(255,255,255,.45); color: currentColor; font-size: 12px; }
[data-theme="dark"] .af-alert-icon { background: rgba(255,255,255,.06); }
.af-alert-body { flex: 1; min-width: 0; padding-top: 2px; }
.af-alert-body ul { margin: 0; padding-left: 16px; }
.af-close-alert { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: currentColor; opacity: .7; cursor: pointer; }
.af-close-alert:hover { opacity: 1; background: rgba(255,255,255,.35); }
.af-flash-bar { position: absolute; bottom: 0; left: 0; height: 2px; background: currentColor; opacity: .35; }
.af-phone-prompt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; padding: 11px 13px; border: 1px solid var(--info-soft); border-radius: 10px; background: var(--info-soft); color: var(--info-ink); font-size: 12.5px; }
.af-phone-prompt form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.af-phone-prompt input { width: 190px; }

/* Modal */
#confirm-modal { position: fixed; inset: 0; z-index: 80; }
#confirm-modal .af-modal-backdrop { position: absolute; inset: 0; background: rgba(7, 9, 14, .55); backdrop-filter: blur(4px); }
.af-modal-card { position: relative; width: 100%; max-width: 410px; margin: 0 16px; padding: 19px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-raised); box-shadow: var(--shadow); }
.af-modal-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border-radius: 50%; }
.af-modal-icon.is-danger { background: var(--danger-soft); color: var(--danger); }
.af-modal-icon.is-info { background: var(--info-soft); color: var(--info); }
.af-modal-card h3 { margin: 0 0 3px; font-size: 14px; font-weight: 650; }
.af-modal-card p { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.af-modal-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 18px; }

/* Provision overlay */
#provision-overlay { position: fixed; inset: 0; z-index: 75; }
#provision-card { border: 1px solid var(--border); background: var(--surface-raised); color: var(--ink); }
#provision-card h3 { color: var(--ink); }
#provision-card .text-gray-500 { color: var(--muted) !important; }
#provision-card .bg-gray-200 { background: var(--border) !important; }
[data-theme="dark"] #provision-card .bg-blue-50 { background: var(--info-soft) !important; }
[data-theme="dark"] #provision-card .text-blue-600 { color: var(--info-ink) !important; }

/* Hero and marketing sections */
.af-hero { position: relative; overflow: hidden; padding: 72px 0 78px; background: radial-gradient(circle at 82% 8%, rgba(47,120,200,.3), transparent 32%), var(--hero); color: #fff; }
.af-hero-sm { padding: 58px 0 62px; }
.af-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.af-hero > * { position: relative; z-index: 1; }
.af-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.35rem); line-height: 1.06; font-weight: 600; letter-spacing: -.045em; }
.af-hero p { color: rgba(255,255,255,.67); font-size: 14.5px; line-height: 1.65; }
.af-hero-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; }
.af-hero-badge i { color: #9fd0ff; }
.af-hero-card { position: relative; isolation: isolate; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(255,255,255,.055); backdrop-filter: blur(12px); box-shadow: 0 22px 60px -36px rgba(0,0,0,.6); }
.af-hero-card > * { position: relative; z-index: 1; }
.af-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--af-orbit-angle),
    transparent 0deg 320deg,
    rgba(116,201,155,0) 320deg,
    rgba(116,201,155,.18) 336deg,
    rgba(116,201,155,.78) 352deg,
    #c7f7d8 358deg,
    #ffffff 359deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  filter: drop-shadow(0 0 4px rgba(116,201,155,.7));
  animation: afOrbit 6s linear infinite;
  pointer-events: none;
}
.af-hero-stat { padding: 13px 15px; border-bottom: 1px solid rgba(255,255,255,.09); }
.af-hero-stat:last-child { border-bottom: 0; }
.af-hero-stat strong { display: block; color: #fff; font-size: 15px; font-weight: 600; }
.af-hero-stat span { display: block; color: rgba(255,255,255,.55); font-size: 11px; }
.af-star-list { display: grid; gap: 8px; padding-top: 12px; }
.af-star-row { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; background: rgba(255,255,255,.035); text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.af-star-row:hover { border-color: rgba(116,201,155,.32); background: rgba(255,255,255,.07); transform: translateY(-1px); }
.af-star-ico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border: 1px solid rgba(116,201,155,.2); border-radius: 8px; background: rgba(116,201,155,.12); color: #a7e3c2; font-size: 12px; }
.af-star-body { flex: 1; min-width: 0; }
.af-star-body strong { display: block; color: #fff; font-size: 11.5px; font-weight: 600; line-height: 1.35; }
.af-star-body small { display: block; margin-top: 1px; color: rgba(255,255,255,.43); font-size: 9.5px; line-height: 1.4; }
.af-star-pill { flex: none; padding: 4px 7px; border: 1px solid rgba(116,201,155,.24); border-radius: 999px; background: rgba(116,201,155,.1); color: #a7e3c2; font-size: 8.5px; font-weight: 600; white-space: nowrap; }
.af-hero-quick-label { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: rgba(255,255,255,.34); font-size: 8.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.af-hero-quick-label::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.08); }
.af-hero-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
.af-hero-quick-item { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 8px 9px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; background: rgba(255,255,255,.025); text-decoration: none; transition: border-color .18s ease, background .18s ease; }
.af-hero-quick-item:hover { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.af-hero-quick-ico { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: none; border-radius: 6px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.62); font-size: 9px; }
.af-hero-quick-body { min-width: 0; }
.af-hero-quick-body strong { display: block; color: rgba(255,255,255,.8); font-size: 9.5px; font-weight: 600; line-height: 1.2; }
.af-hero-quick-body small { display: block; margin-top: 1px; color: rgba(255,255,255,.4); font-size: 8.5px; line-height: 1.3; }
.af-star-foot { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.44); font-size: 9.5px; }
.af-star-foot i { margin-right: 4px; color: #9fd8b7; }
.af-price-ladder { position: relative; display: grid; gap: 2px; margin-top: 18px; padding-left: 16px; }
.af-price-ladder::before { content: ""; position: absolute; left: 4px; top: 13px; bottom: 13px; width: 1px; background: linear-gradient(to bottom, rgba(116,201,155,.55), rgba(255,255,255,.12)); }
.af-price-step { position: relative; display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.af-price-step:last-child { border-bottom: 0; }
.af-price-step::before { content: ""; position: absolute; left: -16px; top: 15px; width: 7px; height: 7px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(255,255,255,.1); }
.af-price-step.is-hot::before { border-color: #a7e3c2; background: #a7e3c2; box-shadow: 0 0 0 4px rgba(116,201,155,.12); }
.af-price-step strong { flex: none; width: 56px; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
.af-price-step.is-hot strong { color: #a7e3c2; }
.af-price-step span { color: rgba(255,255,255,.55); font-size: 10.5px; line-height: 1.5; }
.af-section { padding: 62px 0; }
.af-section-tight { padding: 42px 0; }
.af-section-head { max-width: 600px; margin-bottom: 28px; }
.af-section-head h2 { font-size: 1.8rem; letter-spacing: -.035em; }
.af-section-head p { margin-top: 7px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.af-feature { padding: 18px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow-soft); }
.af-feature-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--surface-muted); color: var(--ink); font-size: 13px; }
.af-feature h3 { margin: 13px 0 4px; font-size: 13.5px; }
.af-feature p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.af-price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.af-price { display: flex; flex-direction: column; padding: 19px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-soft); }
.af-price.is-featured { border-color: var(--border-strong); background: var(--surface-raised); box-shadow: var(--shadow); }
.af-price-name { color: var(--muted); font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.af-price-value { margin-top: 8px; color: var(--ink); font-size: 2rem; line-height: 1; font-weight: 620; letter-spacing: -.05em; }
.af-price-value small { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.af-price ul { display: grid; gap: 7px; margin: 15px 0 18px; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.af-price li { display: flex; gap: 7px; }
.af-price li i { color: var(--success); font-size: 10px; margin-top: 4px; }
.af-price .af-btn { margin-top: auto; width: 100%; }
.af-body .af-card button[onclick^="create"] {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--accent-ink) !important;
}
.af-body .af-card button[onclick^="create"]:hover { filter: brightness(.94); }

/* Public nav responsive */
.af-pub-burger { display: none; }
@media (max-width: 1099px) {
  .af-pub-nav { display: none; }
  .af-pub-burger { display: inline-flex; }
}
@media (max-width: 720px) {
  .af-public-header .af-pub-actions .af-theme-toggle-public { display: none; }
  .af-pub-top-links a:first-child { display: none; }
}

/* Responsive app shell */
@media (max-width: 1023px) {
  :root { --sidebar-w: 280px; }
  .af-sidebar { position: fixed; left: 0; top: 0; transform: translateX(-102%); transition: transform .25s cubic-bezier(.2,.8,.2,1); background: var(--canvas); border-right: 1px solid var(--border); box-shadow: var(--shadow); }
  body.nav-open .af-sidebar { transform: none; }
  body.nav-open .af-nav-backdrop { display: block; }
  .af-sidebar-close { display: inline-flex; }
  .af-main { margin: 0; border: 0; border-radius: 0; min-height: 100vh; box-shadow: none; }
  .af-topbar { top: 0; border-radius: 0; padding: 0 16px; }
  .af-content { padding: 20px 16px 32px; }
  .af-app-footer { padding: 13px 16px 17px; }
}
@media (max-width: 640px) {
  html { font-size: 15px; }
  .af-container { padding-left: 16px; padding-right: 16px; }
  .af-topbar-title strong { max-width: 130px; }
  .af-breadcrumb { display: none; }
  .af-user-name { display: none; }
  .af-user-btn { padding-right: 5px; }
  .af-content { padding: 16px 12px 28px; }
  .af-hero { padding: 52px 0 58px; }
  .af-section { padding: 44px 0; }
  .af-section-head h2 { font-size: 1.5rem; }
  .af-price-grid { grid-template-columns: 1fr; }
  .af-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px 0 26px; }
  .af-footer-brand { grid-column: 1 / -1; }
  .af-footer-bottom { align-items: flex-start; flex-direction: column; gap: 5px; }
  .af-phone-prompt form { width: 100%; margin-left: 0; }
  .af-phone-prompt input { width: 100%; }
  .af-auth-form { padding: 28px 20px; }
  .af-auth-page { grid-template-columns: 1fr; }
  .af-auth-visual { display: none; }
  .af-auth-card h2 { font-size: 1.3rem; }
  .af-modal-card { margin: 0 12px; }
}

/* Existing Tailwind pages: harmonisation */
.af-body .bg-white { background-color: var(--surface); }
.af-body .bg-gray-900 { background-color: #141418 !important; color: #f2f2f5; }
.af-body .hover\:bg-gray-800:hover { background-color: #202027 !important; }
.af-body .text-gray-100 { color: #ececf2; }
.af-body .bg-white.bg-opacity-5 { background-color: rgba(255,255,255,.06) !important; }
.af-body .bg-white.bg-opacity-10 { background-color: rgba(255,255,255,.1) !important; }
.af-body .bg-white.bg-opacity-20 { background-color: rgba(255,255,255,.18) !important; }
.af-body [class~="bg-white/10"] { background-color: rgba(255,255,255,.1) !important; }
.af-body [class~="bg-white/20"] { background-color: rgba(255,255,255,.18) !important; }
.af-body .bg-gray-900.bg-opacity-70 { background-color: rgba(8,10,16,.72) !important; }
.af-body .bg-black.bg-opacity-50 { background-color: rgba(0,0,0,.55) !important; }
.af-body [class*="from-blue-900"] {
  background-image: radial-gradient(circle at 84% 12%, rgba(47,120,200,.28), transparent 34%), var(--hero) !important;
}
.af-body section.relative.text-white:not(.rounded-3xl) {
  background: radial-gradient(circle at 82% 8%, rgba(47,120,200,.3), transparent 32%), var(--hero) !important;
}
.af-body section.relative.text-white:not(.rounded-3xl) h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.af-body section.relative.text-white:not(.rounded-3xl) h1 span {
  color: rgba(255,255,255,.58) !important;
  font-size: .56em;
  line-height: 1.45;
  letter-spacing: -.015em;
}
.af-body section.relative.text-white:not(.rounded-3xl) p {
  color: rgba(255,255,255,.65) !important;
}
.af-body [class*="from-blue-900"] .text-blue-300 { color: #a9cff7 !important; }
.af-body [class*="from-blue-900"] .text-blue-200 { color: #cde4fb !important; }
.af-body [class*="from-blue-900"] .text-blue-400 { color: #7eb9f2 !important; }
.af-body [class*="from-blue-900"] .text-gray-300 { color: rgba(255,255,255,.68) !important; }
.af-body [class*="from-blue-900"] .text-gray-400 { color: rgba(255,255,255,.52) !important; }
.af-body [class*="from-blue-900"] .bg-blue-400 { background-color: #7eb9f2 !important; }
.af-body [class*="from-blue-900"] .bg-white { background-color: rgba(255,255,255,.1) !important; }

.af-body .bg-blue-600, .af-body .bg-blue-700, .af-body .bg-indigo-600, .af-body .bg-indigo-700,
.af-body .hover\:bg-blue-700:hover, .af-body .hover\:bg-blue-800:hover,
.af-body .hover\:bg-indigo-700:hover {
  background-color: var(--accent) !important;
  color: var(--accent-ink) !important;
}
.af-body .bg-blue-600:hover, .af-body .bg-blue-700:hover, .af-body .bg-indigo-600:hover,
.af-body .bg-indigo-700:hover { filter: brightness(.94); }
.af-body a[class*="from-blue-"], .af-body button[class*="from-blue-"],
.af-body a[class*="from-indigo-"], .af-body button[class*="from-indigo-"] {
  background-image: none !important;
  background-color: var(--accent) !important;
  color: var(--accent-ink) !important;
}
.af-body a[class*="from-blue-"]:hover, .af-body button[class*="from-blue-"]:hover,
.af-body a[class*="from-indigo-"]:hover, .af-body button[class*="from-indigo-"]:hover { filter: brightness(.94); }
.af-body .bg-red-600 { background-color: var(--danger); }
.af-body .hover\:bg-red-700:hover { background-color: var(--danger-ink); }

.af-body .shadow, .af-body .shadow-sm, .af-body .shadow-md, .af-body .shadow-lg,
.af-body .shadow-xl, .af-body .shadow-2xl { box-shadow: var(--shadow); }
.af-body .shadow-sm, .af-body .shadow { box-shadow: var(--shadow-soft); }

.af-body .text-blue-600, .af-body .text-blue-700, .af-body .text-blue-800 { color: var(--info-ink); }
.af-body .text-green-600, .af-body .text-green-700, .af-body .text-green-800 { color: var(--success-ink); }
.af-body .text-red-600, .af-body .text-red-700, .af-body .text-red-800 { color: var(--danger-ink); }
.af-body .text-yellow-700, .af-body .text-yellow-800, .af-body .text-amber-700, .af-body .text-amber-800, .af-body .text-amber-900 { color: var(--warning-ink); }
.af-body .text-purple-600, .af-body .text-purple-700, .af-body .text-indigo-600, .af-body .text-indigo-700 { color: var(--info-ink); }
.af-body .text-cyan-600, .af-body .text-cyan-700 { color: var(--info-ink); }
.af-body .text-gray-900, .af-body .text-gray-800, .af-body .text-gray-700 { color: var(--ink); }
.af-body .text-gray-600, .af-body .text-gray-500 { color: var(--muted); }
.af-body .text-gray-400 { color: var(--faint); }

.af-body .bg-blue-50, .af-body .bg-blue-100, .af-body .bg-indigo-50, .af-body .bg-indigo-100,
.af-body .bg-purple-50, .af-body .bg-purple-100, .af-body .bg-cyan-50, .af-body .bg-cyan-100 { background-color: var(--info-soft); }
.af-body .bg-green-50, .af-body .bg-green-100 { background-color: var(--success-soft); }
.af-body .bg-red-50, .af-body .bg-red-100 { background-color: var(--danger-soft); }
.af-body .bg-yellow-50, .af-body .bg-yellow-100, .af-body .bg-amber-50, .af-body .bg-amber-100 { background-color: var(--warning-soft); }
.af-body .bg-gray-50 { background-color: var(--canvas); }
.af-body .bg-gray-100 { background-color: var(--surface-muted); }
.af-body .bg-gray-200 { background-color: var(--border); }
.af-body .border-gray-100, .af-body .border-gray-200 { border-color: var(--border); }
.af-body .border-gray-300 { border-color: var(--border-strong); }
.af-body .divide-gray-200 > :not([hidden]) ~ :not([hidden]) { border-color: var(--border); }
.af-body .ring-black { --tw-ring-color: rgba(0,0,0,.05); }

[data-theme="dark"] .af-body .bg-white.bg-opacity-5 { background-color: rgba(255,255,255,.06) !important; }
[data-theme="dark"] .af-body .bg-white.bg-opacity-10 { background-color: rgba(255,255,255,.1) !important; }
[data-theme="dark"] .af-body .bg-white.bg-opacity-20 { background-color: rgba(255,255,255,.16) !important; }
[data-theme="dark"] .af-body .bg-gray-50 { background-color: var(--surface-muted); }
[data-theme="dark"] .af-body .bg-gray-100 { background-color: var(--surface-muted); }
[data-theme="dark"] .af-body .hover\:bg-gray-50:hover,
[data-theme="dark"] .af-body .hover\:bg-gray-100:hover { background-color: var(--surface-muted) !important; }
[data-theme="dark"] .af-body .hover\:bg-blue-50:hover,
[data-theme="dark"] .af-body .hover\:bg-indigo-50:hover { background-color: var(--info-soft) !important; }
[data-theme="dark"] .af-body .hover\:bg-green-50:hover { background-color: var(--success-soft) !important; }
[data-theme="dark"] .af-body .hover\:bg-red-50:hover { background-color: var(--danger-soft) !important; }
[data-theme="dark"] .af-body .hover\:bg-yellow-50:hover { background-color: var(--warning-soft) !important; }

/* Animations */
@property --af-orbit-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes afOrbit { to { --af-orbit-angle: 360deg } }
@keyframes afFadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes afSpin { to { transform: rotate(360deg) } }
@keyframes afShimmer { 0% { transform: translateX(-120%) } 100% { transform: translateX(320%) } }
@keyframes afPopCheck { 0% { transform: scale(.4); opacity: 0 } 60% { transform: scale(1.25) } 100% { transform: scale(1); opacity: 1 } }
@keyframes afFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-4px) } }
@keyframes afGlow { 0%,100% { box-shadow: 0 0 0 0 var(--glow) } 50% { box-shadow: 0 0 0 14px rgba(47,120,200,0) } }
@keyframes afConfetti { 0% { transform: translateY(-8px) rotate(0); opacity: 1 } 100% { transform: translateY(130px) rotate(540deg); opacity: 0 } }
@keyframes afFlashIn { from { opacity: 0; transform: translateY(-8px) } to { opacity: 1; transform: none } }
.af-flash { animation: afFlashIn .35s ease both; }
#provision-overlay.af-show { animation: afFadeIn .25s ease both; }
#provision-bar.af-bar-shimmer::after { content: ''; position: absolute; top: 0; bottom: 0; width: 45%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: afShimmer 1.3s linear infinite; }
.af-step-active .af-dot { animation: afFloat 1.2s ease-in-out infinite; }
.af-check { animation: afPopCheck .35s ease both; }
.af-icon-glow { animation: afGlow 1.8s ease-in-out infinite; }
.af-confetti { position: absolute; top: 0; width: 8px; height: 8px; border-radius: 2px; animation: afConfetti 1.1s ease-in forwards; }

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

/* API Gateway announcement */
#agBanner{position:fixed;left:0;right:0;bottom:0;z-index:9999;transform:translateY(140%);transition:transform .55s cubic-bezier(.16,1,.3,1);pointer-events:none}
#agBanner .ag-inner{max-width:1100px;margin:0 auto 14px;padding:0 14px}
#agBanner .ag-card{pointer-events:auto;position:relative;display:flex;align-items:center;gap:11px;flex-wrap:wrap;background:radial-gradient(circle at 0% 50%,var(--success-soft),transparent 34%),var(--surface-raised);color:var(--ink);border:1px solid var(--border-strong);border-radius:13px;padding:11px 12px 11px 14px;box-shadow:var(--shadow)}
#agBanner .ag-card::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:2px;border-radius:2px;background:var(--success);opacity:.8}
#agBanner .ag-ico{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex:none;border:1px solid var(--border);border-radius:8px;background:var(--success-soft);color:var(--success-ink);font-size:12px}
#agBanner .ag-txt{flex:1;min-width:190px;color:var(--muted);font-size:13px;line-height:1.5}
#agBanner .ag-txt b{color:var(--ink);font-weight:650}
#agBanner .ag-cta{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:7px 12px;border:1px solid var(--accent);border-radius:8px;background:var(--accent);color:var(--accent-ink);font-size:12px;font-weight:600;white-space:nowrap;text-decoration:none}
#agBanner .ag-cta:hover{filter:brightness(.94);color:var(--accent-ink);text-decoration:none}
#agBanner .ag-cta i{font-size:9px;opacity:.7}
#agBanner .ag-x{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--faint);font-size:20px;line-height:1;cursor:pointer}
#agBanner .ag-x:hover{background:var(--surface-muted);color:var(--ink)}
@media(max-width:640px){
  #agBanner .ag-inner{margin-bottom:10px;padding:0 10px}
  #agBanner .ag-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"ico txt x" "cta cta cta";align-items:start;padding:10px 10px 10px 12px;gap:8px}
  #agBanner .ag-ico{grid-area:ico;width:26px;height:26px;font-size:10px}
  #agBanner .ag-txt{grid-area:txt;min-width:0;font-size:11.5px;line-height:1.4}
  #agBanner .ag-cta{grid-area:cta;justify-content:center;width:100%;margin-top:2px;min-height:30px;font-size:11.5px}
  #agBanner .ag-x{grid-area:x;width:24px;height:24px;font-size:18px}
}

.af-mobile-brand { display: none; }
@media (max-width: 767px) { .af-mobile-brand { display: inline-flex; } }
html:not([data-theme-mode]) .af-ico-sun { display: inline-block; }
.af-topbar { background: var(--surface); }
.af-public-header { background: var(--surface); }
@supports (background: color-mix(in srgb, white 50%, transparent)) {
  .af-topbar { background: color-mix(in srgb, var(--surface) 88%, transparent); }
  .af-public-header { background: color-mix(in srgb, var(--surface) 90%, transparent); }
}

.af-btn-light { background: #fff; border-color: #fff; color: #18181b; }
.af-btn-light:hover { background: #f1f1f4; border-color: #f1f1f4; color: #18181b; }
.af-btn-outline-light { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); color: #fff; }
.af-btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.32); color: #fff; }
.af-service-card { display: flex; flex-direction: column; min-height: 100%; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.af-service-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow); text-decoration: none; }
.af-service-card .af-service-link { margin-top: auto; padding-top: 13px; color: var(--ink); font-size: 11.5px; font-weight: 650; }
.af-service-card .af-service-link i { margin-left: 4px; font-size: 9px; }
.af-cta-band { position: relative; overflow: hidden; padding: 34px; border: 1px solid var(--border); border-radius: 14px; background: radial-gradient(circle at 86% 10%, var(--glow), transparent 35%), var(--surface-muted); }
.af-cta-band h2 { font-size: 1.6rem; letter-spacing: -.035em; }
.af-cta-band p { max-width: 520px; margin-top: 5px; color: var(--muted); font-size: 13px; }
.af-trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.af-trust-item { padding: 13px 15px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.af-trust-item strong { display: block; color: var(--ink); font-size: 15px; font-weight: 620; letter-spacing: -.02em; }
.af-trust-item span { color: var(--faint); font-size: 10.5px; }
.af-console-row { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.76); font-size: 11.5px; }
.af-console-row:last-child { border-bottom: 0; }
.af-console-row .af-console-ico { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; background: rgba(255,255,255,.08); color: #b8d8fb; font-size: 10px; flex: none; }
.af-console-row .af-console-status { margin-left: auto; color: #9fd8b7; font-size: 10px; font-weight: 600; }
.af-console-row small { display: block; color: rgba(255,255,255,.4); font-size: 9.5px; }
@media (max-width: 767px) {
  .af-trust-strip { grid-template-columns: 1fr 1fr; }
  .af-cta-band { padding: 24px; }
  .af-cta-band h2 { font-size: 1.35rem; }
}

/* Pricing */
.af-pricing-nav { position: sticky; top: 94px; z-index: 40; border-bottom: 1px solid var(--border); background: var(--surface); }
@supports (background: color-mix(in srgb, white 50%, transparent)) {
  .af-pricing-nav { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); }
}
.af-pricing-nav-inner { display: flex; align-items: center; gap: 7px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; }
.af-price-chip { flex: none; padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.af-price-chip:hover { color: var(--ink); border-color: var(--border-strong); background: var(--surface-muted); text-decoration: none; }
.af-cat-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-muted); color: var(--ink); font-size: 14px; }
.af-pricing-card .af-btn { width: 100%; justify-content: center; margin-top: 18px; }
.af-price-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.af-price-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.af-price-row span { color: var(--muted); font-size: 12px; }
.af-price-row strong { color: var(--ink); font-size: 12px; font-weight: 650; white-space: nowrap; }
.af-price-row small { margin-left: 2px; color: var(--faint); font-size: 10px; font-weight: 400; }
.af-faq-wrap { max-width: 780px; }
.af-faq-list { display: grid; gap: 8px; }
.af-faq-item { overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.af-faq-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 13px 15px; border: 0; background: transparent; color: var(--ink); font-size: 12.5px; font-weight: 600; text-align: left; cursor: pointer; }
.af-faq-toggle:hover { background: var(--surface-muted); }
.af-faq-toggle i { color: var(--faint); font-size: 10px; transition: transform .18s ease; }
.af-faq-body { padding: 0 15px 14px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
@media (max-width: 767px) {
  .af-pricing-nav { top: 94px; }
  .af-pricing-nav-inner { padding-left: 16px; padding-right: 16px; }
}

/* Payment */
.af-pay-shell { width: 100%; max-width: 560px; margin: 0 auto; }
.af-pay-card { padding: 24px; }
.af-pay-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.af-pay-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  flex: none; border-radius: 11px; background: var(--accent); color: var(--accent-ink);
  font-size: 15px; font-weight: 650; letter-spacing: -.03em;
}
.af-pay-brand h1 { color: var(--ink); font-size: 1.16rem; font-weight: 600; letter-spacing: -.02em; }
.af-pay-brand p { margin-top: 1px; color: var(--muted); font-size: 12px; }
.af-pay-amount {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 16px 0 20px; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface-muted);
}
.af-pay-amount span { color: var(--muted); font-size: 12px; }
.af-pay-amount strong {
  color: var(--ink); font-size: 1.7rem; line-height: 1; font-weight: 620; letter-spacing: -.04em;
}
.af-pay-amount small { color: var(--faint); font-size: 10.5px; font-weight: 500; letter-spacing: 0; }
.af-provider-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 10px 0 16px; }
.af-provider {
  display: block; width: 100%; padding: 13px 14px; text-align: left; cursor: pointer;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.af-provider:hover { border-color: var(--border-strong); background: var(--surface-muted); }
.af-provider.is-active { border-color: var(--accent); background: var(--surface-muted); box-shadow: 0 0 0 3px var(--accent-soft); }
.af-provider-main { display: flex; align-items: center; gap: 8px; }
.af-provider-main i, .af-provider-logo { color: var(--info); font-size: 14px; }
.af-provider-logo { width: 20px; height: 20px; object-fit: contain; flex: none; }
.af-provider-title { color: var(--ink); font-size: 12.5px; font-weight: 600; }
.af-provider-sub { margin-top: 3px; color: var(--muted); font-size: 11px; }
.af-pay-ref { margin-top: 16px; color: var(--faint); font-size: 10.5px; }
.af-pay-ref code { color: var(--muted); }
.af-result-icon {
  display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 16px;
  border-radius: 50%; font-size: 22px;
}
.af-result-icon.is-success { background: var(--success-soft); color: var(--success); }
.af-result-icon.is-danger { background: var(--danger-soft); color: var(--danger); }
.af-result-icon.is-warning { background: var(--warning-soft); color: var(--warning); }

/* Service catalogue */
.af-tile-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.af-service-tile { width: 100%; max-width: 340px; }
.af-service-card .af-card-body { display: flex; flex-direction: column; flex: 1; }
.af-tile-price { margin-top: 2px; color: var(--ink); font-size: 1.18rem; font-weight: 620; letter-spacing: -.03em; }
.af-tile-price small { color: var(--faint); font-size: 10px; font-weight: 400; letter-spacing: 0; }
.af-tile-meta { color: var(--faint); font-size: 10.5px; }
.af-service-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.af-service-item { width: 100%; max-width: 320px; }
.af-service-item .af-card-body { display: flex; flex-direction: column; flex: 1; }
.af-service-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }

/* Service catalogue page */
.af-catalog { display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: 1120px; margin: 0 auto; }
.af-catalog-hero {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 24px; padding: 28px; border: 1px solid var(--border);
  border-radius: 16px;
  background: radial-gradient(circle at 88% 0%, var(--glow), transparent 38%),
              linear-gradient(135deg, var(--surface) 0%, var(--surface-muted) 100%);
}
.af-catalog-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: radial-gradient(circle, var(--border-strong) 1px, transparent 1px);
  background-size: 24px 24px;
}
.af-catalog-hero > * { position: relative; z-index: 1; }
.af-catalog-hero-copy { max-width: 650px; }
.af-catalog-hero h1 { font-size: clamp(1.65rem, 2.2vw, 2.15rem); }
.af-catalog-stats { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.af-catalog-stats span {
  display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 9px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--muted); font-size: 10.5px;
}
.af-catalog-stats strong { color: var(--ink); font-size: 12px; font-weight: 650; }
.af-catalog-stats i { color: var(--info); font-size: 9px; }
.af-catalog-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.af-catalog-nav {
  position: sticky; top: 80px; z-index: 30; display: flex; gap: 6px;
  overflow-x: auto; padding: 7px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow-soft); scrollbar-width: none;
}
.af-catalog-nav::-webkit-scrollbar { display: none; }
.af-catalog-chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 7px 10px;
  border: 1px solid transparent; border-radius: 8px; color: var(--muted);
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.af-catalog-chip:hover { background: var(--surface-muted); color: var(--ink); text-decoration: none; }
.af-catalog-chip i { color: var(--faint); font-size: 10px; }
.af-catalog-chip small {
  min-width: 17px; padding: 1px 5px; border-radius: 999px; background: var(--surface-muted);
  color: var(--faint); font-size: 9.5px; text-align: center;
}

.af-catalog-section { scroll-margin-top: 150px; }
.af-catalog-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.af-catalog-cat-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  flex: none; border: 1px solid var(--border); border-radius: 11px;
  background: linear-gradient(135deg, var(--surface), var(--surface-muted));
  color: var(--ink); font-size: 15px;
}
.af-catalog-section-copy { flex: 1; min-width: 0; }
.af-catalog-section-copy h2 { color: var(--ink); font-size: 1.1rem; font-weight: 600; letter-spacing: -.025em; }
.af-catalog-section-copy p { margin-top: 2px; color: var(--muted); font-size: 11.5px; }
.af-catalog-section-head .af-badge { margin-left: auto; flex: none; }

.af-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.af-catalog-card {
  display: flex; flex-direction: column; min-height: 196px; padding: 16px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.af-catalog-card:hover {
  transform: translateY(-2px); border-color: var(--border-strong);
  box-shadow: var(--shadow); text-decoration: none;
}
.af-catalog-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.af-catalog-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  flex: none; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-muted); color: var(--ink); font-size: 13px;
}
.af-catalog-card h3 { color: var(--ink); font-size: 13.5px; font-weight: 650; letter-spacing: -.015em; }
.af-catalog-desc { margin-top: 4px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.af-catalog-card-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  margin-top: auto; margin-bottom: 12px; padding-top: 14px; border-top: 1px solid var(--border);
}
.af-catalog-price-label { display: block; color: var(--faint); font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.af-catalog-card .af-tile-price { margin-top: 0; }
.af-catalog-card .af-btn { justify-content: center; }

.af-catalog-help {
  padding: 22px; border: 1px solid var(--border); border-radius: 14px;
  background: radial-gradient(circle at 92% 10%, var(--glow), transparent 32%), var(--surface-muted);
}
.af-catalog-help h2 { color: var(--ink); font-size: 1.15rem; font-weight: 600; letter-spacing: -.025em; }
.af-catalog-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.af-catalog-step { padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.af-catalog-step > span {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 650;
}
.af-catalog-step strong { display: block; margin-top: 8px; color: var(--ink); font-size: 12px; font-weight: 600; }
.af-catalog-step p { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }

@media (max-width: 1023px) {
  .af-catalog-nav { top: 76px; }
}
@media (max-width: 767px) {
  .af-catalog-hero { padding: 22px; }
  .af-catalog-hero-actions { width: 100%; }
  .af-catalog-hero-actions .af-btn { flex: 1; justify-content: center; }
  .af-catalog-grid { grid-template-columns: 1fr; }
  .af-catalog-steps { grid-template-columns: 1fr; }
  .af-catalog-section-head { align-items: flex-start; }
  .af-catalog-section-head .af-badge { display: none; }
}
.af-kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.af-kpi-grid-auto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.af-meta-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface-muted); color: var(--muted); font-size: 10.5px;
}
.af-access-line {
  display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface-muted); color: var(--muted); font-size: 11px;
}
.af-access-line code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }

/* Admin quick access */
.af-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.af-quick-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 16px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.af-quick-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-1px); text-decoration: none; }
.af-quick-card strong { color: var(--ink); font-size: 12.5px; font-weight: 600; }
.af-quick-card span { color: var(--muted); font-size: 11px; }
.af-quick-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: 9px; background: var(--surface-muted); color: var(--ink); font-size: 14px;
}

@media (min-width: 640px) {
  .af-pay-card { padding: 30px; }
  .af-provider-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .af-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .af-kpi-grid-auto { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Service detail — normalisation des anciennes classes Tailwind */
.tenkai-svc { display: flex; flex-direction: column; gap: 18px; }
.tenkai-svc .tenkai-svc-hero {
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 88% 0%, var(--glow), transparent 40%),
    linear-gradient(135deg, var(--surface) 0%, var(--surface-muted) 100%) !important;
  color: var(--ink) !important;
  box-shadow: var(--shadow-soft) !important;
}
.tenkai-svc .tenkai-svc-hero .text-white,
.tenkai-svc .tenkai-svc-hero .text-blue-200,
.tenkai-svc .tenkai-svc-hero .text-blue-300 { color: var(--ink) !important; }
.tenkai-svc .tenkai-svc-hero .text-yellow-200 { color: var(--warning-ink) !important; }
.tenkai-svc .tenkai-svc-hero .border-white { border-color: var(--border-strong) !important; }
.tenkai-svc .tenkai-svc-hero .bg-yellow-500 { background-color: var(--warning-soft) !important; }
.tenkai-svc .tenkai-svc-hero .border-yellow-400 { border-color: var(--warning) !important; }

.tenkai-svc .bg-white { background-color: var(--surface) !important; }
.tenkai-svc .bg-gray-50,
.tenkai-svc .bg-gray-100 { background-color: var(--surface-muted) !important; }
.tenkai-svc .bg-gray-200 { background-color: var(--border) !important; }
.tenkai-svc .border-gray-100,
.tenkai-svc .border-gray-200,
.tenkai-svc .border-gray-300 { border-color: var(--border) !important; }

.tenkai-svc .text-gray-900,
.tenkai-svc .text-gray-800,
.tenkai-svc .text-gray-700 { color: var(--ink) !important; }
.tenkai-svc .text-gray-600,
.tenkai-svc .text-gray-500 { color: var(--muted) !important; }
.tenkai-svc .text-gray-400 { color: var(--faint) !important; }
.tenkai-svc .hover\:text-gray-600:hover { color: var(--ink) !important; }

.tenkai-svc .text-blue-600,
.tenkai-svc .text-blue-700,
.tenkai-svc .text-blue-800,
.tenkai-svc .text-indigo-500,
.tenkai-svc .text-indigo-600,
.tenkai-svc .text-indigo-700,
.tenkai-svc .text-indigo-800,
.tenkai-svc .text-purple-500,
.tenkai-svc .text-purple-600,
.tenkai-svc .text-purple-700,
.tenkai-svc .text-purple-800,
.tenkai-svc .text-cyan-600 { color: var(--link) !important; }
.tenkai-svc .text-sky-600,
.tenkai-svc .text-sky-700,
.tenkai-svc .text-sky-800,
.tenkai-svc .text-sky-900 { color: var(--info-ink) !important; }
.tenkai-svc .text-green-400,
.tenkai-svc .text-green-500,
.tenkai-svc .text-green-600,
.tenkai-svc .text-green-700,
.tenkai-svc .text-green-800 { color: var(--success-ink) !important; }
.tenkai-svc .text-yellow-500,
.tenkai-svc .text-yellow-600,
.tenkai-svc .text-yellow-700,
.tenkai-svc .text-yellow-800,
.tenkai-svc .text-amber-500,
.tenkai-svc .text-amber-800,
.tenkai-svc .text-amber-900 { color: var(--warning-ink) !important; }
.tenkai-svc .text-red-500,
.tenkai-svc .text-red-600,
.tenkai-svc .text-red-700,
.tenkai-svc .text-red-800 { color: var(--danger-ink) !important; }

.tenkai-svc .bg-blue-50,
.tenkai-svc .bg-blue-100,
.tenkai-svc .bg-indigo-50,
.tenkai-svc .bg-indigo-100,
.tenkai-svc .bg-purple-50,
.tenkai-svc .bg-cyan-50 { background-color: var(--surface-muted) !important; }
.tenkai-svc .bg-green-50,
.tenkai-svc .bg-green-100 { background-color: var(--success-soft) !important; }
.tenkai-svc .bg-yellow-50,
.tenkai-svc .bg-yellow-100,
.tenkai-svc .bg-amber-50,
.tenkai-svc .bg-amber-100 { background-color: var(--warning-soft) !important; }
.tenkai-svc .bg-red-50,
.tenkai-svc .bg-red-100 { background-color: var(--danger-soft) !important; }
.tenkai-svc .bg-sky-50,
.tenkai-svc .bg-sky-100 { background-color: var(--info-soft) !important; }

.tenkai-svc .border-blue-100,
.tenkai-svc .border-blue-200,
.tenkai-svc .border-indigo-100,
.tenkai-svc .border-indigo-200,
.tenkai-svc .border-purple-200,
.tenkai-svc .border-green-100,
.tenkai-svc .border-red-200,
.tenkai-svc .border-red-300,
.tenkai-svc .border-yellow-100,
.tenkai-svc .border-yellow-200,
.tenkai-svc .border-sky-100,
.tenkai-svc .border-sky-200,
.tenkai-svc .border-amber-200 { border-color: var(--border) !important; }

.tenkai-svc .bg-blue-500,
.tenkai-svc .bg-blue-600,
.tenkai-svc .bg-indigo-600,
.tenkai-svc .bg-purple-600,
.tenkai-svc .bg-cyan-600,
.tenkai-svc .bg-sky-600,
.tenkai-svc .bg-green-600,
.tenkai-svc .bg-yellow-400,
.tenkai-svc .bg-yellow-600,
.tenkai-svc .bg-amber-600,
.tenkai-svc .bg-gray-600,
.tenkai-svc .bg-gray-900 {
  background-color: var(--accent) !important;
  color: var(--accent-ink) !important;
  border-color: var(--accent) !important;
}
.tenkai-svc .bg-red-500,
.tenkai-svc .bg-red-600 { background-color: var(--danger) !important; color: #fff !important; border-color: var(--danger) !important; }
.tenkai-svc .bg-green-500 { background-color: var(--success) !important; }

.tenkai-svc .rounded-3xl { border-radius: 14px !important; }
.tenkai-svc .rounded-2xl { border-radius: 12px !important; }
.tenkai-svc .shadow-sm,
.tenkai-svc .shadow-xl { box-shadow: var(--shadow-soft) !important; }
.tenkai-svc .bg-gradient-to-r { background-image: linear-gradient(90deg, var(--warning-soft), transparent) !important; }
.tenkai-svc .border-amber-500 { border-color: var(--warning) !important; }
.tenkai-svc div.bg-gray-900,
.tenkai-svc pre.bg-gray-900 {
  background-color: #141418 !important;
  border-color: #2a2a32 !important;
  color: #f2f2f5 !important;
}
.tenkai-svc div.bg-gray-900 code,
.tenkai-svc pre.bg-gray-900 { color: #72c99b !important; }

/* ==========================================================================
   Card families — Tenkai
   Une seule base, quatre signatures structurelles :
   - service   : découverte, icône + lien, sans prix
   - offer     : prix + specs + CTA pleine largeur
   - detail    : statut + clé/valeur + actions
   - admin     : dense, rail latéral, en-tête opérationnel
   ========================================================================== */

.af-card { position: relative; }
.af-card--service,
.af-card--offer,
.af-card--detail,
.af-card--admin { display: flex; flex-direction: column; min-width: 0; }

.af-card__kicker {
  color: var(--faint);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.af-card__title {
  margin: 0;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1.35;
}
.af-card__desc {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}
.af-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.af-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.af-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 650;
}
.af-card__link i {
  color: var(--faint);
  font-size: 9px;
  transition: transform .16s ease;
}
a.af-card--service:hover .af-card__link i { transform: translateX(2px); }

/* Service / présentation */
.af-card--service {
  padding: 18px;
  color: var(--ink);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
a.af-card--service:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.af-card--service .af-card__title { margin-top: 0; }
.af-card--service .af-card__footer { border-top: 0; padding-top: 13px; }
.af-card--service.is-compact { padding: 14px; }
.af-card--service.is-compact .af-card__top { margin-bottom: 8px; }
.af-card--service.is-compact .af-card__title { font-size: 12.5px; }
.af-card--service.is-compact .af-card__desc { font-size: 11px; }
.af-card--service.is-static { transition: none; }

/* Offre / souscription */
.af-card--offer { overflow: hidden; }
.af-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.af-card__head h2,
.af-card__head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -.015em;
}
.af-card__head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.af-card__price {
  padding: 17px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}
.af-card__price-label {
  display: block;
  color: var(--faint);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.af-card__price-value {
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 620;
  letter-spacing: -.05em;
}
.af-card__price-value small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0;
}
.af-card__price-note {
  margin-top: 5px;
  color: var(--faint);
  font-size: 10.5px;
}
.af-card__body {
  flex: 1;
  padding: 16px 18px;
}
.af-card--offer .af-card__body { display: flex; flex-direction: column; }
.af-card--offer .af-card__actions {
  margin-top: auto;
  padding: 0 18px 18px;
}
.af-card--offer .af-card__actions .af-btn { width: 100%; justify-content: center; }
.af-card--offer.is-featured { border-color: var(--border-strong); box-shadow: var(--shadow); }
.af-card--offer.is-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}
.af-card--offer.is-trial .af-card__price { background: var(--info-soft); }
.af-card--offer.is-free .af-card__price { background: var(--success-soft); }
.af-card--offer .af-price-list { border-top: 0; margin-top: 2px; }
.af-card--offer .af-price-row:first-child { padding-top: 0; }
.af-card--offer .af-price-row:last-child { border-bottom: 0; padding-bottom: 0; }

/* Détail / affichage */
.af-card--detail .af-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--border);
}
.af-card__title-wrap { min-width: 0; }
.af-card__title-wrap h2,
.af-card__title-wrap h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -.015em;
}
.af-card__title-wrap p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}
.af-card--detail .af-card__body { padding: 15px 17px; }
.af-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.af-detail-item {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
}
.af-detail-label {
  display: block;
  margin-bottom: 2px;
  color: var(--faint);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.af-detail-value {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.af-card--detail .af-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 17px;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}
.af-card--detail .af-card__actions .af-btn { flex: none; }

/* Admin */
.af-card--admin {
  overflow: hidden;
  border-left: 3px solid var(--border-strong);
  border-radius: 10px;
}
.af-card--admin .af-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}
.af-card__admin-label {
  color: var(--faint);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.af-card--admin .af-card__body { flex: 1; padding: 13px; }
.af-card--admin.is-danger { border-left-color: var(--danger); }
.af-card--admin.is-warning { border-left-color: var(--warning); }
.af-card--admin.is-danger .af-card__head { background: var(--danger-soft); color: var(--danger-ink); }
.af-card--admin.is-warning .af-card__head { background: var(--warning-soft); color: var(--warning-ink); }
.af-card--admin .af-quick-ico { width: 32px; height: 32px; border-radius: 8px; }

/* En-têtes de page et héros dans l'espace applicatif */
.af-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.af-page-head .af-title { margin: 0; }
.af-service-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    radial-gradient(circle at 88% 0%, var(--glow), transparent 38%),
    linear-gradient(135deg, var(--surface) 0%, var(--surface-muted) 100%);
  box-shadow: var(--shadow-soft);
}
.af-service-hero > * { position: relative; z-index: 1; }
.af-service-hero h1 {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.af-service-hero p {
  max-width: 720px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.af-service-hero .af-eyebrow { color: var(--muted); }

/* Grilles d'offres et specs */
.af-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.af-offer-grid--wide { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.af-spec-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.af-spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}
.af-spec-list li i { margin-top: 4px; color: var(--success); font-size: 9px; }
.af-compat-note { margin-top: 12px; color: var(--faint); font-size: 10.5px; }

@media (max-width: 640px) {
  .af-detail-grid { grid-template-columns: 1fr; }
  .af-service-hero { padding: 20px; }
  .af-card__head { padding: 14px; }
  .af-card__price { padding: 15px 14px; }
  .af-card__body { padding: 14px; }
  .af-card--offer .af-card__actions { padding: 0 14px 14px; }
  .af-card--detail .af-card__head { padding: 13px 14px; }
  .af-card--detail .af-card__body { padding: 13px 14px; }
  .af-card--detail .af-card__actions { padding: 10px 14px; }
}
