/* ==========================================================================
   FBViews Premium Theme — style.css
   Custom design system layered on top of the platform's Bootstrap 3 file.
   Sections:
     1. Tokens (light / dark)          8. Tables & responsive table cards
     2. Base & typography              9. Alerts, badges, status chips
     3. Layout helpers                10. Public header & footer
     4. Buttons                       11. Homepage sections
     5. Forms                         12. App shell (sidebar / topbar)
     6. Cards, panels, wells          13. Page-specific components
     7. Navigation pills, dropdowns,  14. RTL
        pagination                    15. Motion & print
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --brand: #2457E7;
  --navy: #101828;
  --royal: #2563EB;
  --cyan: #06B6D4;

  --bg: #F8FAFC;
  --bg-soft: #F1F5F9;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --text: #172033;
  --text-2: #475569;
  --text-3: #64748B;
  --border: #E5EAF2;
  --border-strong: #CBD5E1;

  --primary: #2457E7;
  --primary-hover: #1C46C4;
  --primary-soft: #EAF0FD;
  --primary-ink: #1B3FA8;

  --success: #059669;
  --success-soft: #ECFDF5;
  --warning: #B45309;
  --warning-soft: #FFFBEB;
  --danger: #DC2626;
  --danger-soft: #FEF2F2;
  --info: #0369A1;
  --info-soft: #F0F9FF;

  --grad-brand: linear-gradient(135deg, #2457E7 0%, #2563EB 55%, #06B6D4 100%);
  --grad-dark: linear-gradient(160deg, #101828 0%, #111B33 60%, #0E2A55 100%);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 8px 24px -8px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, .22);
  --ring: 0 0 0 3px rgba(36, 87, 231, .28);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --header-h: 68px;
  --sidebar-w: 264px;
  --gutter: 16px;
  --maxw: 1200px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #101828;
  --bg-soft: #172033;
  --surface: #111A2E;
  --surface-2: #0F1729;
  --text: #E5EAF2;
  --text-2: #B6C2D4;
  --text-3: #8A9BB3;
  --border: #1F2A44;
  --border-strong: #2B3A5C;

  --primary: #5B83F0;
  --primary-hover: #7C9CF4;
  --primary-soft: rgba(91, 131, 240, .14);
  --primary-ink: #A9BDF8;

  --success: #34D399;
  --success-soft: rgba(52, 211, 153, .12);
  --warning: #FBBF24;
  --warning-soft: rgba(251, 191, 36, .12);
  --danger: #F87171;
  --danger-soft: rgba(248, 113, 113, .12);
  --info: #06B6D4;
  --info-soft: rgba(6, 182, 212, .12);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .45);
  --shadow: 0 10px 28px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .7);

  color-scheme: dark;
}

/* 2. Base & typography ----------------------------------------------------- */
html { font-size: 16px; /* Bootstrap 3 sets 10px; the design system is rem-based */ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body.fbv {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
.fbv *, .fbv *::before, .fbv *::after { box-sizing: border-box; }
.fbv img { max-width: 100%; height: auto; }
.fbv svg { max-width: 100%; }
.fbv h1, .fbv h2, .fbv h3, .fbv h4, .fbv h5, .fbv h6 {
  font-family: var(--font);
  color: var(--text);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0 0 .5em;
}
.fbv h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); letter-spacing: -.035em; }
.fbv h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -.03em; }
.fbv h3 { font-size: 1.25rem; }
.fbv h4 { font-size: 1.075rem; }
.fbv h5, .fbv h6 { font-size: .95rem; }
.fbv p { margin: 0 0 1em; color: var(--text-2); }
.fbv a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
.fbv a:hover, .fbv a:focus { color: var(--primary-hover); text-decoration: none; }
.fbv code, .fbv pre, .fbv kbd { font-family: var(--mono); }
.fbv code { background: var(--bg-soft); color: var(--primary-ink); padding: .12em .4em; border-radius: 6px; font-size: .875em; border: 1px solid var(--border); }
.fbv hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.fbv ::selection { background: rgba(36, 87, 231, .2); }
.fbv strong, .fbv b { font-weight: 600; color: var(--text); }
.fbv small, .fbv .small { font-size: .85em; }
.fbv .text-muted { color: var(--text-3) !important; }

/* Visible focus for keyboard users */
.fbv a:focus-visible, .fbv button:focus-visible, .fbv input:focus-visible,
.fbv select:focus-visible, .fbv textarea:focus-visible, .fbv summary:focus-visible,
.fbv [tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: none;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--navy); color: #fff !important; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }
.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; }

