/* =============================================================================
   RANKRIX HEADER — CSS (extracted from production WPCode snippet 01)
   Loaded by functions.php via wp_enqueue_style.
   ========================================================================== */


/* ============================================================
   TOKENS  (base = xs/sm: <640px → 100%/100%)
   ============================================================ */
:root {
    --rkx-w-def: 100%;
    --rkx-w-exp: 100%;
    --rkx-h:     50px;
    --rkx-top:   10px;
    --rkx-radius: 1px;

    --rkx-bg:         rgba(0,0,0,0.58);
    --rkx-bg-menu:    rgba(0,0,0,0.52);
    --rkx-surface:    rgba(255,255,255,0.04);
    --rkx-border:     rgba(255,255,255,0.10);
    --rkx-text:       #ffffff;
    --rkx-muted:      rgba(255,255,255,0.45);
    --rkx-dim:        rgba(255,255,255,0.26);
    --rkx-ghost-b:    rgba(255,255,255,0.14);
    --rkx-ghost-bg:   rgba(255,255,255,0.06);

    --rkx-accent:     #1D24CA;
    --rkx-accent-h:   #2d35e0;
    --rkx-accent-glow:rgba(29,36,202,0.45);
    --rkx-accent-b:   rgba(29,36,202,0.55);
    --rkx-accent-tx:  #818cf8;

    --rkx-shadow-hdr: 0 6px 40px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.07) inset;
    --rkx-shadow-mnu: 0 20px 60px rgba(0,0,0,0.65), 0 1px 0 rgba(255,255,255,0.05) inset;

    --rkx-font:       'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    --rkx-ease:       cubic-bezier(0.4,0,0.2,1);
    --rkx-fast:       160ms;
}

/* Scoped reset */
.rkx-header-wrap,
.rkx-header-wrap *,
.rkx-header-wrap *::before,
.rkx-header-wrap *::after,
.rkx-menu-panel,
.rkx-menu-panel *,
.rkx-menu-panel *::before,
.rkx-menu-panel *::after,
.rkx-overlay {
    box-sizing: border-box;
}

/* OVERLAY */
.rkx-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    pointer-events: none;
    cursor: pointer;
    background: transparent;
}
.rkx-overlay.is-visible { pointer-events: auto; }

/* HEADER WRAP */
.rkx-header-wrap {
    position: fixed;
    top: var(--rkx-top);
    left: 50%;
    transform: translateX(-50%);
    width: var(--rkx-w-def);
    z-index: 1000;
    display: flex;
    justify-content: center;
    will-change: width;
    font-family: var(--rkx-font);
}

/* HEADER BAR */
.rkx-header {
    width: 100%;
    height: var(--rkx-h);
    background: var(--rkx-bg);
    backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    border: 1px solid var(--rkx-border);
    border-radius: var(--rkx-radius);
    box-shadow: var(--rkx-shadow-hdr);
    display: flex;
    align-items: center;
    padding: 0 20px;
    margin: 0;
    transition: border-bottom-left-radius var(--rkx-fast) var(--rkx-ease),
                border-bottom-right-radius var(--rkx-fast) var(--rkx-ease);
}
.rkx-header.is-open {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: rgba(255,255,255,0.04);
}

/* 3-COLUMN LAYOUT */
.rkx-col { display: flex; align-items: center; flex-shrink: 0; }
.rkx-col--left   { flex: 1 1 0; justify-content: flex-start; }
.rkx-col--center { flex: 0 0 auto; padding: 0 12px; min-width: 80px; justify-content: center; }
.rkx-col--right  { flex: 1 1 0; justify-content: flex-end; gap: 8px; }

/* LOGO */
.rkx-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    outline-offset: 6px;
    transition: opacity var(--rkx-fast) var(--rkx-ease);
}
.rkx-logo-link:hover { opacity: 0.78; }
.rkx-logo-svg { height: 40px; width: auto; display: block; }

/* HAMBURGER BUTTON */
.rkx-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    border-radius: 1px;
    cursor: pointer;
    padding: 8px 12px;
    color: var(--rkx-text);
    font-family: var(--rkx-font);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1;
    transition: background var(--rkx-fast) var(--rkx-ease);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    outline-offset: 4px;
}
.rkx-menu-btn:hover         { background: rgba(29, 36, 202, 0.18); }
.rkx-menu-btn[aria-expanded="true"] { background: rgba(29, 36, 202, 0.18); }
.rkx-menu-btn:focus-visible { outline: 2px solid var(--rkx-accent); }

