/* ============================================================================
   Backlink Exchange — Theme Stylesheet
   ============================================================================

   A single stylesheet for the entire app — blue & white theme.

   ┌──────────────────────────────────────────────────────────────────────────┐
   │ TABLE OF CONTENTS                                                        │
   │                                                                          │
   │  01. DESIGN TOKENS         CSS variables (colors, radius, shadow)        │
   │  02. RESET & BASE          html/body, links, * { box-sizing }            │
   │  03. KEYFRAMES             All @keyframes grouped together               │
   │  04. UTILITIES             flex, text-*, mt-*, mb-*, w-100               │
   │                                                                          │
   │  ── APP SHELL (logged-in user / admin) ───────────────────────────────── │
   │  05. SIDEBAR               .bx-sidebar, .bx-nav, .bx-brand               │
   │  06. TOPBAR                .bx-topbar, .bx-avatar, .bx-points-pill       │
   │  07. CONTENT WRAPPER       .bx-content, .bx-page-head                    │
   │                                                                          │
   │  ── COMPONENTS (used everywhere) ─────────────────────────────────────── │
   │  08. BUTTONS               .bx-btn, .bx-btn-primary, .bx-btn-glow etc.   │
   │  09. CARDS & GRID          .bx-card, .bx-grid.cols-*                     │
   │  10. STATS                 .bx-stat, .bx-stat-anim                       │
   │  11. FORMS                 .bx-field, .bx-input, .bx-textarea            │
   │  12. TABLE                 .bx-table                                     │
   │  13. BADGES                .bx-badge.{pending,approved,...}              │
   │  14. ALERTS                .bx-alert.{success,error,info}                │
   │  15. PAGINATION            .bx-pagination                                │
   │  16. TABS                  .bx-tabs                                      │
   │  17. EMPTY STATE           .bx-empty                                     │
   │  18. ACTIONS DROPDOWN      .bx-actions, .bx-actions-menu                 │
   │                                                                          │
   │  ── DASHBOARDS ───────────────────────────────────────────────────────── │
   │  19. DASH HERO             .bx-dash-hero (gradient hero card)            │
   │  20. ACTIVITY ROW          .bx-activity-row                              │
   │  21. DONUT CHART           .bx-donut                                     │
   │  22. ACTION CARD           .bx-action-card                               │
   │  23. TIMELINE              .bx-timeline                                  │
   │                                                                          │
   │  ── PUBLIC SITE (landing, blog, contact, auth) ───────────────────────── │
   │  24. PUBLIC NAV            .bx-public-nav, .bx-nav-toggle (hamburger)    │
   │  25. SIMPLE HERO           .bx-hero (legacy small hero)                  │
   │  26. ANIMATED HERO         .bx-hero-anim (gradient mesh + blobs)         │
   │  27. SPLIT HERO            .bx-hero-split (text + network graph)         │
   │  28. NETWORK GRAPH         .bx-network (SVG hub + nodes + chips)         │
   │  29. HERO EXTRAS           announce, meta pills, mini stats, marquee     │
   │  30. ROTATING WORD         .bx-rotate-word                               │
   │  31. WAVE DIVIDER          .bx-wave-divider                              │
   │  32. SECTIONS              .bx-section, h2 underline                     │
   │  33. FEATURE CARDS         .bx-feature (animated)                        │
   │  34. STEP BADGES           .bx-step-num (with spinning ring)             │
   │  35. TESTIMONIALS          .bx-testimonial                               │
   │  36. FAQ ACCORDION         .bx-faq                                       │
   │  37. VERSUS GRID           .bx-vs-grid (old way vs smart way)            │
   │  38. CTA BANNER            .bx-cta-banner                                │
   │  39. WEBSITE CARD          .bx-website-card                              │
   │  40. FOOTER                .bx-footer                                    │
   │                                                                          │
   │  ── BLOG ────────────────────────────────────────────────────────────── │
   │  41. BLOG CARDS            .bx-blog-card, .bx-blog-card-sm               │
   │  42. BLOG HERO             .bx-blog-hero (with stats + chips)            │
   │  43. ARTICLE LAYOUT        .bx-article-* (hero, body, sidebar)           │
   │  44. PROSE                 .bx-prose (HTML content rendering)            │
   │  45. AUTHOR CARD           .bx-author-card                               │
   │  46. BLOG FILTER PILL      .bx-blog-filter                               │
   │                                                                          │
   │  ── AUTH PAGES ─────────────────────────────────────────────────────── │
   │  47. AUTH LAYOUT           .bx-auth-wrap, .bx-auth-side, .bx-auth-form   │
   │                                                                          │
   │  ── CONTACT ────────────────────────────────────────────────────────── │
   │  48. CONTACT COMPACT       .bx-contact-compact (used in blog sidebar)    │
   │                                                                          │
   │  ── INTERACTIVE EXTRAS ─────────────────────────────────────────────── │
   │  49. SCROLL PROGRESS BAR   .bx-scroll-progress                           │
   │  50. SCROLL-TO-TOP FAB     .bx-scroll-top                                │
   │  51. SCROLL REVEAL         .bx-reveal                                    │
   │                                                                          │
   │  52. RESPONSIVE            All @media rules, mobile first → small phone  │
   └──────────────────────────────────────────────────────────────────────────┘

   Conventions:
   • All custom classes are prefixed with .bx-
   • Colors come from --bx-* CSS variables (see 01)
   • State suffixes use plain words: .active, .open, [open]
   • Modifier suffixes follow BEM-ish style: .bx-blog-card-sm (compact)
   • Animations: keyframes named bx-* (see section 03)
============================================================================ */


/* ============================================================================
   01. DESIGN TOKENS
   ============================================================================ */
:root {
    /* Brand colors */
    --bx-primary:        #1d4ed8;
    --bx-primary-dark:   #1e3a8a;
    --bx-primary-light:  #3b82f6;
    --bx-accent:         #60a5fa;

    /* Neutrals */
    --bx-bg:             #f8fafc;
    --bx-card:           #ffffff;
    --bx-text:           #0f172a;
    --bx-muted:          #64748b;
    --bx-border:         #e2e8f0;

    /* State colors */
    --bx-success:        #16a34a;
    --bx-warning:        #d97706;
    --bx-danger:         #dc2626;

    /* Shape */
    --bx-radius:         14px;
    --bx-shadow:         0 6px 24px -8px rgba(29, 78, 216, 0.15);
}


/* ============================================================================
   02. RESET & BASE
   ============================================================================ */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--bx-text);
    background: var(--bx-bg);
    line-height: 1.55;
}

a {
    color: var(--bx-primary);
    text-decoration: none;
    transition: color 0.15s;
}
a:hover { color: var(--bx-primary-dark); }


/* ============================================================================
   03. KEYFRAMES (animations used across the site)
   ============================================================================ */
@keyframes bx-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes bx-fade-in-left {
    to { opacity: 1; transform: translateX(0); }
}
@keyframes bx-text-shimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}
@keyframes bx-pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.4); opacity: 0.6; }
}
@keyframes bx-spin {
    to { transform: rotate(360deg); }
}
@keyframes bx-mesh {                                /* animated gradient hero */
    0%, 100% { background-position: 0% 50%, 100% 50%, 0% 100%, 100% 0%, 0% 50%; }
    50%      { background-position: 100% 50%, 0% 50%, 100% 0%, 0% 100%, 100% 50%; }
}
@keyframes bx-float {                               /* floating blob drift */
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -30px) scale(1.08); }
    66%      { transform: translate(-30px, 40px) scale(0.95); }
}
@keyframes bx-rotate {                              /* word rotator in hero */
    0%, 25%   { opacity: 1; transform: translateY(0); }
    33%, 100% { opacity: 0; transform: translateY(-120%); }
}
@keyframes bx-wave-shift {
    0%, 100% { d: path("M0,40 C300,90 600,0 900,50 C1200,90 1500,20 1800,50 L1800,100 L0,100 Z"); }
    50%      { d: path("M0,60 C300,20 600,90 900,30 C1200,10 1500,80 1800,40 L1800,100 L0,100 Z"); }
}
@keyframes bx-underline-grow {
    from { width: 0; }
    to   { width: 70px; }
}
@keyframes bx-marquee {                             /* infinite trust strip */
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes bx-shine {                               /* CTA banner light sweep */
    0%, 100% { left: -60%; }
    60%      { left: 120%; }
}
@keyframes bx-line-flow {                           /* network graph dashes */
    to { stroke-dashoffset: -56; }
}
@keyframes bx-node-pulse {                          /* network graph node pulse */
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.15); }
}
@keyframes bx-hub-breathe {                         /* network graph hub */
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%      { transform: scale(1.08); opacity: 0.92; }
}
@keyframes bx-chip-float {                          /* floating info chips */
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}


/* ============================================================================
   04. UTILITIES (single-purpose helper classes)
   ============================================================================ */