/* 3. Layout helpers -------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }
.wrap-narrow { max-width: 820px; }
.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.w-100 { width: 100%; }
.nowrap { white-space: nowrap; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad-brand); }
.lead { font-size: 1.125rem; color: var(--text-2); line-height: 1.65; }
.gradient-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ico, .fbv .ico { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm, .fbv .ico-sm { width: 16px; height: 16px; }
.ico-lg, .fbv .ico-lg { width: 24px; height: 24px; }

/* Rich content coming from the admin "Pages" editor */
.prose { color: var(--text-2); font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: 1.6em; }
.prose h2 { font-size: 1.5rem; } .prose h3 { font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.prose img { border-radius: var(--radius); height: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 3px solid var(--primary); background: var(--primary-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose pre { background: var(--navy); color: #E5EAF2; padding: 16px; border-radius: var(--radius); overflow-x: auto; }

/* 4. Buttons --------------------------------------------------------------- */
.fbv .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  font-family: var(--font); font-size: .95rem; font-weight: 600; line-height: 1.2;
  border-radius: 10px; border: 1px solid transparent;
  box-shadow: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.fbv .btn:active { transform: translateY(1px); box-shadow: none; }
.fbv .btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(36, 87, 231, .55); }
.fbv .btn-primary:hover, .fbv .btn-primary:focus, .fbv .btn-primary:active,
.fbv .btn-primary.active, .fbv .open > .dropdown-toggle.btn-primary {
  background: var(--primary-hover); border-color: var(--primary-hover); color: #fff;
}
.fbv .btn-default, .fbv .btn-outline {
  background: var(--surface); color: var(--text); border-color: var(--border-strong);
}
.fbv .btn-default:hover, .fbv .btn-default:focus, .fbv .btn-outline:hover, .fbv .btn-outline:focus,
.fbv .btn-default.active, .fbv .open > .dropdown-toggle.btn-default {
  background: var(--bg-soft); color: var(--text); border-color: var(--border-strong);
}
.fbv .btn-ghost { background: transparent; color: var(--text-2); }
.fbv .btn-ghost:hover, .fbv .btn-ghost:focus { background: var(--bg-soft); color: var(--text); }
.fbv .btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.fbv .btn-light:hover, .fbv .btn-light:focus { background: #EAF0FD; color: var(--navy); }
.fbv .btn-glass { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.fbv .btn-glass:hover, .fbv .btn-glass:focus { background: rgba(255,255,255,.16); color: #fff; }
.fbv .btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.fbv .btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.fbv .btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1rem; border-radius: 12px; }
.fbv .btn-sm { min-height: 36px; padding: 7px 12px; font-size: .85rem; border-radius: 8px; }
.fbv .btn-xs { min-height: 30px; padding: 5px 10px; font-size: .8rem; border-radius: 7px; }
.fbv .btn-block { display: flex; width: 100%; }
.fbv .btn.disabled, .fbv .btn[disabled] { opacity: .55; cursor: not-allowed; }
.fbv .btn-icon { width: 40px; min-height: 40px; padding: 0; border-radius: 10px; }

/* 5. Forms ----------------------------------------------------------------- */
.fbv .form-group { margin-bottom: 18px; }
.fbv label, .fbv .control-label {
  display: block; margin-bottom: 6px;
  font-size: .875rem; font-weight: 600; color: var(--text);
}
.fbv .form-control {
  display: block; width: 100%;
  height: auto; min-height: 46px; padding: 11px 14px;
  font-family: var(--font); font-size: 16px; /* 16px prevents iOS zoom */ line-height: 1.4;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 10px;
  box-shadow: var(--shadow-xs);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.fbv .form-control::placeholder { color: var(--text-3); opacity: 1; }
.fbv .form-control:focus { border-color: var(--primary); box-shadow: var(--ring); outline: 0; }
.fbv .form-control[readonly], .fbv .form-control[disabled] { background: var(--bg-soft); color: var(--text-2); cursor: default; }
.fbv textarea.form-control { min-height: 120px; resize: vertical; }
.fbv select.form-control {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.fbv select.form-control[multiple] { background-image: none; padding-right: 14px; }
.fbv .help-block, .fbv .form-hint { display: block; margin-top: 6px; font-size: .82rem; color: var(--text-3); }
.fbv .has-error .form-control { border-color: var(--danger); }
.fbv .has-error .help-block, .fbv .has-error .control-label { color: var(--danger); }
.fbv .checkbox, .fbv .radio { margin: 12px 0; }
.fbv .checkbox label, .fbv .radio label { display: inline-flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--text-2); cursor: pointer; padding-left: 0; }
.fbv input[type="checkbox"], .fbv input[type="radio"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex: none; position: static; }
.fbv .input-group { display: flex; width: 100%; align-items: stretch; }
.fbv .input-group .form-control { border-radius: 10px 0 0 10px; flex: 1 1 auto; min-width: 0; }
.fbv .input-group-btn, .fbv .input-group-addon { display: flex; width: auto; }
.fbv .input-group-btn .btn { border-radius: 0 10px 10px 0; height: 100%; }
.fbv .input-group-addon { align-items: center; padding: 0 14px; background: var(--bg-soft); border: 1px solid var(--border-strong); border-left: 0; border-radius: 0 10px 10px 0; color: var(--text-2); font-size: .9rem; }
.field-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.input-icon { position: relative; }
.input-icon .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input-icon .form-control { padding-left: 42px; }
.fbv .g-recaptcha { max-width: 100%; overflow: hidden; }

/* 6. Cards, panels, wells -------------------------------------------------- */
.card, .fbv .well, .fbv .panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.card { padding: 24px; }
.card-sm { padding: 18px; }
.card-lg { padding: 32px; }
@media (max-width: 575px) { .card { padding: 18px; } .card-lg { padding: 22px; } }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.1rem; }
.card-title { font-size: 1.1rem; margin: 0 0 4px; }
.card-sub { color: var(--text-3); font-size: .9rem; margin: 0; }
.card-flush { padding: 0; overflow: hidden; }
.card-flush > .card-head { padding: 18px 20px 0; }
.fbv .well { padding: 24px; }
.fbv .panel-body { padding: 20px; }
.fbv .panel-heading { padding: 16px 20px; border-bottom: 1px solid var(--border); background: transparent; font-weight: 600; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.fbv .border-solid { border: 1px solid var(--border); }
.fbv .border-rounded { border-radius: var(--radius); }

/* Stat widgets */
.stat {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 18px 16px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 14px; min-width: 0;
}
.stat-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.stat-ico.is-green { background: var(--success-soft); color: var(--success); }
.stat-ico.is-amber { background: var(--warning-soft); color: var(--warning); }
.stat-ico.is-cyan { background: var(--info-soft); color: var(--info); }
.stat-label { font-size: .8rem; color: var(--text-3); font-weight: 500; margin: 0; }
.stat-value { font-size: 1.35rem; font-weight: 700; color: var(--text); letter-spacing: -.02em; margin: 0; line-height: 1.25; overflow-wrap: anywhere; }
.stat a.stat-link { position: absolute; inset: 0; }

/* Empty state */
.empty { text-align: center; padding: 48px 20px; color: var(--text-3); }
.empty .empty-ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-soft); color: var(--text-3); }
.empty h3 { font-size: 1.05rem; margin-bottom: 6px; }

/* 7. Nav pills, dropdowns, pagination ------------------------------------- */
.fbv .nav { list-style: none; padding: 0; margin: 0; }
.fbv .nav-pills, .filter-tabs {
  display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 4px; margin: 0 0 16px; list-style: none;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px;
  scrollbar-width: none;
}
.fbv .nav-pills::-webkit-scrollbar, .filter-tabs::-webkit-scrollbar { display: none; }
.fbv .nav-pills > li { float: none; flex: none; margin: 0; }
.fbv .nav-pills > li > a, .filter-tabs a {
  display: block; padding: 8px 14px; border-radius: 9px;
  font-size: .875rem; font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.fbv .nav-pills > li > a:hover, .filter-tabs a:hover { background: var(--surface); color: var(--text); }
.fbv .nav-pills > li.active > a, .fbv .nav-pills > li.active > a:hover, .fbv .nav-pills > li.active > a:focus,
.filter-tabs a.active, .filter-tabs li.active a {
  background: var(--surface); color: var(--primary); box-shadow: var(--shadow-xs);
}
.filter-tabs li { list-style: none; flex: none; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toolbar .filter-tabs, .toolbar .nav-pills { margin: 0; flex: 1 1 auto; min-width: 0; }
.search-form { display: flex; gap: 8px; flex: 1 1 260px; max-width: 380px; }
.search-form .form-control { min-height: 44px; }
@media (max-width: 575px) { .search-form { max-width: none; } }

.fbv .dropdown { position: relative; }
.fbv .dropdown-menu {
  position: absolute; top: 100%; z-index: 1000; display: none; float: none;
  min-width: 200px; max-height: 70vh; overflow-y: auto;
  margin: 8px 0 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
  font-size: .9rem;
}
.fbv .open > .dropdown-menu { display: block; }
.fbv .dropdown-menu-right { right: 0; left: auto; }
.fbv .dropdown-menu > li > a, .fbv .dropdown-menu .dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
  color: var(--text-2); font-weight: 500; white-space: nowrap; clear: both;
}
.fbv .dropdown-menu > li > a:hover, .fbv .dropdown-menu > li > a:focus, .fbv .dropdown-menu .dropdown-item:hover { background: var(--bg-soft); color: var(--text); }
.fbv .dropdown-menu > .active > a, .fbv .dropdown-menu > .active > a:hover { background: var(--primary-soft); color: var(--primary-ink); }
.fbv .dropdown-menu .divider { height: 1px; margin: 6px 0; background: var(--border); }
.fbv .caret { display: inline-block; width: 0; height: 0; margin-left: 2px; border-top: 5px solid; border-right: 4px solid transparent; border-left: 4px solid transparent; opacity: .7; }

.fbv .pagination { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 20px 0 0; list-style: none; justify-content: center; }
.fbv .pagination > li { display: block; }
.fbv .pagination > li > a, .fbv .pagination > li > span {
  float: none; display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-2); font-weight: 600; margin: 0;
}
.fbv .pagination > li > a:hover { background: var(--bg-soft); color: var(--text); }
.fbv .pagination > .active > a, .fbv .pagination > .active > a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 8. Tables ---------------------------------------------------------------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); }
.fbv .table { width: 100%; max-width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; background: transparent; font-size: .9rem; }
.fbv .table > thead > tr > th {
  padding: 12px 16px; border: 0; border-bottom: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-3);
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; text-align: left;
  position: sticky; top: 0; z-index: 1;
}
.fbv .table > tbody > tr > td { padding: 14px 16px; border-top: 0; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-2); }
.fbv .table > tbody > tr:last-child > td { border-bottom: 0; }
.fbv .table > tbody > tr:hover > td { background: var(--surface-2); }
.fbv .table .link, .fbv .table .width-40 { max-width: 280px; overflow-wrap: anywhere; word-break: break-word; }
@media (min-width: 768px) {
  .fbv .table .link, .fbv .table .width-40 { min-width: 220px; }
  .fbv .table .cell-service { min-width: 190px; }
}
.fbv .table .cell-id { font-family: var(--mono); font-size: .82rem; color: var(--text-3); white-space: nowrap; }
.fbv .table .cell-strong { color: var(--text); font-weight: 600; }
.fbv .table tr.category-row > td { background: var(--primary-soft) !important; color: var(--primary-ink); font-weight: 700; font-size: .85rem; letter-spacing: .01em; padding: 10px 16px; }
.fbv .table .service-description td, .fbv .table td.service-description { font-size: .85rem; color: var(--text-3); }
.service-desc-box { max-height: 220px; overflow: auto; font-size: .85rem; color: var(--text-2); white-space: pre-line; }

/* Mobile: tables become stacked cards (cells carry data-label) */
@media (max-width: 767px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .fbv .table-cards > tbody > tr {
    border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 12px; padding: 6px 0; background: var(--surface);
  }
  .fbv .table-cards > tbody > tr > td {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
    padding: 8px 14px; border: 0; text-align: right; overflow-wrap: anywhere;
  }
  .fbv .table-cards > tbody > tr > td::before {
    content: attr(data-label); flex: none; max-width: 45%;
    font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); text-align: left; padding-top: 2px;
  }
  .fbv .table-cards > tbody > tr > td[data-label=""]::before, .fbv .table-cards > tbody > tr > td:not([data-label])::before { display: none; }
  .fbv .table-cards > tbody > tr > td[colspan] { display: block; text-align: left; }
  .fbv .table-cards .link, .fbv .table-cards .width-40 { max-width: none; }
  .fbv .table-cards > tbody > tr.category-row { padding: 0; border: 0; background: transparent; }
  .fbv .table-cards > tbody > tr.category-row > td { border-radius: 10px; }
  .card-flush .table-cards { padding: 12px; }
}