.rkx-icon {
    width: 22px;
    height: 16px;
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.rkx-icon__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 380ms cubic-bezier(0.4,0,0.2,1),
                opacity   180ms cubic-bezier(0.4,0,0.2,1),
                width     380ms cubic-bezier(0.4,0,0.2,1);
    transform-origin: center center;
}
.rkx-menu-btn[aria-expanded="true"] .rkx-icon__bar--top { transform: translateY(7px) rotate(45deg); }
.rkx-menu-btn[aria-expanded="true"] .rkx-icon__bar--mid { opacity: 0; width: 0; }
.rkx-menu-btn[aria-expanded="true"] .rkx-icon__bar--bot { transform: translateY(-7px) rotate(-45deg); }

.rkx-menu-label {
    position: relative;
    height: 1em;
    overflow: hidden;
}
.rkx-menu-label__on,
.rkx-menu-label__off {
    display: block;
    line-height: 1;
    white-space: nowrap;
    transition: transform 300ms var(--rkx-ease);
}
.rkx-menu-label__off {
    position: absolute;
    top: 100%;
    left: 0;
    color: var(--rkx-muted);
}
.rkx-menu-btn[aria-expanded="true"] .rkx-menu-label__on  { transform: translateY(-100%); }
.rkx-menu-btn[aria-expanded="true"] .rkx-menu-label__off { transform: translateY(-100%); }

/* ============================================================
   AUTH BUTTONS — with shimmer on primary
   ============================================================ */
.rkx-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--rkx-font);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0 16px;
    height: 34px;
    border-radius: 1px;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: background   var(--rkx-fast) var(--rkx-ease),
                border-color var(--rkx-fast) var(--rkx-ease),
                box-shadow   var(--rkx-fast) var(--rkx-ease),
                color        var(--rkx-fast) var(--rkx-ease);
    outline-offset: 3px;
}
.rkx-btn:focus-visible { outline: 2px solid var(--rkx-accent); }
.rkx-btn--ghost {
    color: var(--rkx-text);
    background: transparent;
    border: 1px solid var(--rkx-ghost-b);
}
.rkx-btn--ghost:hover {
    background: var(--rkx-ghost-bg);
    border-color: rgba(255,255,255,0.28);
    color: #fff;
}
.rkx-btn--primary {
    color: #fff !important;
    background: var(--rkx-accent);
    border: 1px solid var(--rkx-accent-b);
    font-weight: 600;
}
.rkx-btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(115deg,
        transparent 0%,
        transparent 35%,
        rgba(255,255,255,0.28) 50%,
        transparent 65%,
        transparent 100%);
    transition: left 700ms var(--rkx-ease);
    pointer-events: none;
}
.rkx-btn--primary:hover {
    background: var(--rkx-accent-h);
    box-shadow: 0 0 22px var(--rkx-accent-glow);
    color: #fff !important;
}
.rkx-btn--primary:hover::before { left: 100%; }

/* MENU PANEL */
.rkx-menu-panel {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--rkx-w-exp);
    z-index: 999;
    background: var(--rkx-bg-menu);
    backdrop-filter: blur(28px) saturate(1.8);
    -webkit-backdrop-filter: blur(28px) saturate(1.8);
    border: 1px solid var(--rkx-border);
    border-top: none;
    border-radius: 0 0 1px 1px;
    box-shadow: var(--rkx-shadow-mnu);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    will-change: opacity, transform;
    background-image: radial-gradient(ellipse at 85% 110%, rgba(29,36,202,0.09) 0%, transparent 55%);
    font-family: var(--rkx-font);
}
.rkx-menu-panel.is-open { visibility: visible; pointer-events: auto; }

/* MENU GRID */
.rkx-menu-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 36px;
    gap: 0;
}
.rkx-menu-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.rkx-menu-col:not(:last-child) {
    border-right: 1px solid var(--rkx-border);
    padding-right: 36px;
    margin-right: 36px;
}
.rkx-eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rkx-dim);
    display: block;
}

/* ============================================================
   NAV LIST + LINKS — with hover animation
   ============================================================ */
