/* ============================================================
   RevelationFX Theme — Main Stylesheet
   Dark/Professional · Gold Accent · Inter + Syne
   ============================================================ */

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
    /* Colors */
    --rfx-black:        #080a0f;
    --rfx-dark:         #0d1018;
    --rfx-dark-2:       #131720;
    --rfx-dark-3:       #1a2030;
    --rfx-border:       #232840;
    --rfx-border-light: #2e3550;

    --rfx-gold:         #C9A84C;
    --rfx-gold-light:   #e0c070;
    --rfx-gold-dark:    #9a7a2a;
    --rfx-gold-muted:   rgba(201,168,76,0.12);
    --rfx-gold-glow:    rgba(201,168,76,0.2);

    --rfx-text:         #eef0f8;
    --rfx-text-muted:   #6e7a99;
    --rfx-text-soft:    #a0aac0;
    --rfx-white:        #ffffff;

    --rfx-green:        #27ae60;
    --rfx-red:          #e74c3c;

    /* Typography */
    --rfx-font-display: 'Syne', sans-serif;
    --rfx-font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --rfx-gap:      clamp(16px, 3vw, 32px);
    --rfx-section:  clamp(60px, 8vw, 120px);

    /* Layout */
    --rfx-max-width: 1240px;
    --rfx-radius:    12px;
    --rfx-radius-sm: 8px;
    --rfx-radius-lg: 20px;

    /* Transitions */
    --rfx-ease: 0.22s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--rfx-black);
    color: var(--rfx-text);
    font-family: var(--rfx-font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--rfx-gold); text-decoration: none; transition: color var(--rfx-ease); }
a:hover { color: var(--rfx-gold-light); }
a:focus-visible { outline: 2px solid var(--rfx-gold); outline-offset: 3px; border-radius: 3px; }

/* ── Container ──────────────────────────────────────────────── */
.rfx-container {
    width: 100%;
    max-width: var(--rfx-max-width);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
}

/* ── Page Wrap ──────────────────────────────────────────────── */
.rfx-page-wrap { min-height: 100vh; }

/* ── Buttons ────────────────────────────────────────────────── */
.rfx-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--rfx-radius-sm);
    font-family: var(--rfx-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    border: none;
    transition: transform var(--rfx-ease), box-shadow var(--rfx-ease), background var(--rfx-ease);
    white-space: nowrap;
}

.rfx-btn:hover { transform: translateY(-2px); }
.rfx-btn:active { transform: translateY(0); }

.rfx-btn--gold {
    background: linear-gradient(135deg, var(--rfx-gold-dark), var(--rfx-gold));
    color: #080a0f;
}
.rfx-btn--gold:hover {
    box-shadow: 0 6px 24px var(--rfx-gold-glow);
    color: #080a0f;
}

.rfx-btn--outline {
    background: transparent;
    border: 1px solid var(--rfx-border-light);
    color: var(--rfx-text-soft);
}
.rfx-btn--outline:hover {
    border-color: var(--rfx-gold);
    color: var(--rfx-gold);
    box-shadow: 0 0 16px var(--rfx-gold-muted);
}

/* ── Badge ──────────────────────────────────────────────────── */
.rfx-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--rfx-gold-muted);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 50px;
    color: var(--rfx-gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.rfx-badge:hover { color: var(--rfx-gold-light); }

/* ── Tags ───────────────────────────────────────────────────── */
.rfx-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--rfx-dark-3);
    border: 1px solid var(--rfx-border);
    border-radius: 50px;
    color: var(--rfx-text-soft);
    font-size: 0.78rem;
    transition: border-color var(--rfx-ease), color var(--rfx-ease);
}
.rfx-tag:hover { border-color: var(--rfx-gold); color: var(--rfx-gold); }

/* ── Pulse dot ──────────────────────────────────────────────── */
.rfx-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rfx-green);
    box-shadow: 0 0 0 0 rgba(39,174,96,0.6);
    animation: rfx-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes rfx-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(39,174,96,0.6); }
    50%      { box-shadow: 0 0 0 6px rgba(39,174,96,0); }
}