/* 9. Alerts, badges, status chips ----------------------------------------- */
.fbv .alert {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 44px 14px 16px; margin-bottom: 18px;
  border: 1px solid transparent; border-radius: 12px; font-size: .925rem; line-height: 1.5;
}
.fbv .alert > .ico { margin-top: 1px; }
.fbv .alert-body { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.fbv .alert h4 { font-size: 1rem; margin: 0 0 6px; color: inherit; }
.fbv .alert a { color: inherit; text-decoration: underline; font-weight: 600; }
.fbv .alert-success { background: var(--success-soft); border-color: rgba(5, 150, 105, .25); color: var(--success); }
.fbv .alert-danger { background: var(--danger-soft); border-color: rgba(220, 38, 38, .25); color: var(--danger); }
.fbv .alert-warning { background: var(--warning-soft); border-color: rgba(180, 83, 9, .25); color: var(--warning); }
.fbv .alert-info { background: var(--info-soft); border-color: rgba(3, 105, 161, .2); color: var(--info); }
.fbv .alert .close {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center; float: none;
  background: transparent; border: 0; border-radius: 8px; color: inherit; opacity: .7; font-size: 20px; line-height: 1; text-shadow: none; cursor: pointer;
}
.fbv .alert .close:hover { opacity: 1; background: rgba(0,0,0,.05); }
.fbv .badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 7px;
  border-radius: 999px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
  background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--border);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.chip.no-dot::before { display: none; }
.chip-blue { background: var(--primary-soft); color: var(--primary-ink); border-color: transparent; }
.chip-green { background: var(--success-soft); color: var(--success); border-color: transparent; }
.chip-amber { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.chip-red { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.chip-cyan { background: var(--info-soft); color: var(--info); border-color: transparent; }
.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #EF4444; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #EF4444; opacity: 0; animation: fbv-pulse 1.8s ease-out infinite; }
@keyframes fbv-pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* 10. Public header & footer ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, background-color .2s ease;
}
:root[data-theme="dark"] .site-header { background: rgba(11, 18, 32, .8); }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: var(--header-h); max-width: 1440px; }
.site-header .lang-switch { display: none; }
.nav-lang { display: none; }
.footer-lang { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0; padding: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; flex: none; }
.brand img { max-height: 36px; width: auto; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-brand); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px -6px rgba(36,87,231,.6); }
.brand-mark svg { width: 20px; height: 20px; }
.brand-name span { color: var(--primary); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 9px; border-radius: 8px; font-size: .875rem; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.site-nav a:hover, .site-nav a.active, .site-nav li.active > a { color: var(--text); background: var(--bg-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header-actions .btn { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
.fbv .header-actions .btn-icon, .fbv .btn-icon { padding: 0; }
.fbv .ico { max-width: none; }
.fbv .nav-toggle { display: none; }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: inline-block; }
.lang-switch .dropdown-toggle { gap: 6px; }

@media (max-width: 1300px) {
  .nav-lang { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
  .nav-lang a { padding: 8px 12px !important; font-size: .9rem !important; border: 1px solid var(--border); }
  .fbv .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 1029; margin: 0;
    background: var(--surface); padding: 16px var(--gutter) 32px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav a { padding: 14px 14px; font-size: 1.05rem; border-radius: 10px; }
  .site-nav .nav-mobile-cta { display: grid !important; gap: 10px; margin-top: 18px; }
  .fbv .header-actions .hide-mobile { display: none; }
  .site-header .header-actions { margin-left: auto; }
}
.nav-mobile-cta { display: none !important; }
@media (max-width: 420px) { .fbv .header-actions .btn-primary.hide-xs { display: none; } }

.site-footer { background: var(--navy); color: #94A3B8; padding: 64px 0 28px; margin-top: 0; }
.site-footer a { color: #CBD5E1; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff !important; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-about p { color: #94A3B8; margin-top: 14px; max-width: 380px; font-size: .9rem; }
.footer-col h3 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .92rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; }
.footer-bottom p { color: #A9B6CA; margin: 0; max-width: 760px; }
.footer-disclaimer { font-size: .85rem; line-height: 1.6; }
.social-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); margin-top: 16px; font-weight: 600; font-size: .9rem; }

/* 11. Homepage sections ---------------------------------------------------- */
.section { padding: 88px 0; position: relative; }
.section-sm { padding: 56px 0; }
@media (max-width: 767px) { .section { padding: 60px 0; } .section-sm { padding: 40px 0; } }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { font-size: 1.075rem; }

.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 720px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 15% 20%, rgba(36,87,231,.16), transparent 60%),
    radial-gradient(520px 280px at 85% 10%, rgba(6,182,212,.18), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
@media (max-width: 991px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 40px 0 64px; } }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 600px; margin-bottom: 28px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; margin-bottom: 22px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  font-size: .82rem; font-weight: 600; color: var(--text-2);
}
.hero-badge .chip { padding: 2px 8px; font-size: .72rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .hero-ctas .btn { flex: 1 1 100%; } }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--text-2); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ico { color: var(--success); width: 18px; height: 18px; }

.auth-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: 28px; position: relative;
}
.auth-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(36,87,231,.45), transparent 40%, rgba(6,182,212,.35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
@media (max-width: 480px) { .auth-card { padding: 20px; border-radius: var(--radius-lg); } }
.auth-card h2 { font-size: 1.35rem; margin-bottom: 4px; }
.auth-card .card-sub { margin-bottom: 20px; }
.auth-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: -4px 0 16px; font-size: .875rem; }
.auth-meta .checkbox { margin: 0; }
.auth-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); text-align: center; font-size: .9rem; color: var(--text-3); }

.trust-strip { padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.trust-strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; list-style: none; margin: 0; padding: 0; }
.trust-strip li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; color: var(--text-2); }
.trust-strip .ico { color: var(--primary); }

.feature-card {
  position: relative; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(36,87,231,.35); }
.feature-ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--primary-soft); color: var(--primary);
}
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { font-size: .94rem; margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 991px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.check-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.check-list li strong { display: block; color: var(--text); }
.check-list .tick { width: 26px; height: 26px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; margin-top: 1px; }
.check-list .tick .ico { width: 16px; height: 16px; stroke-width: 2.4; }

.visual-frame { position: relative; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; }
.visual-frame svg { display: block; width: 100%; height: auto; }

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); } }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 20px; box-shadow: var(--shadow-xs); }
.step-num { counter-increment: step; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--text-3); text-transform: uppercase; }
.step-num::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad-brand); color: #fff; font-size: .9rem; letter-spacing: 0; }
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: .9rem; margin: 0; }