.rkx-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}
.rkx-nav-item { border-bottom: 1px solid var(--rkx-border); }
.rkx-nav-item:last-child { border-bottom: none; }

.rkx-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 18px 13px 0;
    color: var(--rkx-muted);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.1;
    transition: color 220ms var(--rkx-ease),
                padding-left var(--rkx-fast) var(--rkx-ease);
    outline-offset: 4px;
}
.rkx-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0;
    height: 1px;
    background: var(--rkx-accent-tx);
    box-shadow: 0 0 8px var(--rkx-accent-glow);
    transition: width 320ms var(--rkx-ease);
    pointer-events: none;
}
.rkx-nav-link::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(8px, -50%);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    color: var(--rkx-accent-tx);
    font-size: 14px;
    opacity: 0;
    transition: opacity 200ms var(--rkx-ease),
                transform 280ms var(--rkx-ease);
    pointer-events: none;
}
.rkx-nav-link:hover {
    color: #ffffff;
    padding-left: 8px;
}
.rkx-nav-link:hover::before { width: 32px; }
.rkx-nav-link:hover::after  { opacity: 1; transform: translate(0, -50%); }
.rkx-nav-link:focus-visible { outline: 2px solid var(--rkx-accent); }

/* ============================================================
   FEATURED CARD
   ============================================================ */
.rkx-menu-col--feat { gap: 0; }

.rkx-feat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--rkx-border);
    border-radius: 1px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: border-color     450ms cubic-bezier(0.4,0,0.2,1),
                background-color 450ms cubic-bezier(0.4,0,0.2,1),
                box-shadow       500ms cubic-bezier(0.4,0,0.2,1);
}
.rkx-feat-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(29,36,202,0.28) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.75;
    transform-origin: top right;
    transition: opacity   600ms cubic-bezier(0.4,0,0.2,1),
                transform 700ms cubic-bezier(0.4,0,0.2,1);
}
.rkx-feat-card:hover {
    border-color: rgba(29,36,202,0.45);
    background: rgba(255,255,255,0.055);
    box-shadow:
        0 0 0 1px rgba(29,36,202,0.18),
        0 18px 50px -18px rgba(29,36,202,0.45);
}
.rkx-feat-card:hover::before { opacity: 1; transform: scale(1.35); }

.rkx-feat-meta { display: flex; align-items: center; gap: 8px; }
.rkx-feat-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rkx-dim);
    transition: color 400ms cubic-bezier(0.4,0,0.2,1);
}
.rkx-feat-card:hover .rkx-feat-label { color: rgba(255,255,255,0.5); }

.rkx-feat-title {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--rkx-text);
    margin: 0;
}

/* CHART BARS */
.rkx-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 60px;
    flex-shrink: 0;
    margin-top: 2px;
}
.rkx-chart-bar {
    flex: 1;
    height: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 1px 1px 0 0;
    transition: height     900ms cubic-bezier(0.22,1,0.36,1),
                box-shadow 500ms cubic-bezier(0.4,0,0.2,1),
                background 500ms cubic-bezier(0.4,0,0.2,1);
    transition-delay: var(--d, 0ms);
}
.rkx-chart-bar--active {
    background: var(--rkx-accent);
    box-shadow: 0 0 12px var(--rkx-accent-glow);
}
.rkx-feat-card:hover .rkx-chart-bar--active {
    background: var(--rkx-accent-h);
    box-shadow: 0 0 22px rgba(29,36,202,0.8);
}

/* AXIS */
.rkx-fc-axis {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    margin-top: -6px;
}
.rkx-fc-axis-label {
    text-align: center;
    font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
    font-size: 9px;
    font-weight: 500;
    color: var(--rkx-dim);
    letter-spacing: 0.04em;
    transition: color 400ms cubic-bezier(0.4,0,0.2,1);
}
.rkx-feat-card:hover .rkx-fc-axis-label { color: var(--rkx-muted); }