/* ── TICKER BAR ─────────────────────────────────────────────── */
.rfx-ticker {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--rfx-black);
    border-bottom: 1px solid var(--rfx-border);
    display: flex;
    align-items: center;
    height: 36px;
    overflow: hidden;
}

.rfx-ticker__label {
    flex-shrink: 0;
    padding: 0 16px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--rfx-gold);
    background: var(--rfx-dark-2);
    border-right: 1px solid var(--rfx-border);
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.rfx-ticker__track {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.rfx-ticker__inner {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: rfx-ticker-scroll 40s linear infinite;
}

.rfx-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 28px;
    font-size: 0.78rem;
    color: var(--rfx-text-soft);
    border-right: 1px solid var(--rfx-border);
}

.rfx-ticker__pair { font-weight: 700; color: var(--rfx-text); }
.rfx-ticker__rate { color: var(--rfx-gold); font-weight: 600; }
.rfx-ticker__loading { padding: 0 20px; font-size: 0.78rem; color: var(--rfx-text-muted); }

@keyframes rfx-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── HEADER ─────────────────────────────────────────────────── */
.rfx-header {
    position: sticky;
    top: 36px;
    z-index: 100;
    background: rgba(8,10,15,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--rfx-border);
    height: 68px;
}

.rfx-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.rfx-logo { display: inline-flex; align-items: center; text-decoration: none; }
.rfx-logo__text {
    font-family: var(--rfx-font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}
.rfx-logo__revelation { color: var(--rfx-text); }
.rfx-logo__fx {
    color: var(--rfx-gold);
    position: relative;
}
.rfx-logo--footer .rfx-logo__text { font-size: 1.3rem; }

/* Nav */
.rfx-nav { display: flex; align-items: center; }
.rfx-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.rfx-nav__link {
    display: block;
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--rfx-text-soft);
    border-radius: var(--rfx-radius-sm);
    transition: color var(--rfx-ease), background var(--rfx-ease);
}
.rfx-nav__link:hover,
.rfx-nav__link--active {
    color: var(--rfx-text);
    background: var(--rfx-dark-3);
}
/* Last nav item as CTA */
.rfx-nav__item:last-child .rfx-nav__link {
    background: var(--rfx-gold-muted);
    border: 1px solid rgba(201,168,76,0.3);
    color: var(--rfx-gold);
    padding: 7px 16px;
}
.rfx-nav__item:last-child .rfx-nav__link:hover {
    background: rgba(201,168,76,0.2);
    color: var(--rfx-gold-light);
}

/* Hamburger */
.rfx-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: var(--rfx-dark-3);
    border: 1px solid var(--rfx-border);
    border-radius: var(--rfx-radius-sm);
    cursor: pointer;
    padding: 0 10px;
}
.rfx-hamburger__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--rfx-text);
    border-radius: 2px;
    transition: transform var(--rfx-ease), opacity var(--rfx-ease);
}
.rfx-hamburger[aria-expanded="true"] .rfx-hamburger__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.rfx-hamburger[aria-expanded="true"] .rfx-hamburger__bar:nth-child(2) {
    opacity: 0;
}
.rfx-hamburger[aria-expanded="true"] .rfx-hamburger__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── HERO ───────────────────────────────────────────────────── */
.rfx-hero {
    position: relative;
    padding: clamp(60px,10vw,120px) 0 clamp(40px,6vw,80px);
    overflow: hidden;
}

.rfx-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Subtle grid lines — signature element */
.rfx-hero__grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.rfx-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}
.rfx-hero__orb--1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -100px;
    background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
}
.rfx-hero__orb--2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -80px;
    background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 70%);
}

.rfx-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.rfx-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rfx-gold);
    margin-bottom: 20px;
}