.dark-band { background: var(--grad-dark); color: #CBD5E1; position: relative; overflow: hidden; }
.dark-band::before { content: ""; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(6,182,212,.22), transparent 65%); pointer-events: none; }
.dark-band h2, .dark-band h3, .dark-band strong { color: #fff; }
.dark-band p, .dark-band .check-list li { color: #A9B6CA; }
.dark-band .eyebrow { color: var(--cyan); }
.dark-band .check-list .tick { background: rgba(6,182,212,.14); color: var(--cyan); }
.dark-band .wrap { position: relative; }

.code-window { border-radius: var(--radius-lg); background: #0A1020; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); overflow: hidden; }
.code-window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.06); font-family: var(--mono); font-size: .78rem; color: #64748B; }
.code-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; display: inline-block; }
.code-window-bar span { margin-left: 8px; }
.code-window pre { margin: 0; padding: 20px; background: transparent; border: 0; color: #CBD5E1; font-size: .82rem; line-height: 1.7; overflow-x: auto; white-space: pre; }
.code-window .k { color: #7DD3FC; } .code-window .s { color: #86EFAC; } .code-window .c { color: #64748B; } .code-window .n { color: #FCA5A5; }

.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.cat-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); color: var(--text) !important; transition: border-color .2s ease, box-shadow .2s ease; }
.cat-card:hover { border-color: rgba(36,87,231,.4); box-shadow: var(--shadow); }
.cat-card h3 { font-size: 1rem; margin: 0 0 4px; }
.cat-card p { font-size: .88rem; margin: 0; }
.cat-card .feature-ico { margin: 0; width: 42px; height: 42px; flex: none; }

.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item[open] { border-color: rgba(36,87,231,.35); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 600; color: var(--text); font-size: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%232457E7' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 2v10M2 7h10'/%3E%3C/svg%3E") center no-repeat; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 20px 18px; color: var(--text-2); }
.faq-item .faq-a p:last-child { margin: 0; }

.cta-band { border-radius: var(--radius-xl); padding: 56px 40px; text-align: center; background: var(--grad-brand); color: #fff; position: relative; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(36,87,231,.6); }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 80% 0%, rgba(255,255,255,.25), transparent 60%); pointer-events: none; }
.cta-band h2 { color: #fff; max-width: 680px; margin: 0 auto 12px; }
.cta-band p { color: rgba(255,255,255,.86); max-width: 560px; margin: 0 auto 28px; font-size: 1.05rem; }
.cta-band .hero-ctas { justify-content: center; position: relative; z-index: 1; }
@media (max-width: 575px) { .cta-band { padding: 40px 20px; } }

.page-hero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -120px; top: -160px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(36,87,231,.12), transparent 65%); pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
.page-hero p { max-width: 680px; font-size: 1.05rem; margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .82rem; color: var(--text-3); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.breadcrumbs a { color: var(--text-3); }
.breadcrumbs a:hover { color: var(--primary); }

.auth-page { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 48px var(--gutter); position: relative; overflow: hidden; }
.auth-page::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 260px at 20% 10%, rgba(36,87,231,.12), transparent 60%), radial-gradient(480px 240px at 90% 90%, rgba(6,182,212,.12), transparent 60%); pointer-events: none; }
.auth-page .auth-card { width: 100%; max-width: 460px; }
.auth-page .auth-card.wide { max-width: 560px; }
.auth-icon { width: 52px; height: 52px; border-radius: 15px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 16px; }

/* 12. App shell ------------------------------------------------------------ */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 1040; width: var(--sidebar-w);
  display: flex; flex-direction: column;
  background: var(--navy); color: #94A3B8; border-right: 1px solid rgba(255,255,255,.06);
  transition: transform .25s ease;
}
.app-sidebar .brand { color: #fff !important; padding: 0 20px; height: var(--header-h); border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-scroll { flex: 1 1 auto; overflow-y: auto; padding: 16px 12px 24px; scrollbar-width: thin; scrollbar-color: #1F2A44 transparent; }
.sidebar-label { padding: 14px 12px 8px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #52627C; }
.side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: #A9B6CA; font-size: .92rem; font-weight: 500; position: relative;
}
.side-nav a:hover, .side-nav a:focus { background: rgba(255,255,255,.05); color: #fff; }
.side-nav li.active > a { background: linear-gradient(90deg, rgba(36,87,231,.28), rgba(36,87,231,.08)); color: #fff; }
.side-nav li.active > a::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cyan); }
.side-nav .ico { width: 19px; height: 19px; opacity: .9; }
.side-nav .badge { margin-left: auto; background: var(--brand); }
.sidebar-card { margin: 8px 12px 16px; padding: 16px; border-radius: 14px; background: linear-gradient(160deg, rgba(36,87,231,.22), rgba(6,182,212,.08)); border: 1px solid rgba(6,182,212,.2); }
.sidebar-card p { color: #A9B6CA; font-size: .82rem; margin: 4px 0 12px; }
.sidebar-card strong { color: #fff; font-size: .92rem; }
.sidebar-card .btn { min-height: 36px; font-size: .82rem; }

.app-main { flex: 1 1 auto; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }
.app-topbar {
  position: sticky; top: 0; z-index: 1020; height: var(--header-h);
  display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter);
  background: rgba(248, 250, 252, .85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
:root[data-theme="dark"] .app-topbar { background: rgba(11, 18, 32, .85); }
.app-topbar .page-name { font-weight: 700; font-size: 1.02rem; color: var(--text); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.balance-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 8px 6px 12px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text) !important; font-weight: 700; font-size: .9rem; cursor: pointer;
}
.balance-pill .ico { color: var(--success); width: 18px; height: 18px; }
.balance-pill .add { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; }
.user-btn { display: inline-flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; min-height: 40px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text) !important; font-weight: 600; font-size: .9rem; cursor: pointer; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-weight: 700; font-size: .85rem; text-transform: uppercase; flex: none; }
.app-content { flex: 1 1 auto; padding: 28px var(--gutter) 48px; width: 100%; max-width: 1320px; }
.app-footer { padding: 18px var(--gutter); border-top: 1px solid var(--border); font-size: .82rem; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.app-footer a { color: var(--text-3); }
.fbv .sidebar-toggle { display: none; }
.sidebar-backdrop { display: none; }

@media (max-width: 991px) {
  .app-sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); width: min(86vw, 300px); }
  .app-sidebar.is-open { transform: none; }
  .app-main { margin-left: 0; }
  .fbv .sidebar-toggle { display: inline-flex; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 1035; background: rgba(2, 6, 23, .55); display: block; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; }
  .sidebar-backdrop.is-open { opacity: 1; visibility: visible; }
  .app-content { padding-top: 20px; }
}
@media (max-width: 575px) {
  .user-btn .user-name, .balance-pill .add { display: none; }
  .user-btn { padding: 4px; }
  .app-topbar { gap: 8px; }
  .topbar-actions { gap: 4px; }
}
@media (max-width: 400px) {
  .app-topbar .page-name, .app-topbar .lang-switch { display: none; }
  .balance-pill { padding: 6px 10px; }
}
body.no-scroll { overflow: hidden; }

.fbv .page-header { border: 0; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.fbv .page-header h1 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 0 0 4px; }
.fbv .page-header p { margin: 0; color: var(--text-3); }

/* 13. Page-specific components -------------------------------------------- */
/* New order */
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 1199px) { .order-layout { grid-template-columns: 1fr; } }
.order-layout > *, .order-aside > *, .api-layout > *, .split > *, .hero-grid > *, .grid > *, .stack > * { min-width: 0; }
.order-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
@media (max-width: 1199px) { .order-aside { position: static; } }
.charge-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-radius: 12px; background: var(--primary-soft); border: 1px dashed rgba(36,87,231,.35); margin-bottom: 18px; }
.charge-box label { margin: 0; color: var(--primary-ink); }
.charge-box .form-control { max-width: 200px; text-align: right; font-weight: 700; font-size: 1.15rem; background: transparent; border: 0; box-shadow: none; color: var(--text); padding-right: 0; min-height: 0; }
.order-success dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 8px 0 0; font-size: .9rem; }
.order-success dt { font-weight: 600; color: inherit; opacity: .8; }
.order-success dd { margin: 0; overflow-wrap: anywhere; color: inherit; }
.tip-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: .88rem; }
.tip-list li { display: flex; gap: 10px; color: var(--text-2); }
.tip-list .ico { color: var(--primary); width: 18px; height: 18px; margin-top: 2px; }
.service-desc-wrap .panel-body { background: var(--surface-2); max-height: 260px; overflow: auto; font-size: .88rem; color: var(--text-2); white-space: pre-line; padding: 14px 16px; }
.dripfeed-box { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); margin-bottom: 18px; }

/* Services directory */
.services-tools { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); grid-auto-flow: column; grid-auto-columns: auto; align-items: center; margin-bottom: 16px; }
@media (max-width: 767px) { .services-tools { grid-template-columns: 1fr 1fr; grid-auto-flow: row; } .services-tools .input-icon { grid-column: 1 / -1; } }
.services-tools .dropdown-toggle { width: 100%; justify-content: space-between; }
.fbv-search-hidden, .fbv-avail-hidden { display: none !important; }