/* METRICS ROW */
.rkx-fc-metrics {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px 4px 4px;
    border-top: 1px solid var(--rkx-border);
    transition: border-color 400ms cubic-bezier(0.4,0,0.2,1);
}
.rkx-feat-card:hover .rkx-fc-metrics { border-top-color: rgba(255,255,255,0.18); }
.rkx-fc-metric-divider {
    width: 1px;
    height: 28px;
    background: var(--rkx-border);
    transition: background 400ms cubic-bezier(0.4,0,0.2,1);
}
.rkx-feat-card:hover .rkx-fc-metric-divider { background: rgba(255,255,255,0.18); }
.rkx-fc-metric-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--rkx-text);
    letter-spacing: -0.02em;
    font-feature-settings: 'tnum';
    line-height: 1;
}
.rkx-fc-metric-num--accent { color: #818cf8; }
.rkx-fc-metric-lbl {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rkx-dim);
    margin-top: 4px;
}

/* ============================================================
   FEAT CTA — with shimmer
   ============================================================ */
.rkx-feat-cta {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rkx-accent);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 1px;
    text-decoration: none;
    margin-top: auto;
    width: fit-content;
    border: 1px solid var(--rkx-accent-b);
    transition: background var(--rkx-fast) var(--rkx-ease),
                box-shadow var(--rkx-fast) var(--rkx-ease),
                gap        var(--rkx-fast) var(--rkx-ease),
                color      var(--rkx-fast) var(--rkx-ease);
    outline-offset: 3px;
}
.rkx-feat-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(115deg,
        transparent 0%,
        transparent 35%,
        rgba(255,255,255,0.28) 50%,
        transparent 65%,
        transparent 100%);
    transition: left 700ms var(--rkx-ease);
    pointer-events: none;
}
.rkx-feat-cta:hover {
    background: var(--rkx-accent-h);
    box-shadow: 0 0 22px var(--rkx-accent-glow);
    gap: 12px;
    color: #fff !important;
}
.rkx-feat-cta:hover::before { left: 100%; }
.rkx-feat-cta svg { transition: transform var(--rkx-fast) var(--rkx-ease); position: relative; z-index: 1; }
.rkx-feat-cta:hover svg { transform: translateX(2px); }
.rkx-feat-cta > span,
.rkx-feat-cta > * { position: relative; z-index: 1; }

/* SOCIAL ICONS */
.rkx-social { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.rkx-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 1px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--rkx-border);
    color: var(--rkx-muted);
    text-decoration: none;
    transition: background var(--rkx-fast) var(--rkx-ease),
                color      var(--rkx-fast) var(--rkx-ease),
                transform  var(--rkx-fast) var(--rkx-ease);
    outline-offset: 3px;
}
.rkx-social-btn:hover {
    background: var(--rkx-ghost-bg);
    color: var(--rkx-text);
    transform: translateY(-2px);
}

/* BADGES */
.rkx-badge {
    display: inline-flex;
    align-items: center;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 3px 6px;
    border-radius: 1px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.1);
    line-height: 1;
    flex-shrink: 0;
}
.rkx-badge--blue {
    background: rgba(29,36,202,0.18);
    color: #818cf8;
    border-color: rgba(29,36,202,0.4);
}

/* ACCORDION (DESKTOP) */
.rkx-accordion-item { display: flex; flex-direction: column; }
.rkx-accordion-trigger {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rkx-dim);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 2px 0;
    transition: color var(--rkx-fast) var(--rkx-ease);
    outline-offset: 4px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.rkx-accordion-trigger:focus-visible { outline: 2px solid var(--rkx-accent); }
.rkx-accordion-trigger:hover                       { color: var(--rkx-muted); }
.rkx-accordion-item.is-open .rkx-accordion-trigger { color: var(--rkx-muted); }
.rkx-accordion-chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    flex-shrink: 0;
    transition: transform 0.34s cubic-bezier(0.4,0,0.2,1);
}
.rkx-accordion-item.is-open .rkx-accordion-chevron {
    transform: rotate(-135deg) translateY(-1px);
}
.rkx-accordion-body  { display: block; }
.rkx-accordion-inner { overflow: hidden; min-height: 0; }
.rkx-accordion-trigger-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
.rkx-acc-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--rkx-dim);
    transition: color var(--rkx-fast) var(--rkx-ease),
                transform 0.3s var(--rkx-ease);
}
.rkx-accordion-trigger:hover .rkx-acc-icon,
.rkx-accordion-item.is-open  .rkx-acc-icon   { color: var(--rkx-text); }
.rkx-accordion-item.is-open  .rkx-acc-icon   { transform: scale(1.1); }