.rfx-hero__headline {
    font-family: var(--rfx-font-display);
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--rfx-white);
    margin-bottom: 20px;
}
.rfx-hero__headline em {
    font-style: normal;
    color: var(--rfx-gold);
}

.rfx-hero__sub {
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    color: var(--rfx-text-soft);
    line-height: 1.7;
    max-width: 460px;
    margin-bottom: 32px;
}

.rfx-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rfx-hero__converter {
    background: var(--rfx-dark-2);
    border: 1px solid var(--rfx-border);
    border-radius: var(--rfx-radius-lg);
    padding: 28px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(201,168,76,0.06);
}

/* Strip inner wrapper padding since it's already in the card */
.rfx-hero__converter .rg-cc-wrapper {
    padding: 0;
    max-width: 100%;
}

.rfx-converter-notice {
    text-align: center;
    padding: 40px 20px;
    color: var(--rfx-text-soft);
}

/* ── STATS BAR ──────────────────────────────────────────────── */
.rfx-stats-bar {
    background: var(--rfx-dark-2);
    border-top: 1px solid var(--rfx-border);
    border-bottom: 1px solid var(--rfx-border);
    padding: 20px 0;
}

.rfx-stats-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px,4vw,48px);
    flex-wrap: wrap;
}

.rfx-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}
.rfx-stat__value {
    font-family: var(--rfx-font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--rfx-gold);
    letter-spacing: -0.02em;
}
.rfx-stat__label {
    font-size: 0.72rem;
    color: var(--rfx-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
}
.rfx-stat__divider {
    width: 1px;
    height: 36px;
    background: var(--rfx-border);
}

/* ── SECTION SHARED ─────────────────────────────────────────── */
.rfx-section {
    padding: var(--rfx-section) 0;
}

.rfx-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(28px, 4vw, 48px);
    flex-wrap: wrap;
}

.rfx-section__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rfx-gold);
    display: block;
    margin-bottom: 8px;
}

.rfx-section__title {
    font-family: var(--rfx-font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--rfx-white);
    line-height: 1.15;
}

.rfx-section__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rfx-gold);
    white-space: nowrap;
    margin-bottom: 6px;
}
.rfx-section__link:hover { color: var(--rfx-gold-light); }

/* ── GRID ───────────────────────────────────────────────────── */
.rfx-grid {
    display: grid;
    gap: var(--rfx-gap);
}
.rfx-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rfx-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ── CARD ───────────────────────────────────────────────────── */
.rfx-card {
    background: var(--rfx-dark-2);
    border: 1px solid var(--rfx-border);
    border-radius: var(--rfx-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--rfx-ease), transform var(--rfx-ease), box-shadow var(--rfx-ease);
}
.rfx-card:hover {
    border-color: var(--rfx-border-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* Featured card spans 2 cols */
.rfx-card--featured {
    grid-column: span 2;
    flex-direction: row;
}
.rfx-card--featured .rfx-card__thumb { height: 100%; min-height: 260px; }
.rfx-card--featured .rfx-card__body { padding: 32px; }
.rfx-card--featured .rfx-card__title--featured {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    margin-bottom: 12px;
}

.rfx-card__thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    flex-shrink: 0;
}
.rfx-card--featured .rfx-card__thumb { width: 46%; aspect-ratio: auto; }

.rfx-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.rfx-card:hover .rfx-card__thumb img { transform: scale(1.04); }

.rfx-card__thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,16,24,0.5), transparent);
}

.rfx-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rfx-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.rfx-card__date {
    font-size: 0.76rem;
    color: var(--rfx-text-muted);
}

.rfx-card__title {
    font-family: var(--rfx-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--rfx-text);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.rfx-card__title a { color: inherit; }
.rfx-card__title a:hover { color: var(--rfx-gold-light); }

.rfx-card__excerpt {
    font-size: 0.88rem;
    color: var(--rfx-text-soft);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.rfx-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--rfx-border);
}