.flex          { display: flex; }
.flex-between  { display: flex; justify-content: space-between; align-items: center; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.text-sm      { font-size: 0.85rem; }
.text-muted   { color: var(--bx-muted); }
.text-primary { color: var(--bx-primary); }
.text-success { color: var(--bx-success); }
.text-danger  { color: var(--bx-danger); }

.w-100 { width: 100%; }


/* ============================================================================
   05. SIDEBAR (logged-in shell)
   ============================================================================ */
.bx-shell { display: flex; min-height: 100vh; }

.bx-sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--bx-primary-dark), var(--bx-primary));
    color: #fff;
    padding: 1.5rem 0;
    position: sticky; top: 0;
    height: 100vh;
    overflow-y: auto;
}
.bx-sidebar .bx-brand {
    font-size: 1.3rem; font-weight: 700;
    padding: 0 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    display: flex; align-items: center; gap: 0.6rem;
}
.bx-sidebar .bx-brand-mark {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem;
}
.bx-sidebar .bx-section {
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
    padding: 0.9rem 1.5rem 0.35rem;
}

.bx-nav { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.bx-nav a {
    display: flex; align-items: center; gap: 0.75rem;
    color: rgba(255,255,255,0.85);
    padding: 0.55rem 1.5rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}
.bx-nav a:hover  { background: rgba(255,255,255,0.08); color: #fff; }
.bx-nav a.active {
    background: rgba(255,255,255,0.12);
    border-left-color: #fff;
    color: #fff;
}
.bx-nav-icon { width: 18px; height: 18px; display: inline-block; opacity: 0.9; }


/* ============================================================================
   06. TOPBAR
   ============================================================================ */
.bx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.bx-topbar {
    background: #fff;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--bx-border);
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem;
    position: sticky; top: 0; z-index: 10;
}
.bx-topbar .bx-search input {
    border: 1px solid var(--bx-border);
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    width: 280px;
    background: #f1f5f9;
}
.bx-topbar .bx-user {
    display: flex; align-items: center; gap: 0.75rem;
    font-weight: 600;
}
.bx-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bx-primary-light), var(--bx-primary));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.bx-points-pill {
    background: #dbeafe; color: var(--bx-primary-dark);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-weight: 700; font-size: 0.85rem;
}


/* ============================================================================
   07. CONTENT WRAPPER & PAGE HEAD
   ============================================================================ */
.bx-content { padding: 1.75rem; flex: 1; }

.bx-page-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    flex-wrap: wrap; gap: 1rem;
    margin-bottom: 1.5rem;
}
.bx-page-head h1 { margin: 0 0 0.25rem; font-size: 1.65rem; color: var(--bx-primary-dark); }
.bx-page-head p  { margin: 0; color: var(--bx-muted); }


/* ============================================================================
   08. BUTTONS
   ============================================================================ */
.bx-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border: none;
    font-weight: 600; font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    position: relative; overflow: hidden;   /* needed for shimmer effect below */
}
.bx-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.bx-btn-sm       { padding: 0.4rem 0.85rem; font-size: 0.82rem; }