/* Live availability badges (filled by script.js from the Availability Service) */
.avail-box { margin-top: 12px; }
.avail-box[hidden] { display: none; }
.avail-card { position: relative; padding: 12px 14px 12px 16px; border: 1px solid var(--border); border-left: 4px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.avail-card.is-available { border-left-color: var(--avail-ok-fg); }
.avail-card.is-limited, .avail-card.is-busy { border-left-color: var(--avail-warn-fg); }
.avail-card.is-unavailable { border-left-color: var(--avail-no-fg); }
.avail-card-head { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.avail-card .avail-badge { font-size: .95rem; padding: 6px 13px; }
.avail-card .avail-note { margin-top: 10px; }
.avail-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: .82rem; font-weight: 600; line-height: 1.3; background: var(--surface-2); color: var(--text-3); border: 1px solid var(--border); max-width: 100%; }
.avail-badge i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.avail-badge small { font-weight: 500; opacity: .8; }
/* Availability badge colours: change these values to restyle every badge. */
:root {
  --avail-ok-fg: #059669;   --avail-ok-bg: #ECFDF5;    /* available */
  --avail-warn-fg: #B45309; --avail-warn-bg: #FFFBEB;  /* limited / busy */
  --avail-no-fg: #DC2626;   --avail-no-bg: #FEF2F2;    /* unavailable */
}
.avail-badge.is-available { background: var(--avail-ok-bg); color: var(--avail-ok-fg); border-color: transparent; }
.avail-badge.is-available i { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); animation: avail-pulse 2.4s ease-in-out infinite; }
@keyframes avail-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
@media (prefers-reduced-motion: reduce) { .avail-badge.is-available i { animation: none; } }
.avail-badge:hover { filter: brightness(.98); }
.avail-badge.is-limited, .avail-badge.is-busy { background: var(--avail-warn-bg); color: var(--avail-warn-fg); border-color: transparent; }
.avail-badge.is-unavailable { background: var(--avail-no-bg); color: var(--avail-no-fg); border-color: transparent; }
.avail-badge-sm { display: flex; width: fit-content; margin-top: 6px; padding: 2px 9px; font-size: .74rem; gap: 6px; }
.avail-badge-sm i { width: 6px; height: 6px; }
.avail-note { margin: 8px 0 0; font-size: .85rem; color: var(--danger); }
button[data-avail-blocked] { cursor: not-allowed; }
.avail-filter select { min-width: 170px; }
@media (max-width: 767px) { .avail-filter { grid-column: 1 / -1; } .avail-filter select { width: 100%; } }
.fav-btn { background: none; border: 0; padding: 4px; color: var(--text-3); cursor: pointer; }
.fav-btn.active, .fav-btn:hover { color: #F59E0B; }

/* Payments */
.pay-methods { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin-bottom: 18px; }
.pay-method { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: left; color: var(--text); font: inherit; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.pay-method:hover { border-color: var(--primary); }
.pay-method.is-active { border-color: var(--primary); box-shadow: var(--ring); background: var(--primary-soft); }
.pay-head { display: flex; align-items: center; gap: 12px; }
.pay-ico { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.pay-method.is-active .pay-ico { background: var(--primary); color: #fff; }
.pay-title { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.3; }
.pay-title strong { font-size: .95rem; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.pay-title small { font-size: .78rem; color: var(--text-3); font-weight: 500; }
.pay-radio { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); }
.pay-method.is-active .pay-radio { border-color: var(--primary); box-shadow: inset 0 0 0 4px var(--surface); background: var(--primary); }
.pay-min { align-self: flex-start; display: inline-flex; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); font-size: .78rem; font-weight: 600; color: var(--text-2); }
.pay-bonus { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px dashed var(--border); }
.pay-bonus span { display: inline-flex; padding: 3px 8px; border-radius: 6px; background: var(--success-soft); color: var(--success); font-size: .75rem; font-weight: 600; }
.pay-select.is-hidden { display: none; }

/* Tickets */
.ticket-thread { display: grid; gap: 16px; max-height: 70vh; overflow-y: auto; padding: 4px; }
.msg { display: flex; gap: 12px; max-width: 86%; }
.msg.is-support { margin-right: auto; }
.msg.is-user { margin-left: auto; flex-direction: row-reverse; }
.msg-bubble { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); min-width: 0; }
.msg.is-user .msg-bubble { background: var(--primary); color: #fff; border-color: var(--primary); border-bottom-right-radius: 6px; }
.msg.is-support .msg-bubble { border-bottom-left-radius: 6px; }
.msg-meta { display: flex; gap: 10px; font-size: .75rem; color: var(--text-3); margin-bottom: 6px; flex-wrap: wrap; }
.msg.is-user .msg-meta, .fbv .msg.is-user .msg-meta strong { color: rgba(255,255,255,.92); }
.msg-text { overflow-wrap: anywhere; font-size: .93rem; line-height: 1.55; }
.msg-text > :first-child { margin-top: 0; }
.msg-text > :last-child { margin-bottom: 0; }
.fbv .msg-text p { margin: 0 0 .6em; color: inherit; }
.fbv .msg-text hr { margin: 10px 0; border: 0; border-top: 1px solid var(--border); }
.fbv .msg.is-user .msg-text, .fbv .msg.is-user .msg-text * { color: #fff; }
.fbv .msg.is-user .msg-text a { text-decoration: underline; }
.fbv .msg.is-user .msg-text hr { border-top-color: rgba(255,255,255,.35); }
.fbv .msg.is-support .msg-text strong, .fbv .msg.is-support .msg-text b { color: var(--text); }
.msg.is-user .msg-text, .msg.is-user .msg-text a { color: #fff; }
.msg-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.msg-files a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: rgba(0,0,0,.06); font-size: .8rem; }
.msg.is-user .msg-files a { background: rgba(255,255,255,.18); color: #fff; }
@media (max-width: 575px) { .msg { max-width: 100%; } .msg .avatar { display: none; } }
.ticket-row-new td:first-child { box-shadow: inset 3px 0 0 var(--primary); }

/* API docs */
.api-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 991px) { .api-layout { grid-template-columns: 1fr; } .api-toc { position: static !important; } }
.api-toc { position: sticky; top: calc(var(--header-h) + 20px); }
.api-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.api-toc a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: .9rem; font-weight: 500; }
.api-toc a:hover { background: var(--bg-soft); color: var(--text); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: .9rem; }
.kv > div { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.kv > div:nth-child(odd) { background: var(--surface-2); font-weight: 600; color: var(--text); }
.kv > div:nth-child(even) { overflow-wrap: anywhere; }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 575px) { .kv { grid-template-columns: 1fr; } .kv > div:nth-child(odd) { border-bottom: 0; padding-bottom: 4px; } }
.api-method { scroll-margin-top: calc(var(--header-h) + 16px); }
.method-tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px; background: var(--success-soft); color: var(--success); font-family: var(--mono); font-size: .75rem; font-weight: 700; }
.fbv pre.json, .fbv .code-block {
  margin: 0; padding: 16px 18px; border-radius: 12px; border: 1px solid #1E293B;
  background: #0A1020; color: #CBD5E1; font-size: .8rem; line-height: 1.65; overflow-x: auto; white-space: pre; word-break: normal;
}
.copy-wrap { position: relative; }
.copy-btn { position: absolute; top: 8px; right: 8px; min-height: 30px !important; padding: 4px 10px !important; font-size: .75rem !important; background: rgba(255,255,255,.08) !important; color: #CBD5E1 !important; border: 1px solid rgba(255,255,255,.14) !important; }
.copy-btn.is-copied { color: #86EFAC !important; }
.secret-field { font-family: var(--mono); letter-spacing: .02em; }

/* Blog */
.post-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs); transition: box-shadow .2s ease, transform .2s ease; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-thumb { aspect-ratio: 16 / 9; background: var(--grad-brand); overflow: hidden; display: block; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.post-body h2 { font-size: 1.15rem; margin: 0; }
.post-body h2 a { color: var(--text); }
.post-body h2 a:hover { color: var(--primary); }
.post-excerpt { color: var(--text-2); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { font-size: .8rem; color: var(--text-3); display: flex; gap: 8px; align-items: center; }
.post-more { margin-top: auto; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.article { max-width: 760px; margin: 0 auto; }
.article-cover { border-radius: var(--radius-xl); overflow: hidden; margin: 0 0 32px; box-shadow: var(--shadow); }
.article-cover img { width: 100%; height: auto; display: block; }
.article .prose { font-size: 1.06rem; }

/* Affiliates / referral */
.ref-box { display: flex; gap: 8px; }
.ref-box .form-control { font-family: var(--mono); font-size: .9rem; }

/* Notifications */
.notif-table td:not(:first-child), .notif-table th:not(:first-child) { text-align: center !important; }
@media (max-width: 767px) { .fbv .notif-table.table-cards > tbody > tr > td:not(:first-child) { justify-content: space-between; } .fbv .notif-table.table-cards > tbody > tr > td:first-child { font-weight: 700; color: var(--text); } }

/* Contact */
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card .feature-ico { margin: 0; flex: none; }

/* Legacy Bootstrap helpers used by platform markup */
.fbv .hidden { display: none !important; }
.fbv .pull-right { float: right; }
.fbv .pull-left { float: left; }
.fbv .clearfix::after { content: ""; display: table; clear: both; }
.fbv .img-responsive { display: block; max-width: 100%; height: auto; }
.fbv .tooltip { font-family: var(--font); }
.fbv .tooltip-inner { background: var(--navy); border-radius: 8px; padding: 6px 10px; font-size: .8rem; max-width: 260px; }

/* 14. RTL ------------------------------------------------------------------ */
[dir="rtl"] body.fbv { text-align: right; }
[dir="rtl"] .app-sidebar { inset: 0 0 0 auto; border-right: 0; border-left: 1px solid rgba(255,255,255,.06); }
[dir="rtl"] .app-main { margin-left: 0; margin-right: var(--sidebar-w); }
[dir="rtl"] .side-nav li.active > a::before { left: auto; right: -12px; border-radius: 3px 0 0 3px; }
[dir="rtl"] .side-nav .badge { margin-left: 0; margin-right: auto; }
[dir="rtl"] .topbar-actions, [dir="rtl"] .site-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .fbv select.form-control { background-position: left 14px center; padding-right: 14px; padding-left: 40px; }
[dir="rtl"] .input-icon .ico { left: auto; right: 14px; }
[dir="rtl"] .input-icon .form-control { padding-left: 14px; padding-right: 42px; }
[dir="rtl"] .fbv .alert { padding: 14px 16px 14px 44px; }
[dir="rtl"] .fbv .alert .close { right: auto; left: 8px; }
[dir="rtl"] .fbv .table > thead > tr > th { text-align: right; }
[dir="rtl"] .msg.is-user { margin-left: 0; margin-right: auto; }
[dir="rtl"] .msg.is-support { margin-right: 0; margin-left: auto; }
[dir="rtl"] .copy-btn { right: auto; left: 8px; }
[dir="rtl"] .breadcrumbs li + li::before { content: "\\"; margin-right: 0; margin-left: 6px; }
@media (max-width: 991px) {
  [dir="rtl"] .app-sidebar { transform: translateX(100%); }
  [dir="rtl"] .app-sidebar.is-open { transform: none; }
  [dir="rtl"] .app-main { margin-right: 0; }
}
.rtl-content, .rtl-form, .rtl-table, .rtl-alert { direction: rtl; text-align: right; }

/* 15. Motion & print ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fbv *, .fbv *::before, .fbv *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .site-footer, .app-sidebar, .app-topbar, .sidebar-backdrop, .app-footer { display: none !important; }
  .app-main { margin: 0 !important; }
  body.fbv { background: #fff; color: #000; }
}

/* Category number badge */
.cat-num { font-family: var(--mono); font-size: .85rem; font-weight: 700; color: var(--text-3); letter-spacing: .04em; }
.feature-card .post-more { display: inline-flex; }

/* ==========================================================================
   16. Homepage (signin.twig) — provider layout
   ========================================================================== */
/* Dark header on the homepage only */
body.is-home.is-guest .site-header { background: rgba(11, 19, 36, .94); border-bottom-color: rgba(255,255,255,.06); }
body.is-home.is-guest .site-header .brand { color: #fff !important; }
body.is-home.is-guest .site-header .brand-name span { color: #7FA0F5; }
@media (min-width: 1301px) {
  body.is-home.is-guest .site-nav a { color: #B6C2D4; }
  body.is-home.is-guest .site-nav a:hover, body.is-home.is-guest .site-nav a.active { color: #fff; background: rgba(255,255,255,.08); }
}
body.is-home.is-guest .header-actions .btn-ghost { color: #D5DEEA; }
body.is-home.is-guest .header-actions .btn-ghost:hover { color: #fff; background: rgba(255,255,255,.08); }

/* Hero */
.hx { position: relative; overflow: hidden; background: #0B1324; color: #CBD5E1; padding: 72px 0 96px; isolation: isolate; }
.hx-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 380px at 12% 0%, rgba(36,87,231,.45), transparent 65%),
    radial-gradient(620px 360px at 95% 30%, rgba(6,182,212,.28), transparent 65%),
    radial-gradient(900px 400px at 50% 120%, rgba(36,87,231,.25), transparent 70%); }
.hx-bg::after { content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%); }
.hx-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
@media (max-width: 1023px) { .hx-grid { grid-template-columns: 1fr; gap: 48px; } .hx { padding: 48px 0 72px; } }
.hx-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #DCE4F0; font-size: .82rem; font-weight: 600; letter-spacing: .01em; margin-bottom: 24px; }
.hx-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22D3EE; }
.hx-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #22D3EE; opacity: 0; animation: fbv-pulse 2s ease-out infinite; }
.fbv .hx h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: 1.06; letter-spacing: -.04em; margin-bottom: 22px; }
.hx-grad { background: linear-gradient(90deg, #7FA0F5 0%, #22D3EE 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fbv .hx-lead { font-size: 1.125rem; line-height: 1.7; color: #A9B6CA; max-width: 580px; margin-bottom: 30px; }
.hx .btn-glass { border-color: rgba(255,255,255,.25); }
.hx-caps { list-style: none; margin: 36px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 10px; }
.hx-caps li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); color: #C5D0E0; font-size: .82rem; font-weight: 500; }
.hx-caps .ico { color: #22D3EE; }

.hx-visual { position: relative; padding: 0 0 0 40px; }
@media (max-width: 1023px) { .hx-visual { padding: 0; max-width: 560px; width: 100%; margin: 0 auto; } }
.hx-console { position: absolute; top: -28px; left: 0; width: 78%; border-radius: 16px; background: rgba(17, 26, 46, .92); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); padding: 0 0 14px; transform: rotate(-3deg); opacity: .9; }
.hx-console-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.07); font-family: var(--mono); font-size: .72rem; color: #64748B; }
.hx-console-bar i { width: 8px; height: 8px; border-radius: 50%; background: #334155; }
.hx-console-bar span { margin-left: 8px; }
.hx-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: .82rem; color: #C5D0E0; border-bottom: 1px solid rgba(255,255,255,.05); }
.hx-tag { font-family: var(--mono); font-size: .72rem; color: #7FA0F5; }
.hx-ok { margin-left: auto; font-size: .7rem; font-weight: 700; color: #34D399; background: rgba(52,211,153,.12); padding: 3px 8px; border-radius: 999px; }
.hx-code { margin: 12px 16px 0; padding: 8px 10px; border-radius: 8px; background: #0A1020; font-family: var(--mono); font-size: .72rem; color: #94A3B8; }
.hx-code .c { color: #7DD3FC; font-weight: 700; } .hx-code .s { color: #86EFAC; }
.hx-auth { position: relative; z-index: 1; margin-top: 150px; margin-left: auto; max-width: 440px; box-shadow: 0 40px 80px -24px rgba(0,0,0,.65); }
@media (max-width: 1023px) { .hx-console { display: none; } .hx-auth { margin: 0 auto; } }
.hx-auth h2 { font-size: 1.3rem; }

/* Section head (two-column) */
.hm-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 44px; }
.hm-head h2 { margin: 0; }
.hm-head p { margin: 0; font-size: 1.02rem; }
@media (max-width: 767px) { .hm-head { grid-template-columns: 1fr; gap: 14px; } }
.hm-head-dark p { color: #A9B6CA; }

/* Category tiles */
.hm-cat-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .hm-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .hm-cat-grid { grid-template-columns: 1fr; } }
.hm-cat { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; scroll-margin-top: calc(var(--header-h) + 16px); }
.hm-cat::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--primary), var(--cyan)); }
.hm-cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(36,87,231,.35); }
.hm-cat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.hm-cat-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--cyan)); box-shadow: 0 12px 24px -10px rgba(36,87,231,.6); }
.hm-cat-num { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--border-strong); letter-spacing: -.02em; }
.hm-cat h3 { font-size: 1.12rem; margin-bottom: 6px; }
.hm-cat > p { font-size: .92rem; margin-bottom: 14px; }
.hm-cat-list { list-style: none; padding: 14px 0 0; margin: 0 0 16px; border-top: 1px dashed var(--border); display: grid; gap: 8px; font-size: .88rem; color: var(--text-2); }
.hm-cat-list li { display: flex; align-items: center; gap: 8px; }
.hm-cat-list li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--primary); flex: none; }
.fbv .hm-cat-note { font-size: .78rem; color: var(--warning); background: var(--warning-soft); padding: 8px 10px; border-radius: 8px; margin: 0 0 16px; }
.hm-cat-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; }

/* Dark operations band */
.hm-dark { background: linear-gradient(170deg, #0B1324 0%, #101828 55%, #0D2249 100%); color: #CBD5E1; overflow: hidden; }
.hm-dark h2, .hm-dark h3 { color: #fff; }
.hm-dark .eyebrow { color: #22D3EE; }
.hm-ops { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: stretch; }
@media (max-width: 1023px) { .hm-ops { grid-template-columns: 1fr; } }
.hm-ops-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 575px) { .hm-ops-grid { grid-template-columns: 1fr; } }
.hm-op { padding: 22px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); transition: background .2s ease, border-color .2s ease; }
.hm-op:hover { background: rgba(255,255,255,.07); border-color: rgba(34,211,238,.35); }
.hm-op-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(34,211,238,.12); color: #22D3EE; margin-bottom: 14px; }
.hm-op h3 { font-size: 1.02rem; margin-bottom: 6px; }
.fbv .hm-op p { color: #A9B6CA; font-size: .9rem; margin-bottom: 12px; }
.hm-op a { color: #7FA0F5; font-weight: 600; font-size: .88rem; }
.hm-op a:hover { color: #fff; }
.hm-code { display: flex; flex-direction: column; }
.hm-code pre { flex: 1 1 auto; }

/* Feature list */
.hm-feat-grid { display: grid; gap: 14px 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 991px) { .hm-feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .hm-feat-grid { grid-template-columns: 1fr; } }
.hm-feat { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 14px; border: 1px solid transparent; transition: background .2s ease, border-color .2s ease; }
.hm-feat:hover { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-sm); }
.hm-feat-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.hm-feat h3 { font-size: 1rem; margin-bottom: 4px; }
.fbv .hm-feat p { font-size: .9rem; margin: 0; }

/* Timeline steps */
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; position: relative; counter-reset: none; }
.hm-steps::before { content: ""; position: absolute; top: 24px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--primary), var(--cyan)); opacity: .35; }
.hm-steps li { position: relative; text-align: center; padding: 0 6px; }
.hm-step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); color: var(--primary); font-weight: 800; font-size: 1.1rem; box-shadow: 0 0 0 6px var(--surface); }
.hm-steps h3 { font-size: 1rem; margin-bottom: 6px; }
.fbv .hm-steps p { font-size: .88rem; margin: 0; }
@media (max-width: 991px) {
  .hm-steps { grid-template-columns: 1fr; gap: 0; }
  .hm-steps::before { top: 0; bottom: 0; left: 25px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--primary), var(--cyan)); }
  .hm-steps li { display: grid; grid-template-columns: 50px 1fr; column-gap: 16px; text-align: left; padding: 0 0 24px; }
  .hm-step-n { grid-row: span 2; margin: 0; }
  .hm-steps h3 { align-self: end; margin-top: 4px; }
}