.rfx-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--rfx-gold);
}
.rfx-card__read-more:hover { color: var(--rfx-gold-light); }

.rfx-card__read-time {
    font-size: 0.75rem;
    color: var(--rfx-text-muted);
}

/* ── PAIR CARDS ─────────────────────────────────────────────── */
.rfx-pairs { background: var(--rfx-dark-2); }

.rfx-pairs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--rfx-gap);
}

.rfx-pair-card {
    background: var(--rfx-dark-3);
    border: 1px solid var(--rfx-border);
    border-radius: var(--rfx-radius);
    padding: 24px 20px;
    text-align: center;
    transition: border-color var(--rfx-ease), box-shadow var(--rfx-ease), transform var(--rfx-ease);
    cursor: default;
}
.rfx-pair-card:hover {
    border-color: rgba(201,168,76,0.4);
    box-shadow: 0 0 24px var(--rfx-gold-muted);
    transform: translateY(-2px);
}

.rfx-pair-card__codes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}
.rfx-pair-card__from,
.rfx-pair-card__to {
    font-family: var(--rfx-font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--rfx-text);
}
.rfx-pair-card__sep {
    color: var(--rfx-gold);
    font-weight: 800;
    font-size: 1.2rem;
}
.rfx-pair-card__rate {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rfx-gold);
    margin-bottom: 8px;
    min-height: 2rem;
    font-family: var(--rfx-font-display);
}
.rfx-pair-card__label {
    font-size: 0.74rem;
    color: var(--rfx-text-muted);
    letter-spacing: 0.02em;
}

/* ── CTA BANNER ─────────────────────────────────────────────── */
.rfx-cta-banner {
    padding: clamp(48px, 7vw, 96px) 0;
    background: linear-gradient(135deg, rgba(201,168,76,0.06) 0%, transparent 60%);
    border-top: 1px solid var(--rfx-border);
    border-bottom: 1px solid var(--rfx-border);
}

.rfx-cta-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.rfx-cta-banner__title {
    font-family: var(--rfx-font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--rfx-white);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.rfx-cta-banner__sub {
    color: var(--rfx-text-soft);
    font-size: 0.95rem;
}
.rfx-cta-banner__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ── ARCHIVE LAYOUT ─────────────────────────────────────────── */
.rfx-main--archive { padding: clamp(40px,6vw,80px) 0; }

.rfx-archive-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: clamp(24px,4vw,48px);
    align-items: start;
}

.rfx-archive-head { margin-bottom: 32px; }
.rfx-archive-head__title {
    font-family: var(--rfx-font-display);
    font-size: clamp(1.5rem,3vw,2.2rem);
    font-weight: 800;
    color: var(--rfx-white);
    letter-spacing: -0.02em;
}

/* ── SINGLE LAYOUT ──────────────────────────────────────────── */
.rfx-main--single { padding: clamp(40px,6vw,80px) 0; }

.rfx-single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: clamp(24px,4vw,48px);
    align-items: start;
}

/* ── ARTICLE ────────────────────────────────────────────────── */
.rfx-article__header {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--rfx-border);
}

.rfx-article__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.rfx-article__read-time {
    font-size: 0.76rem;
    color: var(--rfx-text-muted);
}

.rfx-article__title {
    font-family: var(--rfx-font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--rfx-white);
    margin-bottom: 16px;
}

.rfx-article__excerpt {
    font-size: 1.05rem;
    color: var(--rfx-text-soft);
    line-height: 1.7;
    margin-bottom: 20px;
}

.rfx-article__author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rfx-article__avatar {
    border-radius: 50%;
    border: 2px solid var(--rfx-border);
}
.rfx-article__author-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rfx-text-soft);
}