/* Primary */
.bx-btn-primary           { background: var(--bx-primary); color: #fff; }
.bx-btn-primary:hover     { background: var(--bx-primary-dark); color: #fff; }
.bx-btn-primary::after {                  /* shimmer sweep on hover */
    content: ''; position: absolute; top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}
.bx-btn-primary:hover::after { left: 120%; }

/* Outline */
.bx-btn-outline       { background: #fff; color: var(--bx-primary); border: 1px solid var(--bx-primary); }
.bx-btn-outline:hover { background: var(--bx-primary); color: #fff; }

/* Ghost */
.bx-btn-ghost       { background: transparent; color: var(--bx-text); }
.bx-btn-ghost:hover { background: #f1f5f9; }

/* Danger */
.bx-btn-danger       { background: var(--bx-danger); color: #fff; }
.bx-btn-danger:hover { background: #b91c1c; color: #fff; }

/* Glowing CTA — used in hero / CTA banner / auth */
.bx-btn-glow {
    background: linear-gradient(135deg, var(--bx-primary), var(--bx-primary-light));
    color: #fff;
    padding: 0.95rem 1.8rem;
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex; align-items: center; gap: 0.5rem;
    box-shadow: 0 12px 30px -10px rgba(29, 78, 216, 0.6);
    transition: transform 0.2s, box-shadow 0.2s;
}
.bx-btn-glow:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -10px rgba(29, 78, 216, 0.7);
}
.bx-btn-glow::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35), transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.7s;
}
.bx-btn-glow:hover::after { transform: translateX(100%); }


/* ============================================================================
   09. CARDS & GRID
   ============================================================================ */
.bx-card {
    background: var(--bx-card);
    border-radius: var(--bx-radius);
    padding: 1.25rem;
    border: 1px solid var(--bx-border);
    box-shadow: var(--bx-shadow);
}
.bx-card-h {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem;
}
.bx-card-h h3 { margin: 0; font-size: 1.05rem; color: var(--bx-primary-dark); }

/* Strict N-column grid that always shows N items per row on desktop.
   Responsive collapse handled in section 52. */
.bx-grid          { display: grid; gap: 1.25rem; }
.bx-grid.cols-4   { grid-template-columns: repeat(4, 1fr); }
.bx-grid.cols-3   { grid-template-columns: repeat(3, 1fr); }
.bx-grid.cols-2   { grid-template-columns: repeat(2, 1fr); }


/* ============================================================================
   10. STAT CARDS
   ============================================================================ */
/* Plain stat card (used in dashboards) */
.bx-stat {
    background: #fff;
    border-radius: var(--bx-radius);
    padding: 1.25rem;
    border: 1px solid var(--bx-border);
    position: relative; overflow: hidden;
}
.bx-stat::before {                                  /* top accent bar */
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--bx-primary), var(--bx-primary-light));
}
.bx-stat .label { font-size: 0.85rem; color: var(--bx-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.bx-stat .value { font-size: 1.9rem; font-weight: 700; color: var(--bx-primary-dark); margin: 0.4rem 0 0.2rem; }
.bx-stat .meta  { font-size: 0.8rem; color: var(--bx-muted); }
.bx-stat .stat-icon {
    position: absolute; top: 1rem; right: 1rem;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: #dbeafe; color: var(--bx-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
}

/* Animated stat card (used on landing) — gradient value, shimmer top bar */
.bx-stat-anim {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--bx-border);
    position: relative; overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.bx-stat-anim:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -16px rgba(29, 78, 216, 0.35); }
.bx-stat-anim::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--bx-primary-dark), var(--bx-primary), var(--bx-accent));
    background-size: 200% 100%;
    animation: bx-text-shimmer 3s linear infinite;
}
.bx-stat-anim .icon-bg {                            /* large faded icon in corner */
    position: absolute; top: -12px; right: -12px;
    font-size: 5rem;
    color: rgba(29, 78, 216, 0.06);
    font-weight: 800;
    pointer-events: none;
}
.bx-stat-anim .label { font-size: 0.78rem; color: var(--bx-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.bx-stat-anim .value {
    font-size: 2.1rem; font-weight: 800; margin: 0.3rem 0 0.2rem;
    background: linear-gradient(135deg, var(--bx-primary-dark), var(--bx-primary));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bx-stat-anim .meta { font-size: 0.82rem; color: var(--bx-muted); }


/* ============================================================================
   11. FORMS
   ============================================================================ */
.bx-field { margin-bottom: 1.1rem; }
.bx-field label {
    display: block;
    font-weight: 600; font-size: 0.9rem;
    color: var(--bx-text);
    margin-bottom: 0.4rem;
}
.bx-input, .bx-select, .bx-textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1.5px solid var(--bx-border);
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.bx-input:focus, .bx-select:focus, .bx-textarea:focus {
    outline: none;
    border-color: var(--bx-primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.bx-textarea { min-height: 130px; resize: vertical; }

.bx-help     { font-size: 0.8rem;  color: var(--bx-muted);  margin-top: 0.3rem; }
.bx-error    { font-size: 0.82rem; color: var(--bx-danger); margin-top: 0.3rem; }
.bx-checkbox { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; }


/* ============================================================================
   12. TABLE
   ============================================================================ */
.bx-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--bx-radius);
    overflow: hidden;
}
.bx-table th {
    background: #f1f5f9;
    color: var(--bx-primary-dark);
    text-align: left;
    padding: 0.85rem 1rem;
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.bx-table td {
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--bx-border);
    font-size: 0.92rem;
    vertical-align: middle;
}
.bx-table tr:hover td { background: #f8fafc; }


/* ============================================================================
   13. BADGES
   ============================================================================ */
.bx-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.03em;
}
.bx-badge.pending,
.bx-badge.open                                                        { background: #fef3c7; color: #92400e; }

.bx-badge.approved, .bx-badge.verified, .bx-badge.published,
.bx-badge.success,  .bx-badge.credit,   .bx-badge.resolved            { background: #dcfce7; color: #166534; }

.bx-badge.rejected, .bx-badge.suspended, .bx-badge.removed,
.bx-badge.failed,   .bx-badge.debit                                   { background: #fee2e2; color: #991b1b; }

.bx-badge.draft, .bx-badge.dismissed, .bx-badge.reviewing             { background: #e0e7ff; color: #3730a3; }

.bx-badge.dofollow                                                    { background: #dbeafe; color: #1e40af; }
.bx-badge.nofollow                                                    { background: #f1f5f9; color: #475569; }


/* ============================================================================
   14. ALERTS
   ============================================================================ */
.bx-alert {
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    border-left: 4px solid;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}
.bx-alert.success { background: #dcfce7; border-color: var(--bx-success); color: #166534; }
.bx-alert.error   { background: #fee2e2; border-color: var(--bx-danger);  color: #991b1b; }
.bx-alert.info    { background: #dbeafe; border-color: var(--bx-primary); color: var(--bx-primary-dark); }


/* ============================================================================
   15. PAGINATION
   ============================================================================ */
.bx-pagination { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1.5rem; }
.bx-pagination a,
.bx-pagination span {
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--bx-border);
    background: #fff;
    color: var(--bx-text);
    font-size: 0.85rem;
}
.bx-pagination a:hover { background: var(--bx-primary); color: #fff; border-color: var(--bx-primary); }
.bx-pagination .active,
.bx-pagination [aria-current="page"] span {
    background: var(--bx-primary);
    color: #fff;
    border-color: var(--bx-primary);
}


/* ============================================================================
   16. TABS
   ============================================================================ */
.bx-tabs {
    display: flex; gap: 0.25rem;
    border-bottom: 2px solid var(--bx-border);
    margin-bottom: 1.5rem;
}
.bx-tabs a {
    padding: 0.7rem 1.1rem;
    color: var(--bx-muted);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.bx-tabs a.active { color: var(--bx-primary); border-color: var(--bx-primary); }


/* ============================================================================
   17. EMPTY STATE
   ============================================================================ */
.bx-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--bx-muted);
}
.bx-empty .icon { font-size: 3rem; opacity: 0.4; margin-bottom: 1rem; }
.bx-empty h3    { color: var(--bx-text); margin: 0 0 0.5rem; }


/* ============================================================================
   18. ACTIONS DROPDOWN  (.bx-actions wraps a native <details> in admin tables)

   Markup expected:
       <details class="bx-actions">
           <summary>Actions <span class="caret">▾</span></summary>
           <div class="bx-actions-menu">
               <a href="...">View</a>
               <button class="success">Approve</button>
               <button class="danger">Delete</button>
           </div>
       </details>
   ============================================================================ */
.bx-actions { position: relative; display: inline-block; }

.bx-actions summary {
    cursor: pointer; list-style: none;
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border: 1.5px solid var(--bx-primary);
    border-radius: 8px;
    background: #fff;
    color: var(--bx-primary);
    font-weight: 600; font-size: 0.82rem;
    transition: background 0.15s, color 0.15s;
}
.bx-actions summary::-webkit-details-marker,
.bx-actions summary::marker            { display: none; content: ''; }
.bx-actions summary:hover,
.bx-actions[open] summary              { background: var(--bx-primary); color: #fff; }
.bx-actions .caret                     { display: inline-block; transition: transform 0.2s; }
.bx-actions[open] .caret               { transform: rotate(180deg); }

.bx-actions-menu {
    position: absolute; top: calc(100% + 6px); right: 0;
    z-index: 50;
    min-width: 180px;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid var(--bx-border);
    border-radius: 12px;
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.2);
    animation: bx-fade-up 0.18s ease;
}
.bx-actions-menu a,
.bx-actions-menu button {
    display: block; width: 100%;
    text-align: left;
    padding: 0.55rem 0.8rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    font: 500 0.88rem inherit;
    color: var(--bx-text);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
}
.bx-actions-menu a:hover,
.bx-actions-menu button:hover { background: #eff6ff; color: var(--bx-primary-dark); }
.bx-actions-menu .success          { color: #16a34a; }
.bx-actions-menu .success:hover    { background: #dcfce7; color: #166534; }
.bx-actions-menu .danger           { color: var(--bx-danger); }
.bx-actions-menu .danger:hover     { background: #fee2e2; color: #991b1b; }
.bx-actions-menu form              { margin: 0; }
.bx-actions-menu hr                { border: none; border-top: 1px solid var(--bx-border); margin: 0.25rem 0; }


/* ============================================================================
   19. DASH HERO (top card on user / admin dashboard)
   ============================================================================ */
.bx-dash-hero {
    background: linear-gradient(135deg, var(--bx-primary-dark) 0%, var(--bx-primary) 60%, var(--bx-primary-light) 100%);
    color: #fff;
    border-radius: 18px;
    padding: 2rem;
    margin-bottom: 1.75rem;
    position: relative; overflow: hidden;
    box-shadow: 0 12px 30px -10px rgba(29, 78, 216, 0.45);
}
.bx-dash-hero::before {
    content: ''; position: absolute; top: -40px; right: -40px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.bx-dash-hero::after {
    content: ''; position: absolute; bottom: -60px; right: 80px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}
.bx-dash-hero h1 { color: #fff; margin: 0 0 0.4rem; font-size: 1.8rem; }
.bx-dash-hero p  { margin: 0; opacity: 0.92; font-size: 1rem; max-width: 560px; }

.bx-dash-hero .hero-grid {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem;
    align-items: center;
    position: relative; z-index: 1;
}
.bx-dash-hero .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.bx-dash-hero .hero-stat {
    background: rgba(255,255,255,0.12); backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}
.bx-dash-hero .hero-stat .l { font-size: 0.7rem;  text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.8; }
.bx-dash-hero .hero-stat .v { font-size: 1.5rem; font-weight: 700; margin-top: 0.2rem; }

.bx-dash-hero .dash-actions {
    margin-top: 1.25rem;
    display: flex; gap: 0.6rem; flex-wrap: wrap;
    position: relative; z-index: 1;
}
.bx-dash-hero .dash-actions .bx-btn-primary       { background: #fff; color: var(--bx-primary-dark); }
.bx-dash-hero .dash-actions .bx-btn-primary:hover { background: #f1f5f9; }
.bx-dash-hero .dash-actions .bx-btn-outline       { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.bx-dash-hero .dash-actions .bx-btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }


/* ============================================================================
   20. ACTIVITY ROW (recent items list inside cards)
   ============================================================================ */
.bx-activity-row {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--bx-border);
}
.bx-activity-row:last-child { border-bottom: none; }
.bx-activity-dot {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: #dbeafe; color: var(--bx-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.bx-activity-row .body   { flex: 1; min-width: 0; }
.bx-activity-row .body .t { font-weight: 600; font-size: 0.92rem; }
.bx-activity-row .body .s { color: var(--bx-muted); font-size: 0.82rem; }


/* ============================================================================
   21. DONUT CHART (verification rate, etc.)
   ============================================================================ */
.bx-donut {
    --p: 50;                                        /* percentage 0-100 */
    --c: var(--bx-primary);                         /* fill color */
    width: 130px; height: 130px;
    border-radius: 50%;
    background: conic-gradient(var(--c) calc(var(--p) * 1%), #e2e8f0 0);
    display: inline-flex; align-items: center; justify-content: center;
    position: relative;
}
.bx-donut::after {                                  /* white center hole */
    content: ''; position: absolute; inset: 14px;
    background: #fff;
    border-radius: 50%;
}
.bx-donut .v {
    position: relative; z-index: 1;
    font-weight: 700; font-size: 1.4rem;
    color: var(--bx-primary-dark);
}
.bx-donut .v small {
    display: block;
    font-size: 0.65rem; font-weight: 600;
    color: var(--bx-muted);
    text-transform: uppercase; letter-spacing: 0.05em;
}


/* ============================================================================
   22. ACTION CARD (quick-action shortcuts on dashboard)
   ============================================================================ */
.bx-action-card {
    background: #fff;
    border: 1px solid var(--bx-border);
    border-radius: 14px;
    padding: 1.1rem;
    display: flex; gap: 0.85rem; align-items: flex-start;
    transition: all 0.15s;
}
.bx-action-card:hover {
    border-color: var(--bx-primary);
    transform: translateY(-2px);
    box-shadow: var(--bx-shadow);
}
.bx-action-card .icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: #dbeafe; color: var(--bx-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 700;
}
.bx-action-card h4 { margin: 0 0 0.2rem; font-size: 0.98rem; color: var(--bx-text); }
.bx-action-card p  { margin: 0; color: var(--bx-muted); font-size: 0.85rem; }


/* ============================================================================
   23. TIMELINE
   ============================================================================ */
.bx-timeline { position: relative; padding-left: 1.4rem; }
.bx-timeline::before {
    content: ''; position: absolute;
    left: 8px; top: 6px; bottom: 6px;
    width: 2px; background: var(--bx-border);
}
.bx-timeline-item { position: relative; padding: 0.5rem 0; }
.bx-timeline-item::before {
    content: ''; position: absolute;
    left: -22px; top: 12px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--bx-primary);
}
.bx-timeline-item.credit::before { border-color: var(--bx-success); }
.bx-timeline-item.debit::before  { border-color: var(--bx-danger); }


/* ============================================================================
   24. PUBLIC NAV  (top nav on landing/blog/contact) + HAMBURGER
   ============================================================================ */
.bx-public-nav {
    background: #fff;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--bx-border);
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 50;
}
.bx-public-nav .brand {
    font-size: 1.4rem; font-weight: 800;
    color: var(--bx-primary-dark);
    display: flex; align-items: center; gap: 0.6rem;
}
.bx-public-nav .nav-links a {
    margin: 0 0.65rem;
    color: var(--bx-text);
    font-weight: 500;
}
.bx-public-nav .nav-links a:hover { color: var(--bx-primary); }

/* Make sure CTA buttons in nav keep their white text (defeats the inherited dark color above) */
.bx-public-nav .nav-links a.bx-btn-primary,
.bx-public-nav .nav-links a.bx-btn-primary:hover { color: #fff !important; }
.bx-public-nav .nav-links a.bx-btn-outline       { color: var(--bx-primary); }
.bx-public-nav .nav-links a.bx-btn-outline:hover { color: #fff; }

/* Hamburger toggle — hidden on desktop, shown <= 768px (see section 52). */
.bx-nav-toggle {
    display: none;
    width: 40px; height: 40px;
    border: 1px solid var(--bx-border);
    border-radius: 8px;
    background: #fff;
    padding: 0;
    cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 5px;
}
.bx-nav-toggle span {
    display: block;
    width: 20px; height: 2px;
    background: var(--bx-primary-dark);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.25s, opacity 0.2s;
}
.bx-nav-toggle.active span:nth-child(1) { transform: translateY(7px)  rotate(45deg); }
.bx-nav-toggle.active span:nth-child(2) { opacity: 0; }
.bx-nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================================
   25. SIMPLE HERO  (legacy small hero — kept for reference, not used now)
   ============================================================================ */
.bx-hero {
    background: linear-gradient(135deg, var(--bx-primary-dark), var(--bx-primary));
    color: #fff;
    padding: 5rem 1.5rem;
    text-align: center;
    position: relative; overflow: hidden;
}
.bx-hero::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
    pointer-events: none;
}
.bx-hero .container       { position: relative; max-width: 900px; margin: 0 auto; }
.bx-hero h1               { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 1rem; }
.bx-hero p                { font-size: 1.2rem; opacity: 0.95; max-width: 700px; margin: 0 auto 2rem; }
.bx-hero .hero-actions    { display: inline-flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.bx-hero .bx-btn-primary       { background: #fff; color: var(--bx-primary-dark); }
.bx-hero .bx-btn-primary:hover { background: #f1f5f9; color: var(--bx-primary-dark); }
.bx-hero .bx-btn-outline       { background: transparent; color: #fff; border-color: #fff; }
.bx-hero .bx-btn-outline:hover { background: #fff; color: var(--bx-primary-dark); }


/* ============================================================================
   26. ANIMATED HERO  (.bx-hero-anim — gradient mesh + 3 floating blobs)
   ============================================================================ */
.bx-hero-anim {
    position: relative; overflow: hidden;
    color: #fff;
    padding: 7rem 1.5rem 6rem;
    background:
        radial-gradient(circle at 12% 18%, rgba(96, 165, 250, 0.50) 0, transparent 38%),
        radial-gradient(circle at 88% 22%, rgba(59, 130, 246, 0.45) 0, transparent 42%),
        radial-gradient(circle at 22% 88%, rgba(124, 58, 237, 0.45) 0, transparent 45%),
        radial-gradient(circle at 78% 78%, rgba(14, 165, 233, 0.45) 0, transparent 42%),
        linear-gradient(135deg, #0b1c4d 0%, #1e3a8a 45%, #1d4ed8 100%);
    background-size: 200% 200%;
    animation: bx-mesh 18s ease infinite;
}
.bx-hero-anim::before {                             /* subtle dot grid overlay */
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
    background-size: 28px 28px;
    opacity: 0.6;
    pointer-events: none;
}
.bx-hero-anim .blob {                               /* large blurred color blobs */
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
}
.bx-hero-anim .blob.b1 { width: 360px; height: 360px; background: #60a5fa; top: -120px; left: -100px;  animation: bx-float 14s ease-in-out infinite; }
.bx-hero-anim .blob.b2 { width: 320px; height: 320px; background: #7c3aed; bottom: -100px; right: -80px; animation: bx-float 16s ease-in-out infinite reverse; }
.bx-hero-anim .blob.b3 { width: 240px; height: 240px; background: #22d3ee; top: 30%; right: 12%;        animation: bx-float 12s ease-in-out infinite 2s; opacity: 0.45; }

.bx-hero-anim .container {
    position: relative; z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.bx-hero-anim .eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
    animation: bx-fade-up 0.7s 0.05s both;
}
.bx-hero-anim .eyebrow .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.25);
    animation: bx-pulse 1.6s infinite;
}

.bx-hero-anim h1 {
    font-size: 3.6rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
    color: #fff;
    animation: bx-fade-up 0.8s 0.15s both;
}
.bx-hero-anim h1 .grad {                            /* shimmering gradient text */
    background: linear-gradient(90deg, #93c5fd, #c4b5fd, #22d3ee);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    animation: bx-text-shimmer 4s linear infinite;
}
.bx-hero-anim p.sub {
    font-size: 1.2rem; line-height: 1.55;
    opacity: 0.95;
    max-width: 720px; margin: 0 auto 2rem;
    animation: bx-fade-up 0.8s 0.3s both;
}

.bx-hero-anim .actions {
    display: inline-flex; gap: 0.85rem; flex-wrap: wrap; justify-content: center;
    animation: bx-fade-up 0.8s 0.45s both;
}
.bx-hero-anim .actions .bx-btn-primary {
    background: #fff;
    color: var(--bx-primary-dark);
    padding: 0.85rem 1.6rem;
    font-weight: 700;
    box-shadow: 0 10px 30px -10px rgba(255,255,255,0.45);
}
.bx-hero-anim .actions .bx-btn-primary:hover {
    background: #f1f5f9;
    color: var(--bx-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px -10px rgba(255,255,255,0.6);
}
.bx-hero-anim .actions .bx-btn-outline {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(6px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 0.85rem 1.6rem;
    font-weight: 600;
}
.bx-hero-anim .actions .bx-btn-outline:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    transform: translateY(-2px);
}

.bx-hero-anim .trust-row {
    margin-top: 2.5rem;
    display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
    opacity: 0.85;
    font-size: 0.85rem;
    animation: bx-fade-up 0.8s 0.6s both;
}
.bx-hero-anim .trust-row span        { display: inline-flex; align-items: center; gap: 0.4rem; }
.bx-hero-anim .trust-row .tick       { color: #4ade80; font-weight: 700; }


/* ============================================================================
   27. SPLIT HERO  (.bx-hero-split — 2-column layout: copy left, graph right)
   ============================================================================ */
.bx-hero-split { padding: 0; text-align: left; }
.bx-hero-split .container {
    text-align: left;
    max-width: 1240px;
    padding: 1rem 1.5rem 3rem;
}
.bx-hero-grid {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem;
    align-items: center;
    position: relative; z-index: 2;
    padding-top: 2.5rem;
}
.bx-hero-copy .eyebrow    { animation: bx-fade-up 0.7s 0.05s both; }
.bx-hero-copy h1          { font-size: 3.4rem; }
.bx-hero-copy .actions    { justify-content: flex-start; }
.bx-hero-copy .trust-row  { justify-content: flex-start; margin-top: 2rem; }


/* ============================================================================
   28. NETWORK GRAPH  (.bx-network — animated SVG hub + nodes)
   ============================================================================ */
.bx-network {
    position: relative;
    aspect-ratio: 1 / 1;
    animation: bx-fade-up 1s 0.4s both;
}
.bx-network svg {
    width: 100%; height: 100%;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.35));
}

/* dashed connection lines flowing from center to satellites */
.bx-network .bx-net-lines line {
    stroke-dasharray: 6 8;
    animation: bx-line-flow 2.4s linear infinite;
}

/* satellite nodes pulse independently */
.bx-net-nodes circle {
    transform-box: fill-box; transform-origin: center;
    animation: bx-node-pulse 3s ease-in-out infinite;
}
.bx-net-nodes circle:nth-child(1) { animation-delay: 0s; }
.bx-net-nodes circle:nth-child(2) { animation-delay: 0.4s; }
.bx-net-nodes circle:nth-child(3) { animation-delay: 0.8s; }
.bx-net-nodes circle:nth-child(4) { animation-delay: 1.2s; }
.bx-net-nodes circle:nth-child(5) { animation-delay: 1.6s; }
.bx-net-nodes circle:nth-child(6) { animation-delay: 2.0s; }

/* center hub breathes */
.bx-net-hub circle {
    transform-box: fill-box; transform-origin: center;
    animation: bx-hub-breathe 3.5s ease-in-out infinite;
}

/* moving particles along lines */
.bx-net-particles circle { filter: drop-shadow(0 0 6px #22d3ee); }

/* rotating orbit rings around the hub */
.bx-orbit            { transform-origin: 240px 240px; transform-box: view-box; }
.bx-orbit.slow       { animation: bx-spin 50s linear infinite; }
.bx-orbit.fast       { animation: bx-spin 28s linear infinite reverse; }

/* glassmorphic info chips floating around the graph */
.bx-net-chip {
    position: absolute;
    background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
    color: #1e3a8a;
    font-weight: 700; font-size: 0.78rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 14px 30px -10px rgba(0,0,0,0.4);
    display: inline-flex; align-items: center; gap: 0.45rem;
    animation: bx-chip-float 5s ease-in-out infinite;
}
.bx-net-chip .dot                 { width: 8px; height: 8px; border-radius: 50%; }
.bx-net-chip .dot.green           { background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,0.2); }
.bx-net-chip .dot.blue            { background: #2563eb; box-shadow: 0 0 0 4px rgba(37,99,235,0.2); }
.bx-net-chip .dot.purple          { background: #7c3aed; box-shadow: 0 0 0 4px rgba(124,58,237,0.2); }
.bx-net-chip.c1                   { top: 6%;     left: -4%;  animation-delay: 0s; }
.bx-net-chip.c2                   { top: 46%;    right: -6%; animation-delay: 1.5s; }
.bx-net-chip.c3                   { bottom: 4%;  left: 12%;  animation-delay: 3s; }


/* ============================================================================
   29. HERO EXTRAS  (announce bar, meta pills, mini stats, marquee)
   ============================================================================ */
/* Top bar inside hero — announcement on left, meta pills on right */
.bx-hero-top {
    position: relative; z-index: 3;
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; flex-wrap: wrap;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    max-width: 1240px; margin: 0 auto;
    animation: bx-fade-up 0.6s ease;
}
.bx-announce {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: rgba(255,255,255,0.10); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.45rem 0.95rem 0.45rem 0.45rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.85rem; font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}
.bx-announce:hover               { background: rgba(255,255,255,0.18); transform: translateY(-1px); color: #fff; }
.bx-announce .badge {
    background: linear-gradient(135deg, #22d3ee, #6366f1);
    color: #fff;
    font-size: 0.65rem; font-weight: 800; letter-spacing: 0.06em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}
.bx-announce .arrow              { opacity: 0.8; transition: transform 0.2s; }
.bx-announce:hover .arrow        { transform: translateX(3px); }

.bx-hero-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.bx-meta-pill {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.06); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.10);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem; font-weight: 600;
}

/* Mini-stats row inside hero copy */
.bx-mini-stats {
    margin-top: 2rem;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem;
    max-width: 480px;
    animation: bx-fade-up 0.8s 0.7s both;
}
.bx-mini-stats .ms {
    background: rgba(255,255,255,0.08); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 0.7rem 0.65rem;
    text-align: center;
}
.bx-mini-stats .ms .v {
    font-size: 1.35rem; font-weight: 800; line-height: 1.1;
    color: #fff;
    background: linear-gradient(90deg, #ffffff, #c4b5fd);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.bx-mini-stats .ms .l { font-size: 0.7rem; font-weight: 600; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.2rem; }

/* Trust marquee strip pinned at the bottom of the hero */
.bx-hero-marquee {
    position: relative; z-index: 3;
    display: flex; align-items: center; gap: 1.25rem;
    padding: 0 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.18); backdrop-filter: blur(4px);
}
.bx-hero-marquee .label {
    flex-shrink: 0;
    color: rgba(255,255,255,0.6);
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
}
.bx-marquee {
    flex: 1; min-width: 0;
    overflow: hidden;
    padding: 0.9rem 0;
    background: transparent;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.bx-marquee-track {
    display: inline-flex; gap: 3rem;
    white-space: nowrap;
    animation: bx-marquee 28s linear infinite;
}
.bx-marquee-track span {
    color: rgba(255,255,255,0.78);
    font-weight: 700; font-size: 0.95rem;
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.bx-marquee-track span::before { content: '◆'; color: #22d3ee; }


/* ============================================================================
   30. ROTATING WORD  (.bx-rotate-word — used inside h1)
   Markup expected:
       <span class="bx-rotate-word">
           <span>SEO</span><span>authority</span><span>rankings</span>
       </span>
   ============================================================================ */
.bx-rotate-word {
    display: inline-block; vertical-align: bottom;
    position: relative;
    height: 1.2em; min-width: 8.5ch;
    overflow: hidden;
    text-align: left;
}
.bx-rotate-word span {
    display: block; position: absolute;
    left: 0; right: 0; top: 0;
    opacity: 0; transform: translateY(120%);
    background: linear-gradient(90deg, #93c5fd, #c4b5fd, #22d3ee);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    animation: bx-rotate 9s infinite;
}
.bx-rotate-word span:nth-child(1) { animation-delay: 0s; }
.bx-rotate-word span:nth-child(2) { animation-delay: 3s; }
.bx-rotate-word span:nth-child(3) { animation-delay: 6s; }


/* ============================================================================
   31. WAVE DIVIDER  (.bx-wave-divider — used on /blog hero)
   ============================================================================ */
.bx-wave-divider          { display: block; width: 100%; height: 80px; margin-top: -1px; }
.bx-wave-divider path     { animation: bx-wave-shift 14s ease-in-out infinite; transform-origin: center; }


/* ============================================================================
   32. SECTIONS  (.bx-section — vertical-rhythm wrapper on public pages)
   ============================================================================ */
.bx-section            { padding: 4rem 1.5rem; }
.bx-section.alt        { background: #fff; }
.bx-section .container { max-width: 1200px; margin: 0 auto; }
.bx-section h2 {
    position: relative; display: inline-block;
    padding-bottom: 0.5rem;
    margin: 0 0 0.5rem;
    font-size: 2rem; color: var(--bx-primary-dark); text-align: center;
}
.bx-section .container > h2 { display: block; }
.bx-section h2::after {                             /* growing gradient underline */
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 70px; height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bx-primary), var(--bx-accent));
    animation: bx-underline-grow 1s ease-out;
}
.bx-section .lede {
    text-align: center;
    color: var(--bx-muted);
    margin: 0 auto 2.5rem;
    max-width: 600px;
}


/* ============================================================================
   33. FEATURE CARDS  (.bx-feature — landing features grid)
   ============================================================================ */
.bx-feature {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 1px solid var(--bx-border);
    border-radius: 18px;
    padding: 1.75rem 1.4rem;
    text-align: center;
    position: relative; overflow: hidden;
    transform-style: preserve-3d; perspective: 1000px;
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1),
                box-shadow 0.3s,
                border-color 0.3s;
}
.bx-feature::before {                               /* invisible gradient border on hover */
    content: ''; position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    transition: background 0.3s;
}
.bx-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px -18px rgba(29, 78, 216, 0.35);
    border-color: transparent;
}
.bx-feature:hover::before {
    background: linear-gradient(135deg, var(--bx-primary), var(--bx-accent));
}
.bx-feature .icon {
    width: 60px; height: 60px;
    margin: 0 auto 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: var(--bx-primary-dark);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800;
    box-shadow: 0 8px 18px -6px rgba(29, 78, 216, 0.3);
    transition: transform 0.3s, background 0.3s, color 0.3s;
    position: relative;
}
.bx-feature:hover .icon {
    transform: rotate(-8deg) scale(1.08);
    background: linear-gradient(135deg, var(--bx-primary), var(--bx-primary-light));
    color: #fff;
}
.bx-feature h3 { margin: 0 0 0.5rem; font-size: 1.1rem; font-weight: 700; color: var(--bx-primary-dark); }
.bx-feature p  { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--bx-muted); }


/* ============================================================================
   34. STEP BADGES  (.bx-step-num — circular numbered badges on "How it works")
   ============================================================================ */
.bx-step-num {
    width: 56px; height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bx-primary), var(--bx-primary-dark));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 800;
    box-shadow: 0 10px 24px -8px rgba(29, 78, 216, 0.5);
    position: relative;
}
.bx-step-num::after {                               /* slow-spinning dashed halo */
    content: ''; position: absolute; inset: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(29, 78, 216, 0.25);
    animation: bx-spin 12s linear infinite;
}


/* ============================================================================
   35. TESTIMONIALS  (.bx-testimonial)
   ============================================================================ */
.bx-testimonial {
    background: #fff;
    border: 1px solid var(--bx-border);
    border-radius: 18px;
    padding: 1.75rem;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.bx-testimonial:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px -18px rgba(29, 78, 216, 0.3);
}
.bx-testimonial::before {                           /* big translucent " mark */
    content: '\201C';
    position: absolute; top: -10px; left: 20px;
    font: 5rem/1 Georgia, serif;
    color: var(--bx-primary);
    opacity: 0.18;
}
.bx-testimonial .stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; margin-bottom: 0.6rem; }
.bx-testimonial .quote { color: #334155; font-size: 0.98rem; line-height: 1.6; margin: 0 0 1.2rem; }
.bx-testimonial .who   { display: flex; align-items: center; gap: 0.8rem; }
.bx-testimonial .who .av {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bx-primary), var(--bx-primary-dark));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.bx-testimonial .who .name { font-weight: 700; color: var(--bx-primary-dark); }
.bx-testimonial .who .role { font-size: 0.82rem; color: var(--bx-muted); }


/* ============================================================================
   36. FAQ ACCORDION  (.bx-faq — uses native <details>)
   ============================================================================ */
.bx-faq {
    background: #fff;
    border: 1px solid var(--bx-border);
    border-radius: 14px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bx-faq[open] {
    border-color: var(--bx-primary);
    box-shadow: 0 10px 24px -10px rgba(29, 78, 216, 0.2);
}
.bx-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.3rem;
    font-weight: 700;
    color: var(--bx-text);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.bx-faq summary::-webkit-details-marker { display: none; }
.bx-faq summary::after {
    content: '+';
    font-size: 1.5rem; font-weight: 300; line-height: 1;
    color: var(--bx-primary);
    transition: transform 0.3s;
}
.bx-faq[open] summary::after { transform: rotate(45deg); }
.bx-faq .answer {
    padding: 0 1.3rem 1.2rem;
    color: var(--bx-muted);
    font-size: 0.95rem; line-height: 1.65;
    animation: bx-fade-up 0.4s ease;
}


/* ============================================================================
   37. VERSUS GRID  (.bx-vs-grid — "old way" vs "smart way" comparison)
   ============================================================================ */
.bx-vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.bx-vs-card { padding: 1.75rem; border-radius: 18px; }
.bx-vs-card h3 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.bx-vs-card.bad        { background: #fef2f2; border: 1px solid #fecaca; }
.bx-vs-card.bad h3     { color: #991b1b; }
.bx-vs-card.bad li::before  { content: '✕'; color: #dc2626; font-weight: 700; }
.bx-vs-card.good       { background: linear-gradient(135deg, #eff6ff, #dbeafe); border: 1px solid #bfdbfe; }
.bx-vs-card.good h3    { color: var(--bx-primary-dark); }
.bx-vs-card.good li::before { content: '✓'; color: #16a34a; font-weight: 700; }
.bx-vs-card ul { list-style: none; padding: 0; margin: 0; }
.bx-vs-card li {
    padding: 0.6rem 0 0.6rem 1.8rem;
    line-height: 1.45;
    position: relative;
}
.bx-vs-card li::before { position: absolute; left: 0; top: 0.6rem; font-size: 1rem; }


/* ============================================================================
   38. CTA BANNER  (.bx-cta-banner — final big call-to-action card)
   ============================================================================ */
.bx-cta-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 60%, #6366f1 100%);
    color: #fff;
    border-radius: 24px;
    padding: 3.5rem 2rem;
    text-align: center;
    position: relative; overflow: hidden;
    box-shadow: 0 30px 60px -25px rgba(29, 78, 216, 0.5);
}
.bx-cta-banner::before {                            /* moving light sweep */
    content: ''; position: absolute;
    top: -50%; left: -10%;
    width: 60%; height: 200%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: skewX(-20deg);
    animation: bx-shine 7s ease-in-out infinite;
}
.bx-cta-banner h2       { color: #fff; font-size: 2.2rem; margin: 0 0 0.6rem; position: relative; }
.bx-cta-banner p        { opacity: 0.92; max-width: 620px; margin: 0 auto 1.5rem; position: relative; }
.bx-cta-banner .bx-btn  { position: relative; padding: 0.95rem 1.8rem; font-weight: 700; background: #fff; color: var(--bx-primary-dark); }
.bx-cta-banner .bx-btn:hover { background: #f1f5f9; color: var(--bx-primary-dark); transform: translateY(-2px); }


/* ============================================================================
   39. WEBSITE CARD  (.bx-website-card — partner site listings)
   ============================================================================ */
.bx-website-card {
    background: #fff;
    border: 1px solid var(--bx-border);
    border-radius: var(--bx-radius);
    padding: 1.2rem;
    transition: all 0.15s;
}
.bx-website-card:hover {
    box-shadow: var(--bx-shadow);
    border-color: var(--bx-primary-light);
}
.bx-website-card h3        { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--bx-primary-dark); }
.bx-website-card .domain   { color: var(--bx-muted); font-size: 0.85rem; word-break: break-all; }
.bx-website-card .meta     { display: flex; gap: 1rem; margin-top: 0.8rem; font-size: 0.8rem; color: var(--bx-muted); }
.bx-website-card .meta b   { color: var(--bx-primary-dark); }


/* ============================================================================
   40. FOOTER  (.bx-footer)
   ============================================================================ */
.bx-footer {
    background: var(--bx-primary-dark);
    color: rgba(255,255,255,0.85);
    padding: 2.5rem 1.5rem 1.25rem;
}
.bx-footer .container {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
.bx-footer h4    { color: #fff; margin: 0 0 0.85rem; font-size: 0.95rem; }
.bx-footer a     { display: block; padding: 0.2rem 0; color: rgba(255,255,255,0.78); font-size: 0.9rem; }
.bx-footer a:hover { color: #fff; }
.bx-footer .copy {
    text-align: center;
    padding-top: 1.5rem; margin-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.85rem;
}


/* ============================================================================
   41. BLOG CARDS  (.bx-blog-card — default + .bx-blog-card-sm compact)
   ============================================================================ */
.bx-blog-card {
    background: #fff;
    border: 1px solid var(--bx-border);
    border-radius: var(--bx-radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: all 0.15s;
}
.bx-blog-card:hover { box-shadow: var(--bx-shadow); transform: translateY(-4px); }
.bx-blog-card .cover {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #dbeafe, #93c5fd);
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    color: var(--bx-primary-dark);
    font-weight: 800; font-size: 2rem;
}
.bx-blog-card .body    { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.bx-blog-card .cat     { color: var(--bx-primary); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.bx-blog-card h3       { margin: 0 0 0.4rem; font-size: 1.1rem; line-height: 1.4; color: var(--bx-text); }
.bx-blog-card .excerpt { flex: 1; margin: 0; color: var(--bx-muted); font-size: 0.92rem; }
.bx-blog-card .meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--bx-border);
    font-size: 0.8rem; color: var(--bx-muted);
}

/* Compact variant (used for 4-per-row blog index grid) */
.bx-blog-card-sm .cover    { aspect-ratio: 4/3; font-size: 1.6rem; }
.bx-blog-card-sm .body     { padding: 0.95rem 1rem 1rem; }
.bx-blog-card-sm .cat      { font-size: 0.68rem; margin-bottom: 0.3rem; }
.bx-blog-card-sm h3        { font-size: 0.98rem; line-height: 1.3; margin: 0 0 0.35rem; }
.bx-blog-card-sm .excerpt  { font-size: 0.84rem; line-height: 1.45; }
.bx-blog-card-sm .meta     { margin-top: 0.7rem; padding-top: 0.6rem; font-size: 0.72rem; }


/* ============================================================================
   42. BLOG HERO  (.bx-blog-hero — stats + category chips inside gradient banner)
   ============================================================================ */
.bx-blog-hero                       { padding: 4rem 1.5rem 3rem; }
.bx-blog-hero .container            { text-align: center; max-width: 980px; }
.bx-blog-hero h1                    { font-size: 3rem; color: #fff; margin: 0.5rem 0 1rem; }

.bx-blog-hero-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem;
    max-width: 560px; margin: 1.5rem auto 1.75rem;
    animation: bx-fade-up 0.8s 0.4s both;
}
.bx-blog-hero-stats .bs {
    background: rgba(255,255,255,0.08); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    padding: 0.75rem 0.65rem;
    text-align: center;
}
.bx-blog-hero-stats .bs .v {
    font-size: 1.5rem; font-weight: 800; line-height: 1.1;
    color: #fff;
    background: linear-gradient(90deg, #ffffff, #c4b5fd);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.bx-blog-hero-stats .bs .l { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.7); margin-top: 0.2rem; }

.bx-blog-hero-chips {
    display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
    animation: bx-fade-up 0.8s 0.55s both;
}
.bx-blog-hero-chips .chip {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(255,255,255,0.08); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.92);
    font-size: 0.85rem; font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.bx-blog-hero-chips .chip:hover   { background: rgba(255,255,255,0.18); color: #fff; transform: translateY(-2px); }
.bx-blog-hero-chips .chip.active  { background: #fff; color: var(--bx-primary-dark); border-color: #fff; }
.bx-blog-hero-chips .chip small {
    background: rgba(0,0,0,0.12); color: inherit;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem; font-weight: 700;
}
.bx-blog-hero-chips .chip.active small { background: rgba(29,78,216,0.15); color: var(--bx-primary-dark); }


/* ============================================================================
   43. ARTICLE LAYOUT  (used on single blog post page)

   NOTE on sticky sidebar: .bx-article-layout intentionally has NO align-items
   declared. Default (stretch) makes the sidebar grid cell match the article's
   full height, which is what position:sticky needs as its containing block —
   the form pins while the article scrolls AND releases at the article's end.
   ============================================================================ */
.bx-article-hero {
    background: linear-gradient(135deg, var(--bx-primary-dark), var(--bx-primary));
    color: #fff;
    padding: 3.5rem 1.5rem;
    text-align: center;
}
.bx-article-hero .container { max-width: 900px; margin: 0 auto; }
.bx-article-hero h1         { font-size: 2.5rem; line-height: 1.2; margin: 0.5rem 0 0.75rem; }
.bx-article-hero .meta {
    display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
    opacity: 0.9; font-size: 0.9rem;
}

.bx-article-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem;
}
.bx-article-main {
    background: #fff;
    border: 1px solid var(--bx-border);
    border-radius: 14px;
    padding: 2.5rem;
    box-shadow: var(--bx-shadow);
    min-width: 0;
}
.bx-article-side                          { min-width: 0; }
.bx-article-side .bx-article-sticky       { position: sticky; top: 90px; }

/* Legacy centered article body (used elsewhere) */
.bx-article-body {
    max-width: 760px;
    margin: -2rem auto 3rem;
    background: #fff;
    border: 1px solid var(--bx-border);
    border-radius: var(--bx-radius);
    padding: 2.5rem;
    box-shadow: var(--bx-shadow);
}
.bx-article-body p     { line-height: 1.75; font-size: 1.05rem; color: #334155; margin: 0 0 1.1rem; }
.bx-article-body h2,
.bx-article-body h3    { color: var(--bx-primary-dark); margin-top: 1.8rem; }
.bx-article-body img   { max-width: 100%; border-radius: 10px; }
.bx-article-body a     { color: var(--bx-primary); border-bottom: 1px solid var(--bx-primary-light); }
.bx-article-body blockquote {
    border-left: 4px solid var(--bx-primary);
    margin: 1.5rem 0;
    padding: 0.5rem 1.25rem;
    background: #eff6ff;
    color: var(--bx-primary-dark);
    border-radius: 6px;
}


/* ============================================================================
   44. PROSE  (.bx-prose — typography for raw HTML blog content)
   ============================================================================ */
.bx-prose p          { line-height: 1.75; font-size: 1.05rem; color: #334155; margin: 0 0 1.1rem; }
.bx-prose h2,
.bx-prose h3         { color: var(--bx-primary-dark); margin: 1.8rem 0 0.7rem; }
.bx-prose img        { max-width: 100%; border-radius: 10px; }
.bx-prose a          { color: var(--bx-primary); border-bottom: 1px solid var(--bx-primary-light); }
.bx-prose blockquote {
    border-left: 4px solid var(--bx-primary);
    margin: 1.5rem 0;
    padding: 0.5rem 1.25rem;
    background: #eff6ff;
    color: var(--bx-primary-dark);
    border-radius: 6px;
}
.bx-prose ul,
.bx-prose ol         { padding-left: 1.4rem; line-height: 1.7; color: #334155; }
.bx-prose li         { margin-bottom: 0.4rem; }
.bx-prose code       { background: #f1f5f9; padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.9em; }


/* ============================================================================
   45. AUTHOR CARD  (.bx-author-card — shown below article body)
   ============================================================================ */
.bx-author-card {
    display: flex; gap: 1rem; align-items: flex-start;
    margin-top: 2.5rem;
    padding: 1.4rem;
    background: linear-gradient(180deg, #f8fafc, #eff6ff);
    border: 1px solid var(--bx-border);
    border-radius: 12px;
}
.bx-author-card img,
.bx-author-card .avatar-fallback {
    flex-shrink: 0;
    width: 72px; height: 72px;
    border-radius: 50%;
    object-fit: cover;
}
.bx-author-card .avatar-fallback {
    background: linear-gradient(135deg, var(--bx-primary-dark), var(--bx-primary));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 700;
}


/* ============================================================================
   46. BLOG FILTER PILL  (.bx-blog-filter — "Filtered by …" badge)
   ============================================================================ */
.bx-blog-filter {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: #eff6ff;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
}


/* ============================================================================
   47. AUTH LAYOUT  (login & register split screen)
   ============================================================================ */
.bx-auth-wrap {
    min-height: 100vh;
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--bx-bg);
}
.bx-auth-side {
    position: relative; overflow: hidden;
    color: #fff;
    padding: 3rem;
    display: flex; flex-direction: column; justify-content: center;
    background:
        radial-gradient(circle at 15% 25%, rgba(96, 165, 250, 0.55) 0, transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(124, 58, 237, 0.50) 0, transparent 42%),
        radial-gradient(circle at 25% 85%, rgba(14, 165, 233, 0.50) 0, transparent 45%),
        linear-gradient(135deg, #0b1c4d 0%, #1e3a8a 50%, #1d4ed8 100%);
    background-size: 200% 200%;
    animation: bx-mesh 18s ease infinite;
}
.bx-auth-side::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: 0.5;
    pointer-events: none;
}
.bx-auth-side > *  { position: relative; z-index: 2; }
.bx-auth-side h2   { font-size: 2.2rem; margin: 0 0 1rem; }
.bx-auth-side p    { font-size: 1.05rem; opacity: 0.92; max-width: 420px; }
.bx-auth-side .perks { margin-top: 2rem; list-style: none; padding: 0; }
.bx-auth-side .perks li {
    padding: 0.4rem 0;
    font-size: 1rem;
    opacity: 0; transform: translateX(-12px);
    animation: bx-fade-in-left 0.6s forwards;
}
.bx-auth-side .perks li:nth-child(1) { animation-delay: 0.3s; }
.bx-auth-side .perks li:nth-child(2) { animation-delay: 0.5s; }
.bx-auth-side .perks li:nth-child(3) { animation-delay: 0.7s; }
.bx-auth-side .perks li:nth-child(4) { animation-delay: 0.9s; }
.bx-auth-side .perks li::before {
    content: '✓';
    display: inline-block;
    width: 24px; height: 24px; line-height: 24px;
    text-align: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    margin-right: 0.6rem;
    font-weight: 700;
}

.bx-auth-form-wrap {
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
}
.bx-auth-form           { width: 100%; max-width: 420px; animation: bx-fade-up 0.7s ease; }
.bx-auth-form .bx-brand { font-size: 1.4rem; font-weight: 800; color: var(--bx-primary-dark); margin-bottom: 0.5rem; }
.bx-auth-form h1        { margin: 0 0 0.5rem; font-size: 1.7rem; color: var(--bx-text); }
.bx-auth-form .sub      { margin: 0 0 2rem; color: var(--bx-muted); }
.bx-auth-form .bx-input         { transition: border-color 0.2s, box-shadow 0.2s; }
.bx-auth-form .bx-input:focus   { box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.14); }


/* ============================================================================
   48. CONTACT FORM — COMPACT VARIANT  (.bx-contact-compact)
   Used inside blog read sidebar.
   ============================================================================ */
.bx-contact-compact                              { padding: 1.25rem 1.35rem; }
.bx-contact-compact .bx-card-h                   { margin-bottom: 0.9rem; }
.bx-contact-compact .bx-card-h h3                { font-size: 1.1rem; }
.bx-contact-compact .bx-field                    { margin-bottom: 0.9rem; }
.bx-contact-compact .bx-field label              { font-size: 0.85rem; margin-bottom: 0.3rem; }
.bx-contact-compact .bx-input,
.bx-contact-compact .bx-textarea                 { padding: 0.6rem 0.8rem; font-size: 0.95rem; border-width: 1.5px; }
.bx-contact-compact .bx-textarea                 { min-height: 100px; }
.bx-contact-compact .bx-btn                      { padding: 0.7rem 1rem; font-size: 0.95rem; font-weight: 600; }
.bx-contact-compact .bx-help                     { font-size: 0.75rem; }


/* ============================================================================
   49. SCROLL PROGRESS BAR  (.bx-scroll-progress — fixed thin bar at top)
   ============================================================================ */
.bx-scroll-progress {
    position: fixed; top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 100;
    pointer-events: none;
}
.bx-scroll-progress .bar {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--bx-primary), var(--bx-accent), #7c3aed);
    box-shadow: 0 0 10px rgba(29, 78, 216, 0.6);
    transition: width 0.05s linear;
}


/* ============================================================================
   50. SCROLL-TO-TOP FAB  (.bx-scroll-top — floating circle bottom-right)
   ============================================================================ */
.bx-scroll-top {
    position: fixed; right: 1.5rem; bottom: 1.5rem;
    z-index: 60;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--bx-primary), var(--bx-primary-dark));
    color: #fff;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700;
    box-shadow: 0 12px 28px -8px rgba(29, 78, 216, 0.5);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}
.bx-scroll-top.show         { opacity: 1; pointer-events: auto; }
.bx-scroll-top:hover        { transform: translateY(-3px) scale(1.05); }


/* ============================================================================
   51. SCROLL REVEAL  (.bx-reveal — fade up when intersecting, JS adds .in)
   ============================================================================ */
.bx-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.bx-reveal.in { opacity: 1; transform: translateY(0); }

/* Stagger delays via data-d attribute */
.bx-reveal[data-d="100"] { transition-delay: 0.1s; }
.bx-reveal[data-d="200"] { transition-delay: 0.2s; }
.bx-reveal[data-d="300"] { transition-delay: 0.3s; }
.bx-reveal[data-d="400"] { transition-delay: 0.4s; }
.bx-reveal[data-d="500"] { transition-delay: 0.5s; }


/* ============================================================================
   52. RESPONSIVE  (mobile-first breakpoints, largest first)

   Breakpoints used:
   • 1100px — large tablet         (hero text shrinks)
   • 992px  — tablet               (sidebars collapse, auth single-column)
   • 768px  — mobile               (hamburger, table scroll, form stack)
   • 600px  — small mobile         (mini-stats 2-col, drop graph chips)
   • 480px  — phone                (full-width CTAs, compact spacing)
   ============================================================================ */
@media (max-width: 1100px) {
    .bx-grid.cols-4         { grid-template-columns: repeat(2, 1fr); }
    .bx-grid.cols-3         { grid-template-columns: repeat(2, 1fr); }
    .bx-hero-copy h1        { font-size: 2.6rem; }
}

@media (max-width: 992px) {
    /* Shell */
    .bx-sidebar             { width: 220px; }

    /* Auth */
    .bx-auth-wrap           { grid-template-columns: 1fr; }
    .bx-auth-side           { display: none; }

    /* Footer */
    .bx-footer .container   { grid-template-columns: 1fr 1fr; }

    /* Heroes */
    .bx-hero h1             { font-size: 2.2rem; }
    .bx-hero-anim           { padding: 4.5rem 1.5rem 4rem; }
    .bx-hero-anim h1        { font-size: 2.4rem; }
    .bx-hero-anim p.sub     { font-size: 1.05rem; }
    .bx-hero-split .container { text-align: center; padding: 1rem 1.5rem 2.5rem; }
    .bx-hero-grid           { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; }
    .bx-hero-copy h1        { font-size: 2.4rem; }
    .bx-hero-copy .actions,
    .bx-hero-copy .trust-row { justify-content: center; }
    .bx-mini-stats          { margin-left: auto; margin-right: auto; }
    .bx-network             { max-width: 420px; margin: 0 auto; }
    .bx-net-chip            { font-size: 0.7rem; padding: 0.35rem 0.7rem; }
    .bx-hero-top            { flex-direction: column; align-items: stretch; text-align: center; }
    .bx-hero-meta           { justify-content: center; }
    .bx-hero-marquee .label { display: none; }

    /* Blog hero */
    .bx-blog-hero h1        { font-size: 2.2rem; }

    /* Article */
    .bx-article-hero h1     { font-size: 1.9rem; }
    .bx-article-layout      { grid-template-columns: 1fr; gap: 1.5rem; }
    .bx-article-side .bx-article-sticky {
        position: static; max-height: none; overflow: visible; padding-right: 0;
    }
    .bx-article-main        { padding: 1.6rem; }

    /* Sections + nav */
    .bx-section             { padding: 3rem 1rem; }
    .bx-section h2          { font-size: 1.6rem; }
    .bx-cta-banner          { padding: 2.5rem 1.5rem; }
    .bx-cta-banner h2       { font-size: 1.6rem; }
    .bx-public-nav .nav-links a { margin: 0 0.35rem; font-size: 0.9rem; }
}

@media (max-width: 768px) {
    /* App shell — sidebar becomes a horizontal scrolling strip */
    .bx-shell                       { flex-direction: column; }
    .bx-sidebar                     { width: 100%; height: auto; max-height: none; position: relative; }
    .bx-sidebar .bx-brand           { padding: 0.85rem 1rem; }
    .bx-sidebar nav                 { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.5rem; }
    .bx-sidebar .bx-section         { padding: 0.4rem 0.6rem; font-size: 0.65rem; }
    .bx-sidebar .bx-nav             { display: flex; flex-wrap: nowrap; overflow-x: auto; padding: 0; margin: 0; }
    .bx-sidebar .bx-nav a {
        white-space: nowrap;
        padding: 0.45rem 0.85rem;
        font-size: 0.85rem;
        border-left: none; border-bottom: 3px solid transparent;
    }
    .bx-sidebar .bx-nav a.active    { border-left: none; border-bottom-color: #fff; }

    /* Topbar */
    .bx-topbar                      { padding: 0.7rem 1rem; flex-wrap: wrap; gap: 0.6rem; }
    .bx-topbar .bx-search           { display: none; }
    .bx-user                        { flex-wrap: wrap; gap: 0.5rem; }
    .bx-user > div:nth-of-type(2)   { display: none; }
    .bx-content                     { padding: 1rem; }

    /* Footer */
    .bx-footer .container           { grid-template-columns: 1fr; }
    .bx-page-head                   { flex-direction: column; align-items: flex-start; }

    /* Public nav becomes hamburger menu */
    .bx-public-nav                  { padding: 0.75rem 1rem; gap: 0.5rem; flex-wrap: nowrap; }
    .bx-public-nav .brand           { font-size: 1rem; }
    .bx-nav-toggle                  { display: inline-flex; }
    .bx-public-nav .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff;
        border-top: 1px solid var(--bx-border);
        flex-direction: column; align-items: stretch; gap: 0;
        max-height: 0; overflow: hidden;
        box-shadow: 0 12px 24px -8px rgba(0,0,0,0.18);
        transition: max-height 0.3s ease;
        display: flex;
    }
    .bx-public-nav .nav-links.open  { max-height: 480px; padding: 0.5rem 0 0.75rem; }
    .bx-public-nav .nav-links a {
        margin: 0;
        padding: 0.75rem 1.25rem;
        border-bottom: 1px solid var(--bx-border);
        display: block; text-align: left;
    }
    .bx-public-nav .nav-links a:last-child { border-bottom: none; }
    .bx-public-nav .nav-links a.bx-btn { margin: 0.5rem 1rem 0; justify-content: center; text-align: center; }

    /* Hero compress */
    .bx-hero-grid                   { gap: 1.25rem; padding-top: 1.5rem; }
    .bx-hero-copy h1                { font-size: 2rem; }
    .bx-network                     { max-width: 320px; }
    .bx-hero-top                    { padding: 0.75rem 1rem; }
    .bx-hero-top .bx-meta-pill      { font-size: 0.72rem; }
    .bx-hero-top .bx-announce .msg  { font-size: 0.78rem; }
    .bx-blog-hero-stats             { grid-template-columns: repeat(2, 1fr); }

    /* Article body */
    .bx-article-hero                { padding: 2.5rem 1rem; }
    .bx-article-hero h1             { font-size: 1.6rem; }
    .bx-article-hero .meta          { flex-direction: column; gap: 0.25rem; }
    .bx-article-main                { padding: 1.25rem; }

    /* Tables become horizontally scrollable inside their card */
    .bx-card                        { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .bx-table                       { min-width: 640px; }
    .bx-table th, .bx-table td      { padding: 0.6rem 0.7rem; font-size: 0.85rem; }

    /* Auto-collapse any inline 2/3-column grids inside forms to single column */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr 1fr"],
    [style*="grid-template-columns: 2fr 1fr"],
    [style*="grid-template-columns: 1.4fr 1fr"],
    [style*="grid-template-columns: 1.05fr 1fr"],
    [style*="grid-template-columns: 280px"],
    [style*="grid-template-columns: 340px"] {
        grid-template-columns: 1fr !important;
    }

    /* Dashboard hero */
    .bx-dash-hero                   { padding: 1.5rem; }
    .bx-dash-hero h1                { font-size: 1.5rem; }
    .bx-dash-hero .hero-grid        { grid-template-columns: 1fr !important; gap: 1.25rem; }
    .bx-dash-hero .hero-stats       { grid-template-columns: repeat(2, 1fr); }

    /* Testimonials / FAQ */
    .bx-testimonial                 { padding: 1.25rem; }
    .bx-faq summary                 { padding: 0.85rem 1rem; font-size: 0.95rem; }
    .bx-faq .answer                 { padding: 0 1rem 1rem; font-size: 0.88rem; }

    /* Floating buttons */
    .bx-scroll-top                  { right: 0.85rem; bottom: 0.85rem; width: 40px; height: 40px; }
}

@media (max-width: 640px) {
    .bx-grid.cols-4,
    .bx-grid.cols-3,
    .bx-grid.cols-2                 { grid-template-columns: 1fr; }
    .bx-vs-grid                     { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .bx-net-chip                    { display: none; }
    .bx-mini-stats                  { grid-template-columns: repeat(2, 1fr); }
    .bx-meta-pill:nth-child(3)      { display: none; }
}

@media (max-width: 480px) {
    .bx-hero-anim                   { padding: 0; }
    .bx-hero-copy h1                { font-size: 1.75rem; }
    .bx-hero-copy .actions          { flex-direction: column; align-items: stretch; }
    .bx-hero-copy .actions .bx-btn  { justify-content: center; }
    .bx-mini-stats                  { grid-template-columns: repeat(2, 1fr); }

    .bx-section                     { padding: 2.25rem 1rem; }
    .bx-section h2                  { font-size: 1.4rem; }
    .bx-feature, .bx-stat-anim      { padding: 1.2rem; }
    .bx-feature .icon,
    .bx-step-num                    { width: 48px; height: 48px; font-size: 1.2rem; }
    .bx-cta-banner h2               { font-size: 1.35rem; }
    .bx-cta-banner p                { font-size: 0.9rem; }
    .bx-btn                         { padding: 0.55rem 1rem; font-size: 0.88rem; }
    .bx-auth-form-wrap              { padding: 1.25rem 1rem; }
    .bx-auth-form h1                { font-size: 1.4rem; }
    .bx-blog-hero h1                { font-size: 1.8rem; }
    .bx-blog-hero-chips .chip       { font-size: 0.78rem; padding: 0.35rem 0.7rem; }
    .bx-pagination a,
    .bx-pagination span             { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
    .bx-page-head h1                { font-size: 1.3rem; }
}