/* Metric definitions */
.hm-info { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
@media (max-width: 991px) { .hm-info { grid-template-columns: 1fr; gap: 28px; } }
.hm-info-intro { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 991px) { .hm-info-intro { position: static; } }
.hm-notice { display: flex; gap: 12px; padding: 16px; margin-top: 20px; border-radius: 12px; background: var(--warning-soft); border: 1px solid rgba(180,83,9,.2); color: var(--warning); }
.hm-notice .ico { flex: none; margin-top: 2px; }
.fbv .hm-notice p { margin: 0; color: var(--text-2); font-size: .9rem; }
.hm-defs { margin: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.hm-defs > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.hm-defs > div:last-child { border-bottom: 0; }
.hm-defs dt { font-weight: 700; color: var(--text); font-size: .95rem; }
.hm-defs dd { margin: 0; color: var(--text-2); font-size: .92rem; }
@media (max-width: 575px) { .hm-defs > div { grid-template-columns: 1fr; gap: 4px; } }

/* FAQ two-column */
.hm-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
@media (max-width: 991px) { .hm-faq { grid-template-columns: 1fr; gap: 24px; } }

/* Final CTA */
.hm-cta-wrap { padding: 72px 0 88px; }
.hm-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 48px; border-radius: 24px; position: relative; overflow: hidden;
  background: radial-gradient(500px 240px at 90% 0%, rgba(6,182,212,.35), transparent 65%), linear-gradient(135deg, #1B3FA8 0%, #2457E7 60%, #1E6FD9 100%); box-shadow: 0 30px 60px -24px rgba(36,87,231,.6); }
.hm-cta h2 { color: #fff; margin: 0 0 8px; }
.fbv .hm-cta p { color: rgba(255,255,255,.85); margin: 0; max-width: 560px; }
@media (max-width: 575px) { .hm-cta { padding: 32px 22px; } }
:root[data-theme="dark"] .hm-cat-num { color: #2B3A5C; }

/* Tickets: platform-injected parts (#ticket-fields, .tickets-uploader) */
#ticket-fields:empty { display: none; }
#ticket-fields .form-group:last-child { margin-bottom: 18px; }
.fbv .tickets-uploader { display: block; }
.fbv .tickets-uploader a, .fbv .tickets-uploader button, .fbv .tickets-uploader label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 10px;
  border: 1px dashed var(--border-strong); background: var(--surface-2); color: var(--primary); font-weight: 600; font-size: .88rem; cursor: pointer;
}
.fbv .tickets-uploader a:hover, .fbv .tickets-uploader button:hover, .fbv .tickets-uploader label:hover { border-color: var(--primary); background: var(--primary-soft); }
.fbv .tickets-uploader img { border-radius: 8px; }
.fbv .ticket-danger[style*="display: block"], .fbv .ticket-danger[style*="display:block"] { display: flex !important; }
.fbv .msg-text hr + br { display: none; }

/* New order: platform service-search component (Vue, mounted on #new-order-search).
   Structure: .search-dropdown > .input-wrapper (prepend button, input, append "clear" button)
   + .select2-container > .select2-dropdown.dropdown-menu > .select2-results > div > ul.dropdown-menu */
.fbv .search-dropdown { position: relative; width: 100%; }
.fbv .search-dropdown .input-wrapper { position: relative; display: block; }
.fbv .search-dropdown .input-wrapper .form-control { padding-left: 42px; padding-right: 40px; }
.fbv .search-dropdown .input-wrapper__prepend,
.fbv .search-dropdown .input-wrapper__append {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--text-3); cursor: pointer; font-size: 14px;
}
.fbv .search-dropdown .input-wrapper__prepend { left: 9px; }
.fbv .search-dropdown .input-wrapper__append { right: 8px; }
.fbv .search-dropdown .input-wrapper__append:hover { background: var(--bg-soft); color: var(--text); }
/* Outer dropdown panel */
.fbv .search-dropdown .select2-container { position: absolute; left: 0; right: 0; top: 100%; z-index: 1050; display: block; width: auto !important; }
.fbv .search-dropdown .select2-dropdown.dropdown-menu {
  position: relative; display: block; width: 100%; min-width: 0; max-height: none; overflow: visible;
  margin: 6px 0 0; padding: 6px; top: auto; left: auto;
}
.fbv .search-dropdown .select2-results { display: block; }
.fbv .search-dropdown .select2-results > div { max-height: 340px; overflow-y: auto; position: relative; }
/* Inner list: plain list inside the panel (it also carries .dropdown-menu) */
.fbv .search-dropdown .select2-results__options.dropdown-menu {
  position: static; display: block; float: none; width: 100%; min-width: 0; max-height: none; overflow: visible;
  margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; list-style: none;
}
.fbv .search-dropdown .select2-results__option { list-style: none; }
.fbv .search-dropdown .select2-results__option > a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; color: var(--text-2); white-space: normal; font-size: .9rem; }
.fbv .search-dropdown .select2-results__option > a:hover,
.fbv .search-dropdown .select2-results__option--highlighted > a { background: var(--bg-soft); color: var(--text); }
.fbv .search-dropdown .select2-selection__id { flex: none; background: var(--primary-soft); color: var(--primary-ink); font-family: var(--mono); font-size: .75rem; height: auto; padding: 2px 7px; border-radius: 6px; }

/* Bootstrap 3 modal (email change, platform payment modals) */
.fbv .modal-content { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.fbv .modal-header { padding: 18px 22px; border-bottom: 1px solid var(--border); }
.fbv .modal-header .close { float: right; font-size: 22px; line-height: 1; opacity: .6; background: none; border: 0; }
.fbv .modal-title { font-size: 1.1rem; font-weight: 700; margin: 0; }
.fbv .modal-body { padding: 20px 22px; }
.fbv .modal-footer { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }
.fbv .modal-backdrop.in { opacity: .55; background: #020617; }

/* Platform enhanced selects (select2, used by data-select="true" on New order and elsewhere) */
.fbv .select2-container { width: 100% !important; max-width: 100%; }
.fbv .select2-selection--single.form-control { position: relative; display: flex; align-items: center; padding-right: 40px; cursor: pointer; overflow: hidden; }
.fbv .select2-selection__rendered { display: flex !important; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text); padding: 0 !important; }
.fbv .select2-selection__rendered > span { overflow: hidden; text-overflow: ellipsis; }
.fbv .select2-selection__rendered img { width: 20px; height: 20px; border-radius: 5px; flex: none; }
.fbv .select2-selection__arrow { position: absolute; top: 0; right: 12px; height: 100%; width: 18px; display: block; }
.fbv .select2-selection__arrow b {
  position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 0 !important;
  background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  transition: transform .15s ease;
}
.fbv .select2-container--open .select2-selection__arrow b { transform: rotate(180deg); }
.fbv .select2-container--open .select2-selection--single.form-control { border-color: var(--primary); box-shadow: var(--ring); }
/* Dropdown panel + list (both carry Bootstrap's .dropdown-menu) */
.fbv .select2-container--open > .select2-dropdown.dropdown-menu,
.fbv .select2-dropdown.dropdown-menu { display: block; min-width: 0; max-height: none; overflow: visible; margin-top: 6px; padding: 6px; z-index: 1060; }
.fbv .select2-search--dropdown { padding: 0 0 6px; }
.fbv .select2-search--hide { display: none !important; }
.fbv .select2-search__field-wrapper { position: relative; }
.fbv .select2-search__field-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); margin: 0; }
.fbv .select2-search__field.form-control { padding-left: 38px; min-height: 40px; }
.fbv .select2-results { display: block; }
.fbv .select2-results__options.dropdown-menu {
  position: static; display: block; float: none; width: 100%; min-width: 0; max-height: 320px; overflow-y: auto;
  margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; list-style: none;
}
.fbv .select2-results__option { list-style: none; }
.fbv .select2-results__option > a, .fbv .select2-results__option[role="option"]:not(:has(> a)) {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; color: var(--text-2); white-space: normal; font-size: .9rem; cursor: pointer;
}
.fbv .select2-results__option--highlighted > a, .fbv .select2-results__option > a:hover,
.fbv .select2-results__option.active > a { background: var(--primary-soft); color: var(--primary-ink); }
.fbv .select2-results__option img { width: 20px; height: 20px; border-radius: 5px; flex: none; }
.fbv .select2-selection__id.badge { background: var(--primary); }

/* Homepage v3 — provider details */
.hx-eyebrow-sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.4); display: inline-block; }
.hx-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 0; }
.hx-stats > div { min-width: 170px; flex: 0 1 auto; padding: 14px 16px; border-radius: 14px; background: linear-gradient(160deg, rgba(36,87,231,.22), rgba(6,182,212,.08)); border: 1px solid rgba(127,160,245,.28); }
.fbv .hx-stats dt { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9FB3D9; margin: 0 0 4px; }
.fbv .hx-stats dd { margin: 0; font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hx-stats + .hx-caps { margin-top: 18px; }
.hx-tabs { display: flex; gap: 4px; padding: 10px 14px 4px; }
.hx-tabs span { font-size: .7rem; font-weight: 600; color: #64748B; padding: 4px 10px; border-radius: 6px; }
.hx-tabs span.is-on { background: rgba(127,160,245,.15); color: #A9BDF8; }
.hx-bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; margin: 12px 16px 0; padding-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,.08); }
.hx-bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #22D3EE, rgba(36,87,231,.6)); opacity: .8; }
.hx-api { position: absolute; z-index: 2; right: -14px; top: 64px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #0A1020; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 40px -12px rgba(0,0,0,.6); font-family: var(--mono); font-size: .75rem; color: #CBD5E1; }
.hx-api-method { color: #0B1324; background: #22D3EE; font-weight: 800; padding: 2px 7px; border-radius: 5px; }
.hx-api-ok { color: #34D399; }
@media (max-width: 1023px) { .hx-api { display: none; } }

.hm-formats { background: #0B1324; border-top: 1px solid rgba(255,255,255,.06); padding: 18px 0; }
.hm-formats .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.hm-formats-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #64748B; }
.hm-formats ul { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; margin: 0; padding: 0; justify-content: center; }
.hm-formats li { display: inline-flex; align-items: center; gap: 8px; color: #C5D0E0; font-weight: 600; font-size: .9rem; }
.hm-formats .ico { color: #22D3EE; }

.hm-pipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; position: relative; }
.hm-pipe::before { content: ""; position: absolute; top: 44px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--primary) 0 10px, transparent 10px 18px); opacity: .45; }
.hm-node { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px 24px; box-shadow: var(--shadow-sm); text-align: left; }
.hm-node-ico { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--cyan)); box-shadow: 0 0 0 8px var(--bg), 0 14px 28px -10px rgba(36,87,231,.6); margin-bottom: 16px; }
.hm-node-step { display: block; font-family: var(--mono); font-size: .72rem; font-weight: 700; color: var(--primary); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.hm-node h3 { font-size: 1.12rem; margin-bottom: 12px; }
.hm-node ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; color: var(--text-2); }
.hm-node li { display: flex; gap: 8px; align-items: center; }
.hm-node li::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 4px; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='%232457E7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 5.5 2 2L8 3'/%3E%3C/svg%3E") center no-repeat; }
@media (max-width: 900px) { .hm-pipe { grid-template-columns: 1fr; gap: 18px; } .hm-pipe::before { top: 0; bottom: 0; left: 51px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--primary) 0 10px, transparent 10px 18px); } }