/* ============================================================
   RESPONSIVE — width-parity tokens, matched to footer
   ============================================================ */

/* xs & sm: <640px → 92% / 96% with explicit top offset */
@media (max-width: 639px) {
    :root {
        --rkx-w-def: 92%;
        --rkx-w-exp: 96%;
        --rkx-h: 48px;
        --rkx-top: 14px;
    }
    .rkx-logo-svg { height: 28px; }
    .rkx-col--center { padding: 0 8px; min-width: 0; }
    .rkx-menu-label  { display: none; }
    .rkx-menu-btn    { padding: 8px 10px; gap: 0; }
    .rkx-btn         { padding: 0 12px; height: 32px; font-size: 12px; }
    .rkx-btn--ghost  { display: none; }
    .rkx-menu-inner  { grid-template-columns: 1fr; padding: 24px 20px; }
    .rkx-menu-col:not(:last-child) {
        border-right: none !important;
        border-bottom: 1px solid var(--rkx-border);
        padding-right: 0 !important;
        margin-right: 0 !important;
        padding-bottom: 22px;
    }
    .rkx-nav-link   { font-size: 16px; }
    .rkx-acc-icon   { width: 15px; height: 15px; }
    .rkx-social-btn { width: 34px; height: 34px; }
}

/* md: 640–767 → 88% / 96% — menu uses mobile (1-column stacked) layout */
@media (min-width: 640px) and (max-width: 767px) {
    :root {
        --rkx-w-def: 88%;
        --rkx-w-exp: 96%;
        --rkx-h: 54px;
        --rkx-top: 14px;
    }
    .rkx-logo-svg   { height: 32px; }
    .rkx-menu-label { display: none; }
    .rkx-btn--ghost { display: none; }
    .rkx-menu-inner { grid-template-columns: 1fr; padding: 22px 20px; }
    .rkx-menu-col:not(:last-child) {
        border-right: none !important;
        border-bottom: 1px solid var(--rkx-border);
        padding-right: 0 !important;
        margin-right: 0 !important;
        padding-bottom: 22px;
    }
    .rkx-nav-link { font-size: 15px; }
    .rkx-acc-icon { width: 16px; height: 16px; }
}

/* lg: 768–1023 → 80% / 92% — menu uses mobile (1-column stacked) layout */
@media (min-width: 768px) and (max-width: 1023px) {
    :root {
        --rkx-w-def: 80%;
        --rkx-w-exp: 92%;
        --rkx-h: 56px;
        --rkx-top: 16px;
    }
    .rkx-logo-svg   { height: 38px; }
    .rkx-menu-label { display: none; }
    .rkx-menu-inner { grid-template-columns: 1fr; padding: 26px 20px; }
    .rkx-menu-col:not(:last-child) {
        border-right: none !important;
        border-bottom: 1px solid var(--rkx-border);
        padding-right: 0 !important;
        margin-right: 0 !important;
        padding-bottom: 22px;
    }
    .rkx-nav-link { font-size: 15px; }
    .rkx-acc-icon { width: 16px; height: 16px; }
}

/* xl: 1024–1279 → 70% / 88% */
@media (min-width: 1024px) and (max-width: 1279px) {
    :root {
        --rkx-w-def: 70%;
        --rkx-w-exp: 88%;
        --rkx-h: 58px;
        --rkx-top: 20px;
    }
    .rkx-logo-svg    { height: 42px; }
    .rkx-feat-card   { padding: 18px; gap: 12px; }
    .rkx-feat-title  { font-size: 17px; }
    .rkx-chart-bars  { height: 54px; }
    .rkx-fc-metric-num { font-size: 16px; }
    .rkx-feat-cta    { font-size: 12px; padding: 9px 14px; }
}

/* 2xl: 1280–1535 → 65% / 85% (BASELINE) */
@media (min-width: 1280px) and (max-width: 1535px) {
    :root {
        --rkx-w-def: 65%;
        --rkx-w-exp: 85%;
        --rkx-h: 58px;
        --rkx-top: 20px;
    }
    .rkx-logo-svg { height: 44px; }
}

/* 3xl: 1536–1919 → 62% / 82% */
@media (min-width: 1536px) and (max-width: 1919px) {
    :root {
        --rkx-w-def: 62%;
        --rkx-w-exp: 82%;
        --rkx-h: 60px;
        --rkx-top: 22px;
    }
    .rkx-logo-svg { height: 46px; }
}