.rfx-article__hero-img {
    border-radius: var(--rfx-radius);
    overflow: hidden;
    margin-bottom: 40px;
    aspect-ratio: 16/7;
}
.rfx-article__hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Prose styles */
.rfx-prose { color: var(--rfx-text-soft); line-height: 1.8; font-size: 1.02rem; }
.rfx-prose h2, .rfx-prose h3, .rfx-prose h4 {
    font-family: var(--rfx-font-display);
    font-weight: 700;
    color: var(--rfx-white);
    margin: 2em 0 0.6em;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.rfx-prose h2 { font-size: 1.5rem; }
.rfx-prose h3 { font-size: 1.2rem; }
.rfx-prose p  { margin-bottom: 1.4em; }
.rfx-prose ul, .rfx-prose ol {
    padding-left: 1.5em;
    margin-bottom: 1.4em;
}
.rfx-prose li { margin-bottom: 0.4em; }
.rfx-prose blockquote {
    border-left: 3px solid var(--rfx-gold);
    padding: 16px 20px;
    margin: 2em 0;
    background: var(--rfx-dark-3);
    border-radius: 0 var(--rfx-radius-sm) var(--rfx-radius-sm) 0;
    color: var(--rfx-text);
    font-style: italic;
}
.rfx-prose a { color: var(--rfx-gold); text-decoration: underline; text-underline-offset: 3px; }
.rfx-prose strong { color: var(--rfx-text); font-weight: 700; }
.rfx-prose img {
    border-radius: var(--rfx-radius-sm);
    margin: 1.5em auto;
}
.rfx-prose code {
    background: var(--rfx-dark-3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    color: var(--rfx-gold-light);
}
.rfx-prose pre {
    background: var(--rfx-dark-3);
    border: 1px solid var(--rfx-border);
    border-radius: var(--rfx-radius-sm);
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 1.4em;
}

.rfx-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--rfx-border);
}

/* Post nav */
.rfx-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--rfx-border);
}
.rfx-post-nav__item { display: flex; flex-direction: column; gap: 6px; }
.rfx-post-nav__item--next { text-align: right; }
.rfx-post-nav__label { font-size: 0.74rem; color: var(--rfx-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.rfx-post-nav__title { font-size: 0.9rem; font-weight: 600; color: var(--rfx-text); line-height: 1.4; }
.rfx-post-nav__title:hover { color: var(--rfx-gold); }

/* ── SIDEBAR ────────────────────────────────────────────────── */
.rfx-sidebar {
    position: sticky;
    top: 116px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rfx-sidebar-widget {
    background: var(--rfx-dark-2);
    border: 1px solid var(--rfx-border);
    border-radius: var(--rfx-radius);
    overflow: hidden;
}

.rfx-sidebar-widget--converter { padding: 20px; }

.rfx-sidebar-widget__title {
    font-family: var(--rfx-font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rfx-white);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rfx-border);
    letter-spacing: -0.01em;
}

/* Compact converter in sidebar */
.rfx-sidebar-widget--converter .rg-cc-wrapper { padding: 0; max-width: 100%; }
.rfx-sidebar-widget--converter .rg-cc-header { display: none; }
.rfx-sidebar-widget--converter .rg-cc-card { padding: 16px; }
.rfx-sidebar-widget--converter .rg-cc-card::before { display: none; }

/* ── DEFAULT WIDGET STYLES ──────────────────────────────────── */
.rfx-widget {
    padding: 20px;
}
.rfx-widget__title {
    font-family: var(--rfx-font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--rfx-white);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rfx-border);
}

/* ── PAGINATION ─────────────────────────────────────────────── */
.rfx-pagination { margin-top: 48px; }
.rfx-pagination .nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.rfx-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--rfx-dark-3);
    border: 1px solid var(--rfx-border);
    border-radius: var(--rfx-radius-sm);
    color: var(--rfx-text-soft);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--rfx-ease);
}
.rfx-pagination .page-numbers:hover,
.rfx-pagination .page-numbers.current {
    background: var(--rfx-gold-muted);
    border-color: rgba(201,168,76,0.3);
    color: var(--rfx-gold);
}