/* Server Status page */
.ss-banner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 24px; border-radius: 18px; margin-bottom: 18px; border: 1px solid; }
.ss-banner h2 { font-size: 1.2rem; margin: 0 0 2px; color: inherit; }
.fbv .ss-banner p { margin: 0; color: inherit; opacity: .85; }
.ss-banner > div:nth-child(2) { flex: 1 1 260px; min-width: 0; }
.ss-banner-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.6); }
.ss-banner.is-ok { background: var(--success-soft); border-color: rgba(5,150,105,.3); color: var(--success); }
.ss-banner.is-info { background: var(--primary-soft); border-color: rgba(36,87,231,.3); color: var(--primary-ink); }
.ss-banner.is-warn { background: var(--warning-soft); border-color: rgba(180,83,9,.3); color: var(--warning); }
.ss-banner.is-down { background: var(--danger-soft); border-color: rgba(220,38,38,.3); color: var(--danger); }
.ss-banner h2, .ss-banner strong { color: inherit; }
.ss-updated { display: flex; flex-direction: column; text-align: right; font-size: .82rem; }
.ss-updated span { opacity: .75; }
@media (max-width: 575px) { .ss-updated { text-align: left; } }
.ss-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ss-filter { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font: inherit; color: var(--text); min-height: 40px; }
.ss-filter strong { font-variant-numeric: tabular-nums; }
.ss-filter:hover { border-color: var(--border-strong); }
.ss-filter.is-on { border-color: var(--primary); box-shadow: var(--ring); }
.ss-group-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.ss-group-head h2 { font-size: 1.05rem; margin: 0; }
.ss-group-count { margin-left: auto; font-size: .8rem; color: var(--text-3); }
.ss-list { list-style: none; margin: 0; padding: 0; }
.ss-item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.ss-item[hidden], .ss-group[hidden] { display: none; }
.ss-item:last-child { border-bottom: 0; }
.ss-item-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ss-name { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.ss-note { font-size: .84rem; color: var(--text-3); margin-top: 2px; }
.ss-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ss-operational { background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.ss-maintenance { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.ss-degraded, .ss-partial { background: #F59E0B; box-shadow: 0 0 0 4px var(--warning-soft); }
.ss-down { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
@media (max-width: 480px) { .ss-item { grid-template-columns: 10px minmax(0, 1fr); row-gap: 8px; padding: 14px 16px; } .ss-item .ss-dot { align-self: start; margin-top: 7px; } .ss-item .chip { grid-column: 2; justify-self: start; } }
.ss-legend { display: grid; gap: 10px; margin: 14px 0 0; }
.ss-legend > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; }
.ss-legend dd { margin: 0; color: var(--text-2); font-size: .9rem; }
@media (max-width: 480px) { .ss-legend > div { grid-template-columns: 1fr; gap: 4px; } }