/* 4xl: 1920–2559 → 58% / 78% */
@media (min-width: 1920px) and (max-width: 2559px) {
    :root {
        --rkx-w-def: 58%;
        --rkx-w-exp: 78%;
        --rkx-h: 64px;
        --rkx-top: 24px;
    }
    .rkx-logo-svg { height: 50px; }
    .rkx-btn      { height: 38px; font-size: 14px; padding: 0 18px; }
    .rkx-nav-link { font-size: 18px; }
}

/* 5xl: 2560–3839 → 55% / 75% */
@media (min-width: 2560px) and (max-width: 3839px) {
    :root {
        --rkx-w-def: 55%;
        --rkx-w-exp: 75%;
        --rkx-h: 76px;
        --rkx-top: 32px;
    }
    .rkx-logo-svg { height: 58px; }
    .rkx-btn      { height: 46px; font-size: 16px; padding: 0 24px; }
    .rkx-nav-link { font-size: 22px; }
    .rkx-accordion-trigger { font-size: 13px; }
    .rkx-acc-icon { width: 24px; height: 24px; }
    .rkx-social-btn { width: 44px; height: 44px; }
    .rkx-social-btn svg { width: 20px; height: 20px; }
    .rkx-menu-inner { padding: 42px; }
    .rkx-feat-title { font-size: 22px; }
    .rkx-menu-btn   { font-size: 16px; }
    .rkx-feat-card     { padding: 28px; gap: 18px; }
    .rkx-chart-bars    { height: 80px; }
    .rkx-fc-axis-label { font-size: 11px; }
    .rkx-fc-metric-num { font-size: 22px; }
    .rkx-fc-metric-lbl { font-size: 11px; }
    .rkx-feat-cta      { font-size: 15px; padding: 12px 20px; }
}

/* 6xl (4K): ≥3840 → 52% / 72% */
@media (min-width: 3840px) {
    :root {
        --rkx-w-def: 52%;
        --rkx-w-exp: 72%;
        --rkx-h: 92px;
        --rkx-top: 40px;
    }
    .rkx-logo-svg { height: 72px; }
    .rkx-btn      { height: 56px; font-size: 19px; padding: 0 30px; }
    .rkx-nav-link { font-size: 28px; }
    .rkx-accordion-trigger { font-size: 15px; }
    .rkx-acc-icon { width: 30px; height: 30px; }
    .rkx-social-btn { width: 54px; height: 54px; }
    .rkx-social-btn svg { width: 24px; height: 24px; }
    .rkx-menu-inner { padding: 56px; gap: 0; }
    .rkx-menu-col:not(:last-child) { padding-right: 48px; margin-right: 48px; }
    .rkx-feat-title { font-size: 26px; }
    .rkx-feat-card  { padding: 36px; gap: 22px; }
    .rkx-chart-bars    { height: 100px; }
    .rkx-fc-axis-label { font-size: 14px; }
    .rkx-fc-metric-num { font-size: 30px; }
    .rkx-fc-metric-lbl { font-size: 14px; }
    .rkx-feat-cta      { font-size: 18px; padding: 15px 26px; }
    .rkx-menu-btn   { font-size: 19px; gap: 14px; }
    .rkx-icon       { width: 28px; height: 20px; }
}

/* ============================================================
   ACCORDION HEADINGS — MOBILE + TABLET
   ============================================================ */