/* ── EMPTY STATE ────────────────────────────────────────────── */
.rfx-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--rfx-text-muted);
    border: 1px dashed var(--rfx-border);
    border-radius: var(--rfx-radius);
}
.rfx-empty p { margin-bottom: 20px; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.rfx-footer {
    background: var(--rfx-dark-2);
    border-top: 1px solid var(--rfx-border);
    margin-top: 0;
}

.rfx-footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: clamp(24px,4vw,48px);
    padding: clamp(48px,7vw,80px) 0 clamp(40px,5vw,60px);
}

.rfx-footer__tagline {
    color: var(--rfx-text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 16px 0 20px;
    max-width: 280px;
}

.rfx-footer__socials {
    display: flex;
    gap: 10px;
}
.rfx-footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--rfx-dark-3);
    border: 1px solid var(--rfx-border);
    border-radius: var(--rfx-radius-sm);
    color: var(--rfx-text-muted);
    transition: all var(--rfx-ease);
}
.rfx-footer__social:hover {
    border-color: var(--rfx-gold);
    color: var(--rfx-gold);
    background: var(--rfx-gold-muted);
}

.rfx-footer__heading {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--rfx-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.rfx-footer__nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rfx-footer__nav a {
    font-size: 0.88rem;
    color: var(--rfx-text-muted);
    transition: color var(--rfx-ease);
}
.rfx-footer__nav a:hover { color: var(--rfx-gold); }

.rfx-footer__disclaimer {
    font-size: 0.8rem;
    color: var(--rfx-text-muted);
    line-height: 1.65;
}

.rfx-footer__bottom {
    border-top: 1px solid var(--rfx-border);
    padding: 20px 0;
}
.rfx-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.rfx-footer__copy,
.rfx-footer__powered {
    font-size: 0.8rem;
    color: var(--rfx-text-muted);
}
.rfx-footer__copy a,
.rfx-footer__powered a {
    color: var(--rfx-gold);
}

/* ── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .rfx-ticker__inner { animation: none; }
    .rfx-pulse         { animation: none; }
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .rfx-footer__top { grid-template-columns: 1fr 1fr; }
    .rfx-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .rfx-card--featured { grid-column: span 2; }
    .rfx-pairs__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .rfx-hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .rfx-hero__sub { margin: 0 auto 32px; }
    .rfx-hero__actions { justify-content: center; }
    .rfx-hero__eyebrow { justify-content: center; }

    .rfx-archive-layout,
    .rfx-single-layout {
        grid-template-columns: 1fr;
    }
    .rfx-sidebar { position: static; }

    .rfx-card--featured { flex-direction: column; }
    .rfx-card--featured .rfx-card__thumb { width: 100%; aspect-ratio: 16/9; }
    .rfx-card--featured .rfx-card__body { padding: 20px; }
}

@media (max-width: 640px) {
    .rfx-hamburger { display: flex; }

    .rfx-nav {
        position: fixed;
        top: 104px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--rfx-black);
        border-top: 1px solid var(--rfx-border);
        padding: 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 99;
        overflow-y: auto;
    }
    .rfx-nav.is-open { transform: translateX(0); }
    .rfx-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
    }
    .rfx-nav__link { padding: 14px 16px; font-size: 1rem; }
    .rfx-nav__item:last-child .rfx-nav__link { text-align: center; margin-top: 8px; }

    .rfx-grid--3,
    .rfx-grid--2 { grid-template-columns: 1fr; }
    .rfx-card--featured { grid-column: span 1; }
    .rfx-pairs__grid { grid-template-columns: 1fr 1fr; }
    .rfx-footer__top { grid-template-columns: 1fr; }
    .rfx-stats-bar__inner { gap: 20px; }
    .rfx-stat__divider { display: none; }
    .rfx-cta-banner__inner { flex-direction: column; text-align: center; }
    .rfx-cta-banner__actions { justify-content: center; }
    .rfx-post-nav { grid-template-columns: 1fr; }
    .rfx-post-nav__item--next { text-align: left; }
}