@media (max-width: 1023px) {
    .rkx-accordion-trigger {
        position: relative;
        overflow: hidden;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.06em;
        padding: 15px 44px 15px 18px;
        min-height: 54px;
        color: var(--rkx-text);
        background: linear-gradient(135deg,
            rgba(255,255,255,0.04) 0%,
            rgba(255,255,255,0.02) 100%);
        border: 1px solid var(--rkx-border);
        border-radius: 2px;
        margin: 4px 0 3px;
        transition: background   320ms cubic-bezier(0.4,0,0.2,1),
                    border-color 320ms cubic-bezier(0.4,0,0.2,1),
                    color        320ms cubic-bezier(0.4,0,0.2,1),
                    transform    140ms cubic-bezier(0.4,0,0.2,1);
    }
    .rkx-accordion-trigger::before {
        content: '';
        position: absolute;
        left: 0;
        top: 8px;
        bottom: 8px;
        width: 3px;
        background: var(--rkx-accent);
        border-radius: 1px;
        box-shadow: 0 0 10px var(--rkx-accent-glow);
        transform: scaleY(0);
        transform-origin: center;
        transition: transform 420ms cubic-bezier(0.4,0,0.2,1);
    }
    .rkx-accordion-trigger::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,
            transparent 0%,
            rgba(29,36,202,0.18) 50%,
            transparent 100%);
        transition: left 700ms cubic-bezier(0.4,0,0.2,1);
        pointer-events: none;
    }
    .rkx-accordion-trigger:hover::after,
    .rkx-accordion-trigger:focus-visible::after { left: 100%; }
    .rkx-accordion-trigger:hover {
        border-color: rgba(29,36,202,0.4);
        background: linear-gradient(135deg,
            rgba(29,36,202,0.08) 0%,
            rgba(255,255,255,0.03) 100%);
        color: #fff;
    }
    .rkx-accordion-trigger:active { transform: scale(0.985); }
    .rkx-accordion-item.is-open .rkx-accordion-trigger {
        background: linear-gradient(135deg,
            rgba(29,36,202,0.22) 0%,
            rgba(29,36,202,0.05) 100%);
        border-color: rgba(29,36,202,0.45);
        color: #fff;
    }
    .rkx-accordion-item.is-open .rkx-accordion-trigger::before { transform: scaleY(1); }
    .rkx-accordion-trigger-inner { gap: 12px; }
    .rkx-acc-icon {
        width: 20px;
        height: 20px;
        color: var(--rkx-muted);
        transition: color 300ms cubic-bezier(0.4,0,0.2,1);
    }
    .rkx-accordion-item.is-open .rkx-acc-icon { color: var(--rkx-accent-tx); }
    .rkx-accordion-chevron {
        width: 11px;
        height: 11px;
        border-right-width: 2.5px;
        border-bottom-width: 2.5px;
        margin-right: 4px;
        color: var(--rkx-muted);
        transform: rotate(45deg) translateY(-1.5px);
        transition: transform 420ms cubic-bezier(0.4,0,0.2,1),
                    color     300ms cubic-bezier(0.4,0,0.2,1);
    }
    .rkx-accordion-item.is-open .rkx-accordion-chevron {
        color: var(--rkx-accent-tx);
        transform: rotate(-135deg) translateY(-1.5px);
    }
    .rkx-accordion-trigger:hover .rkx-accordion-chevron { color: var(--rkx-text); }
    .rkx-nav-list { padding-left: 12px; padding-top: 8px; padding-bottom: 4px; }
    .rkx-nav-link { font-size: 16px; padding: 13px 18px 13px 0; font-weight: 500; }
    .rkx-nav-link:hover { padding-left: 8px; }
    #rkxAccGraphic { margin-top: 10px; }
    .rkx-social { margin-top: 14px; }
}

@media (max-width: 639px) {
    .rkx-accordion-trigger {
        padding: 13px 40px 13px 16px;
        font-size: 12.5px;
        min-height: 50px;
    }
    .rkx-acc-icon { width: 18px; height: 18px; }
    .rkx-accordion-chevron {
        width: 10px;
        height: 10px;
        border-right-width: 2.5px;
        border-bottom-width: 2.5px;
    }
    .rkx-nav-link { font-size: 15px; padding: 12px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .rkx-accordion-trigger::after { display: none; }
    .rkx-accordion-trigger::before { transition: none; }
    .rkx-nav-link::before,
    .rkx-nav-link::after,
    .rkx-btn--primary::before,
    .rkx-feat-cta::before {
        transition: none !important;
    }
}

/* REDUCED MOTION (full) */
@media (prefers-reduced-motion: reduce) {
    .rkx-header-wrap *,
    .rkx-header-wrap *::before,
    .rkx-header-wrap *::after,
    .rkx-menu-panel *,
    .rkx-menu-panel *::before,
    .rkx-menu-panel *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .rkx-menu-panel.is-open { opacity: 1; }
}



/* ===== POPPINS TYPOGRAPHY — header section labels + featured card titles ===== */
.rkx-accordion-trigger,
.rkx-feat-label,
.rkx-feat-title {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== HEADER SOCIAL ICONS — smaller, transparent baseline, no transform on hover ===== */
.rkx-social-btn {
    width: 30px !important;
    height: 30px !important;
    background: transparent !important;
    border: none !important;
}
.rkx-social-btn:hover {
    background: var(--rkx-ghost-bg) !important;
    color: var(--rkx-text) !important;
    transform: none !important;
}
.rkx-social-btn svg {
    width: 13px !important;
    height: 13px !important;
}
@media (max-width: 639px) {
    .rkx-social-btn {
        width: 28px !important;
        height: 28px !important;
    }
}

/* ===== FEATURED CARD (WIDGET) — compact baseline ===== */
.rkx-feat-card {
    padding: 16px !important;
    gap: 10px !important;
}
.rkx-feat-title       { font-size: 16px !important; }
.rkx-feat-label       { font-size: 9px  !important; }
.rkx-chart-bars       { height: 46px    !important; }
.rkx-fc-axis-label    { font-size: 8px  !important; }
.rkx-fc-metric-num    { font-size: 15px !important; }
.rkx-fc-metric-lbl    { font-size: 9px  !important; }
.rkx-fc-metrics       { padding: 9px 4px 2px !important; gap: 12px !important; }
.rkx-feat-cta         { font-size: 12px !important; padding: 8px 14px !important; }

/* ===== CALL + EMAIL CONTACT LINKS (below the featured card) ===== */
.rkx-feat-contact {
    display: flex;
    flex-direction: column;
    margin-top: 14px;
}
.rkx-feat-contact-link {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--rkx-muted);
    text-decoration: none;
    font-family: var(--rkx-font);
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid var(--rkx-border);
    transition: color 220ms var(--rkx-ease), padding-left var(--rkx-fast) var(--rkx-ease);
    outline-offset: 4px;
}
.rkx-feat-contact-link:last-child { border-bottom: none; }
.rkx-feat-contact-link:hover {
    color: var(--rkx-text);
    padding-left: 6px;
}
.rkx-feat-contact-link:focus-visible {
    outline: 2px solid var(--rkx-accent);
}
.rkx-feat-contact-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--rkx-dim);
    transition: color 220ms var(--rkx-ease);
}
.rkx-feat-contact-link:hover .rkx-feat-contact-icon { color: var(--rkx-accent-tx); }
.rkx-feat-contact-label { color: inherit; font-weight: 500; }
.rkx-feat-contact-value {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    color: var(--rkx-dim);
    letter-spacing: 0.01em;
    text-align: right;
    transition: color 220ms var(--rkx-ease);
}
.rkx-feat-contact-link:hover .rkx-feat-contact-value { color: var(--rkx-muted); }

/* ===== WIDGET + CONTACT LINKS — extra compact on mobile/tablet ===== */
@media (max-width: 1023px) {
    .rkx-feat-card        { padding: 12px !important; gap: 8px !important; }
    .rkx-feat-title       { font-size: 14px !important; }
    .rkx-feat-label       { font-size: 8px !important; letter-spacing: 0.12em !important; }
    .rkx-feat-meta        { gap: 6px !important; }
    .rkx-chart-bars       { height: 32px !important; gap: 4px !important; }
    .rkx-fc-axis-label    { font-size: 7px !important; }
    .rkx-fc-metrics       { padding: 6px 4px 0 !important; gap: 10px !important; }
    .rkx-fc-metric-num    { font-size: 13px !important; }
    .rkx-fc-metric-lbl    { font-size: 8px !important; }
    .rkx-feat-cta         { font-size: 11px !important; padding: 7px 12px !important; }
    .rkx-feat-cta svg     { width: 12px !important; height: 12px !important; }
    .rkx-feat-contact     { margin-top: 10px !important; }
    .rkx-feat-contact-link  { padding: 8px 0 !important; font-size: 12px !important; }
    .rkx-feat-contact-icon  { width: 14px !important; height: 14px !important; }
    .rkx-feat-contact-value { font-size: 10px !important; }
}

/* ===== HIDE MENU SCROLLBARS ===== */
.rkx-menu-panel,
.rkx-menu-inner {
    scrollbar-width: none !important;       /* Firefox */
    -ms-overflow-style: none !important;    /* IE/Edge legacy */
}
.rkx-menu-panel::-webkit-scrollbar,
.rkx-menu-inner::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
