/**
 * RaiderTrader — assets/css/raidertrader.css
 *
 * Supplemental styles loaded after style.css.
 * Contains: page-specific layouts, card-detail page,
 * dashboard, pricing page, Elementor widget overrides,
 * and animation polish.
 *
 * All design tokens are defined in style.css — do not
 * redefine :root variables here.
 */

/* ─────────────────────────────────────────
   PAGE: HOMEPAGE HERO
───────────────────────────────────────── */

.rt-hero__tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--rt-muted);
    max-width: 560px;
    margin: 16px auto 0;
    line-height: 1.65;
}

.rt-hero__live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(76, 175, 110, 0.1);
    border: 1px solid rgba(76, 175, 110, 0.25);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--rt-green);
    margin-bottom: 20px;
}

.rt-hero__live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rt-green);
    animation: rt-pulse 1.8s infinite;
}

/* Diagonal gold accent line above the hero */
.rt-hero-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rt-gold), transparent);
    opacity: 0.6;
}

/* ─────────────────────────────────────────
   PAGE: DEALS / FEED
───────────────────────────────────────── */

.rt-page-deals {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.rt-page-deals__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.rt-page-deals__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--rt-white);
}

.rt-page-deals__sub {
    font-size: 0.85rem;
    color: var(--rt-muted);
    margin-top: 4px;
}

/* Deal card — enhanced hover state with gold shimmer */
.rt-deal-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--rt-radius-lg);
    background: linear-gradient(135deg, rgba(186, 117, 23, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--rt-transition);
    pointer-events: none;
}

.rt-deal-card:hover::after {
    opacity: 1;
}

/* High-score deals get a subtle gold border highlight */
.rt-deal-card[data-score-high] {
    border-color: rgba(186, 117, 23, 0.35);
}

/* ─────────────────────────────────────────
   PAGE: CARD DETAIL
───────────────────────────────────────── */

.rt-card-detail-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.rt-card-detail-image {
    position: sticky;
    top: 80px;
}

.rt-card-detail-image img {
    width: 100%;
    border-radius: var(--rt-radius-lg);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
}

.rt-card-detail-image img:hover {
    transform: scale(1.03);
}

.rt-card-detail-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rt-card-detail-name {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--rt-white);
    line-height: 1.15;
}

.rt-card-detail-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Flip panel — the active deal for this card */
.rt-flip-panel {
    background: var(--rt-bg-card);
    border: 1px solid var(--rt-gold-dim);
    border-radius: var(--rt-radius-lg);
    padding: 24px;
    box-shadow: var(--rt-shadow-gold);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rt-flip-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rt-flip-panel__title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rt-gold);
}

.rt-flip-panel__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--rt-border);
    border-radius: var(--rt-radius);
    overflow: hidden;
}

.rt-flip-panel__metric {
    background: var(--rt-bg-surface);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rt-flip-panel__metric-value {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--rt-font-mono);
    color: var(--rt-white);
}

.rt-flip-panel__metric-value.green  { color: var(--rt-green); }
.rt-flip-panel__metric-value.gold   { color: var(--rt-gold);  }

.rt-flip-panel__metric-label {
    font-size: 0.7rem;
    color: var(--rt-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rt-flip-panel__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* eBay sold comps table */
.rt-comps-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.rt-comps-table th {
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rt-muted);
    padding: 10px 12px;
    border-bottom: 1px solid var(--rt-border);
}

.rt-comps-table td {
    padding: 12px;
    border-bottom: 1px solid var(--rt-border);
    color: var(--rt-muted);
    vertical-align: middle;
}

.rt-comps-table td:first-child {
    color: var(--rt-white);
    font-weight: 600;
}

.rt-comps-table td.price {
    font-family: var(--rt-font-mono);
    font-weight: 700;
    color: var(--rt-gold);
}

.rt-comps-table tr:last-child td {
    border-bottom: none;
}

.rt-comps-table tr:hover td {
    background: rgba(241, 239, 232, 0.03);
}

/* ─────────────────────────────────────────
   PAGE: PRICING
───────────────────────────────────────── */

.rt-pricing-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.rt-pricing-page__headline {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.rt-pricing-page__sub {
    font-size: 1rem;
    color: var(--rt-muted);
    margin-bottom: 48px;
    line-height: 1.6;
}

/* Feature comparison row — used between pricing cards */
.rt-feature-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
    text-align: left;
}

.rt-feature-table th {
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rt-muted);
    border-bottom: 2px solid var(--rt-border);
}

.rt-feature-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--rt-border);
    color: var(--rt-muted);
    font-size: 0.88rem;
}

.rt-feature-table td:first-child {
    color: var(--rt-white);
    font-weight: 500;
}

.rt-feature-table td.check {
    color: var(--rt-green);
    font-weight: 700;
    font-size: 1rem;
}

.rt-feature-table td.cross {
    color: var(--rt-border);
    font-size: 1rem;
}

.rt-feature-table tr:last-child td {
    border-bottom: none;
}

.rt-feature-table tr:hover td {
    background: rgba(241, 239, 232, 0.02);
}

/* Money-back guarantee badge */
.rt-guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 10px 20px;
    border: 1px solid var(--rt-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--rt-muted);
}

.rt-guarantee-badge strong {
    color: var(--rt-white);
}

/* ─────────────────────────────────────────
   PAGE: ACCOUNT / DASHBOARD
───────────────────────────────────────── */

.rt-dashboard-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.rt-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.rt-dashboard-greeting {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rt-white);
}

.rt-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.rt-plan-badge--pro {
    background: linear-gradient(135deg, var(--rt-gold), var(--rt-gold-light));
    color: #111210;
}

.rt-plan-badge--free {
    background: var(--rt-bg-surface);
    border: 1px solid var(--rt-border);
    color: var(--rt-muted);
}

/* Dashboard section headers */
.rt-dashboard-section {
    margin-bottom: 32px;
}

.rt-dashboard-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rt-border);
}

.rt-dashboard-section__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rt-white);
}

/* ─────────────────────────────────────────
   ALERT WIDGET (price-alert-widget.php)
───────────────────────────────────────── */

.rt-alert-widget {
    background: var(--rt-bg-card);
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius-lg);
    padding: 24px;
}

.rt-alert-widget__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.rt-alert-widget__icon {
    font-size: 1.2rem;
}

.rt-alert-widget__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rt-white);
}

.rt-alert-widget__sub {
    font-size: 0.82rem;
    color: var(--rt-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Pro lock state for alert widget */
.rt-alert-widget--locked {
    text-align: center;
    padding: 32px 24px;
}

.rt-alert-widget--locked .rt-lock-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

/* ─────────────────────────────────────────
   ELEMENTOR WIDGET WRAPPERS
───────────────────────────────────────── */

/* Remove default Elementor padding/margin from widget wrappers
   when inside the deals or card-detail page templates */
.rt-page-deals .elementor-widget-wrap,
.rt-card-detail .elementor-widget-wrap {
    padding: 0 !important;
}

/* Ensure Elementor text widgets inherit RaiderTrader colors */
.elementor-widget-text-editor p {
    color: var(--rt-muted);
    line-height: 1.7;
}

.elementor-widget-heading .elementor-heading-title {
    color: var(--rt-white);
}

/* ─────────────────────────────────────────
   LOADING OVERLAY
───────────────────────────────────────── */

.rt-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 18, 16, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: var(--rt-radius-lg);
    backdrop-filter: blur(2px);
}

.rt-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--rt-border);
    border-top-color: var(--rt-gold);
    border-radius: 50%;
    animation: rt-spin 0.7s linear infinite;
}

@keyframes rt-spin {
    to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────
   TOOLTIPS
───────────────────────────────────────── */

[data-rt-tooltip] {
    position: relative;
    cursor: help;
}

[data-rt-tooltip]::after {
    content: attr(data-rt-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--rt-bg-surface);
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius);
    padding: 6px 10px;
    font-size: 0.75rem;
    color: var(--rt-muted);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 999;
    box-shadow: var(--rt-shadow);
}

[data-rt-tooltip]:hover::after {
    opacity: 1;
}

/* ─────────────────────────────────────────
   TRANSITIONS & ENTRANCE ANIMATIONS
───────────────────────────────────────── */

@keyframes rt-fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rt-animate-in {
    animation: rt-fade-up 0.4s ease both;
}

/* Stagger deal cards on initial load */
.rt-deal-card:nth-child(1)  { animation: rt-fade-up 0.35s 0.00s ease both; }
.rt-deal-card:nth-child(2)  { animation: rt-fade-up 0.35s 0.05s ease both; }
.rt-deal-card:nth-child(3)  { animation: rt-fade-up 0.35s 0.10s ease both; }
.rt-deal-card:nth-child(4)  { animation: rt-fade-up 0.35s 0.15s ease both; }
.rt-deal-card:nth-child(5)  { animation: rt-fade-up 0.35s 0.20s ease both; }
.rt-deal-card:nth-child(n+6){ animation: rt-fade-up 0.35s 0.25s ease both; }

/* ─────────────────────────────────────────
   NAVIGATION BAR (if using a custom nav)
───────────────────────────────────────── */

.rt-nav {
    position: sticky;
    top: 0;
    z-index: 500;
    background: rgba(17, 18, 16, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rt-border);
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rt-nav__logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--rt-white) !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rt-nav__logo span {
    color: var(--rt-gold);
}

.rt-nav__links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rt-nav__links a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rt-muted) !important;
    text-decoration: none !important;
    transition: color var(--rt-transition);
}

.rt-nav__links a:hover,
.rt-nav__links a.active {
    color: var(--rt-white) !important;
}

.rt-nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */

.rt-footer {
    background: var(--rt-bg-surface);
    border-top: 1px solid var(--rt-border);
    padding: 40px 24px;
    margin-top: 80px;
    text-align: center;
}

.rt-footer__logo {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--rt-white);
    margin-bottom: 8px;
}

.rt-footer__logo span {
    color: var(--rt-gold);
}

.rt-footer__tagline {
    font-size: 0.82rem;
    color: var(--rt-muted);
    margin-bottom: 20px;
    font-style: italic;
}

.rt-footer__links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.rt-footer__links a {
    font-size: 0.8rem;
    color: var(--rt-muted) !important;
    transition: color var(--rt-transition);
}

.rt-footer__links a:hover {
    color: var(--rt-gold) !important;
}

.rt-footer__copy {
    font-size: 0.75rem;
    color: var(--rt-muted);
    opacity: 0.5;
}

/* ─────────────────────────────────────────
   PRINT STYLES
───────────────────────────────────────── */

@media print {
    .rt-paywall-gate,
    .rt-nav,
    .rt-filters,
    .rt-pagination {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* ─────────────────────────────────────────
   RESPONSIVE ADDITIONS
───────────────────────────────────────── */

@media (max-width: 900px) {
    .rt-card-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px;
    }

    .rt-card-detail-image {
        position: static;
        max-width: 220px;
        margin: 0 auto;
        text-align: center;
    }

    /* Center the external links (TCGPlayer, Buy on eBay) below the image */
    .rt-card-detail-image > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    /* Card ID block — center on mobile */
    .rt-card-detail-image > div[style*="padding:10px"] {
        text-align: center;
    }

    .rt-flip-panel__metrics {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    /* ── Card page header / breadcrumb ── */
    /* The inline padding:20px 24px on the header div handles this already,
       but on very small screens we tighten it */
    .rt-card-detail-grid {
        padding: 0 12px;
    }

    /* ── Flip panel ── */
    .rt-flip-panel {
        padding: 16px;
    }

    .rt-flip-panel__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .rt-flip-panel__metrics {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 16px 0;
    }

    .rt-flip-panel__metric-value {
        font-size: 1.3rem;
    }

    .rt-flip-panel__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .rt-flip-panel__actions .rt-btn {
        width: 100%;
        justify-content: center;
    }

    /* Fee breakdown table — tighten */
    .rt-flip-panel [style*="padding:12px 14px"] {
        padding: 10px 12px !important;
        font-size: 0.78rem !important;
    }

    /* ── Card image section ── */
    .rt-card-detail-image {
        max-width: 200px;
    }

    .rt-card-detail-image .rt-btn {
        width: 100%;
        justify-content: center;
    }

    /* ── Comps table — make scrollable on mobile ── */
    .rt-comps-table {
        font-size: 0.75rem;
    }

    .rt-comps-table th,
    .rt-comps-table td {
        padding: 8px 10px;
    }

    /* Hide less critical columns on small screens */
    .rt-comps-table th:nth-child(4),
    .rt-comps-table td:nth-child(4),
    .rt-comps-table th:nth-child(5),
    .rt-comps-table td:nth-child(5) {
        display: none;
    }

    /* ── Alert widget ── */
    .rt-alert-widget {
        padding: 16px;
    }

    .rt-form-row {
        flex-direction: column;
        gap: 12px;
    }

    .rt-form-field {
        max-width: none !important;
    }

    /* ── General page layout ── */
    .rt-page-deals__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rt-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rt-nav__links {
        display: none;
    }

    /* ── Nav actions — tighter on mobile ── */
    .rt-nav__actions {
        gap: 6px;
    }

    .rt-nav__actions .rt-btn-sm {
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    /* ── Breadcrumb — allow wrapping ── */
    nav[aria-label="Breadcrumb"] ol {
        flex-wrap: wrap;
        gap: 4px;
    }

    .rt-flip-panel__actions .rt-btn {
        width: 100%;
        justify-content: center;
    }

    .rt-pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────
   DEALS PAGE — 3-COLUMN GRID LAYOUT
   .rt-flip-feed--grid switches from single
   column list to a 3-up card grid.
───────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════
   DEALS GRID — 3-column card layout
   Matches the RaiderTrader card design system
═══════════════════════════════════════════════════════════ */

/* Grid container */
.rt-flip-feed--grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}

/* ── Base card — vertical tile ────────────────────────── */
.rt-flip-feed--grid .rt-deal-card {
    display: flex;
    flex-direction: column;
    background: var(--rt-bg-card);
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.rt-flip-feed--grid .rt-deal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

/* ── Image area ───────────────────────────────────────── */
.rt-deal-card__img-wrap {
    background: var(--rt-bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    min-height: 160px;
}
.rt-deal-card__img-link {
    display: block;
}
.rt-deal-card__img {
    width: auto;
    height: 140px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.rt-deal-card__img-placeholder {
    font-size: 3rem;
    opacity: 0.3;
}

/* ── Info section (name / set / badges) ───────────────── */
.rt-deal-card__info {
    padding: 14px 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rt-deal-card__name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--rt-white);
    text-decoration: none;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
a.rt-deal-card__name:hover { color: var(--rt-gold); }
.rt-deal-card__set {
    font-size: 0.82rem;
    color: var(--rt-muted);
}
.rt-deal-card__meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

/* ── Price section ────────────────────────────────────── */
.rt-deal-card__prices {
    margin-top: auto;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--rt-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Buy / Mkt left, score ring right */
.rt-deal-card__prices-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.rt-deal-card__prices-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.rt-price-buy {
    font-size: 0.88rem;
    color: var(--rt-muted);
    font-family: var(--rt-font-mono);
}
.rt-price-market {
    font-size: 0.88rem;
    color: var(--rt-muted);
    font-family: var(--rt-font-mono);
}

/* Profit — large green */
.rt-price-profit {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--rt-green);
    line-height: 1.1;
    margin-top: 2px;
}

/* Margin label */
.rt-deal-card__margin {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--rt-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* CTA button — full width gold */
.rt-deal-card__cta {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 16px;
    font-size: 0.92rem;
    font-weight: 700;
}
/* ── Responsive — grid collapses ──────── */
@media (max-width: 1024px) {
    .rt-flip-feed--grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .rt-flip-feed--grid {
        grid-template-columns: 1fr;
    }

    /* Back to horizontal row on mobile */
    .rt-flip-feed--grid .rt-deal-card {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0;
    }

    .rt-flip-feed--grid .rt-deal-card__img-link {
        width: 70px;
        border-bottom: none;
        border-right: 1px solid var(--rt-border);
        padding: 12px 8px;
        align-self: stretch;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .rt-flip-feed--grid .rt-deal-card__img {
        height: 84px;
    }

    .rt-flip-feed--grid .rt-deal-card__img-placeholder {
        width: 70px;
        height: auto;
        min-height: 84px;
        border-bottom: none;
        border-right: 1px solid var(--rt-border);
        flex-shrink: 0;
        font-size: 1.6rem;
    }

    .rt-flip-feed--grid .rt-deal-card__info {
        flex: 1;
        padding: 12px;
    }

    .rt-flip-feed--grid .rt-deal-card__prices {
        width: 100%;
        border-top: 1px solid var(--rt-border);
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        background: rgba(0,0,0,0.12);
    }

    .rt-flip-feed--grid .rt-deal-card__prices .rt-btn {
        width: auto;
        margin-top: 0;
        margin-left: auto;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   GRAVITY FORMS — RaiderTrader dark theme
   Covers: Orbital (gform-theme--framework / gravity-theme) +
           Legacy markup (gform_legacy_markup_wrapper)
   Design tokens match the rest of the RT app exactly.
═══════════════════════════════════════════════════════════════════════ */

/* ── Override GF CSS custom properties on any RT page ── */
.gform-theme--framework,
.gravity-theme,
.gform_wrapper {
    --gf-color-primary:             var(--rt-gold);
    --gf-color-primary-rgb:         186, 117, 23;
    --gf-ctrl-bg-color:             var(--rt-bg-surface);
    --gf-ctrl-border-color:         var(--rt-border);
    --gf-ctrl-border-color-focus:   var(--rt-gold);
    --gf-ctrl-label-color-primary:  var(--rt-muted);
    --gf-ctrl-label-color-secondary:var(--rt-muted);
    --gf-ctrl-color:                var(--rt-white);
    --gf-ctrl-radius:               var(--rt-radius);
    --gf-font-size-label-primary:   0.75rem;
    --gf-font-weight-label:         700;
    --gf-btn-bg-color:              var(--rt-gold);
    --gf-btn-color:                 #111210;
    --gf-btn-border-color:          transparent;
    --gf-btn-bg-color-hover:        var(--rt-gold-light);
    --gf-btn-color-hover:           #111210;
    background: transparent !important;
    font-family: var(--rt-font-sans) !important;
    color: var(--rt-white) !important;
    max-width: 100% !important;
}

/* ── Form wrapper card ── */
.gform_wrapper,
.gform-theme--framework .gform_wrapper {
    background: var(--rt-bg-card) !important;
    border: 1px solid var(--rt-border) !important;
    border-radius: var(--rt-radius-lg) !important;
    padding: 32px !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4) !important;
    max-width: 580px !important;
    margin: 0 auto !important;
}

/* ── Form title / description ── */
.gform_title,
.gform_description {
    color: var(--rt-white) !important;
    font-family: var(--rt-font-sans) !important;
}
.gform_title {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    border-bottom: 1px solid var(--rt-border) !important;
    padding-bottom: 14px !important;
    margin-bottom: 20px !important;
}
.gform_description {
    font-size: 0.85rem !important;
    color: var(--rt-muted) !important;
    margin-bottom: 20px !important;
}

/* ── Labels ── */
.gfield_label,
.gform-field-label,
.gform_wrapper label {
    color: var(--rt-muted) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    margin-bottom: 4px !important;
    font-family: var(--rt-font-sans) !important;
}

/* ── Sub-labels (name field first/last) ── */
.gfield_sublabel,
.ginput_complex label {
    color: var(--rt-muted) !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

/* ── All text inputs, selects, textareas ── */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="password"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="url"],
.gform_wrapper select,
.gform_wrapper textarea,
.gfield input[type="text"],
.gfield input[type="email"],
.gfield input[type="password"],
.gfield input[type="tel"],
.gfield input[type="number"],
.gfield select,
.gfield textarea {
    background:    var(--rt-bg-surface) !important;
    border:        1px solid var(--rt-border) !important;
    border-radius: var(--rt-radius) !important;
    color:         var(--rt-white) !important;
    padding:       10px 14px !important;
    font-size:     0.9rem !important;
    font-family:   var(--rt-font-sans) !important;
    width:         100% !important;
    box-sizing:    border-box !important;
    margin-bottom: 0 !important;
    box-shadow:    none !important;
    transition:    border-color 0.2s, box-shadow 0.2s !important;
    appearance:    none !important;
}

.gform_wrapper input[type="text"]:focus,
.gform_wrapper input[type="email"]:focus,
.gform_wrapper input[type="password"]:focus,
.gform_wrapper input[type="tel"]:focus,
.gform_wrapper input[type="number"]:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
    border-color: var(--rt-gold) !important;
    box-shadow:   0 0 0 2px rgba(186,117,23,0.15) !important;
    outline:      none !important;
}

/* Select arrow */
.gform_wrapper select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8c84' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 36px !important;
}

/* ── Field spacing ── */
.gfield {
    margin-bottom: 16px !important;
    padding: 0 !important;
}
.gfield:last-child { margin-bottom: 8px !important; }

/* ── Field description ── */
.gfield_description {
    color: var(--rt-muted) !important;
    font-size: 0.78rem !important;
    margin-top: 4px !important;
}

/* ── Required asterisk ── */
.gfield_required,
.gfield_required_asterisk {
    color: var(--rt-gold) !important;
}

/* ── Validation errors ── */
.gfield_error input,
.gfield_error select,
.gfield_error textarea {
    border-color: #e05c5c !important;
}
.validation_message,
.gfield_error .gfield_label,
.gform_validation_errors,
.gform_validation_container {
    color: #e05c5c !important;
    font-size: 0.82rem !important;
}
.gform_validation_errors {
    background: rgba(224,92,92,0.08) !important;
    border: 1px solid rgba(224,92,92,0.25) !important;
    border-radius: var(--rt-radius) !important;
    padding: 12px 16px !important;
    margin-bottom: 16px !important;
}

/* ── Confirmation / success message ── */
.gforms_confirmation_message,
.gform_confirmation_wrapper {
    background: rgba(76,175,110,0.08) !important;
    border: 1px solid rgba(76,175,110,0.25) !important;
    border-radius: var(--rt-radius-lg) !important;
    padding: 24px !important;
    color: var(--rt-green) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-align: center !important;
}

/* ── Submit button ── */
.gform_wrapper .gform_button,
.gform_wrapper input[type="submit"],
.gform_wrapper button[type="submit"],
.gform_footer input[type="submit"],
.gform_page_footer input[type="submit"] {
    background:    var(--rt-gold) !important;
    border:        none !important;
    border-radius: var(--rt-radius) !important;
    color:         #111210 !important;
    font-family:   var(--rt-font-sans) !important;
    font-weight:   800 !important;
    font-size:     1rem !important;
    padding:       13px 28px !important;
    width:         100% !important;
    cursor:        pointer !important;
    text-shadow:   none !important;
    box-shadow:    none !important;
    letter-spacing:0.02em !important;
    transition:    background 0.2s, transform 0.15s !important;
    margin-top:    8px !important;
    appearance:    none !important;
}
.gform_wrapper .gform_button:hover,
.gform_wrapper input[type="submit"]:hover {
    background:  var(--rt-gold-light) !important;
    transform:   translateY(-1px) !important;
}

/* ── Form footer (holds submit) ── */
.gform_footer,
.gform_page_footer {
    padding: 8px 0 0 !important;
    border: none !important;
    margin: 0 !important;
}

/* ── Square credit card field ── */
.gform_wrapper .ginput_container_creditcard,
.gform_wrapper .gfield--type-creditcard .ginput_container,
#gform_payment_container,
.sq-card-wrapper,
.sq-card-component {
    background: var(--rt-bg-surface) !important;
    border: 1px solid var(--rt-border) !important;
    border-radius: var(--rt-radius) !important;
    padding: 12px 14px !important;
    transition: border-color 0.2s !important;
}
#gform_payment_container:focus-within,
.sq-card-wrapper:focus-within {
    border-color: var(--rt-gold) !important;
    box-shadow: 0 0 0 2px rgba(186,117,23,0.15) !important;
}

/* Square card iframe text overrides */
.sq-card-wrapper input,
.sq-card-iframe-container iframe {
    background: var(--rt-bg-surface) !important;
    color: var(--rt-white) !important;
}

/* ── Credit card field sub-labels (Card Number / Expiry / CVC) ── */
.gfield--type-creditcard .ginput_complex .gform-grid-col label,
.ginput_cardinfo_left label,
.ginput_cardinfo_right label,
.ginput_card_expiration_container label,
.ginput_card_security_code_container label {
    color: var(--rt-muted) !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* ── Order summary / product field ── */
.gfield--type-product,
.gfield--type-total,
.ginput_container_total,
.ginput_product_price {
    background: var(--rt-bg-surface) !important;
    border: 1px solid var(--rt-border) !important;
    border-radius: var(--rt-radius) !important;
    padding: 12px 16px !important;
    margin-bottom: 16px !important;
}
.ginput_product_price,
.ginput_amount {
    color: var(--rt-gold) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}
.gfield_price,
.gform_total_field,
.ginput_container_total input {
    color: var(--rt-white) !important;
    font-weight: 700 !important;
    background: transparent !important;
    border: none !important;
}

/* ── Coupon field ── */
.gform_wrapper .gfield--type-coupon input[type="text"],
.gform_coupon_field input {
    margin-bottom: 0 !important;
}
.gform_coupon_button,
.gform_wrapper .ginput_container_coupon button {
    background: var(--rt-bg-surface) !important;
    border: 1px solid var(--rt-border) !important;
    border-radius: var(--rt-radius) !important;
    color: var(--rt-gold) !important;
    padding: 10px 16px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    transition: border-color 0.2s !important;
}
.gform_coupon_button:hover { border-color: var(--rt-gold) !important; }

/* ── Checkbox / radio ── */
.gform_wrapper input[type="checkbox"],
.gform_wrapper input[type="radio"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: var(--rt-gold) !important;
    margin-right: 8px !important;
}
.gform_wrapper .gchoice label {
    color: var(--rt-white) !important;
    font-size: 0.88rem !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* ── Progress bar (multi-page forms) ── */
.gf_progressbar_wrapper {
    background: var(--rt-bg-surface) !important;
    border: 1px solid var(--rt-border) !important;
    border-radius: 20px !important;
    padding: 10px 16px !important;
    margin-bottom: 20px !important;
}
.gf_progressbar {
    background: var(--rt-border) !important;
    border-radius: 20px !important;
    height: 6px !important;
    overflow: hidden !important;
}
.gf_progressbar_percentage {
    background: var(--rt-gold) !important;
    height: 100% !important;
    border-radius: 20px !important;
    transition: width 0.4s ease !important;
}
.gf_progressbar_title {
    color: var(--rt-muted) !important;
    font-size: 0.78rem !important;
}

/* ── Spinner / loading ── */
.gform_ajax_spinner {
    filter: invert(1) sepia(1) hue-rotate(20deg) !important;
}

/* ── Page break / next-previous buttons ── */
.gform_wrapper .gform_next_button,
.gform_wrapper .gform_previous_button {
    background: transparent !important;
    border: 1px solid var(--rt-border) !important;
    border-radius: var(--rt-radius) !important;
    color: var(--rt-muted) !important;
    padding: 10px 20px !important;
    font-size: 0.88rem !important;
    cursor: pointer !important;
    transition: border-color 0.2s, color 0.2s !important;
    width: auto !important;
    margin-top: 0 !important;
}
.gform_wrapper .gform_next_button:hover,
.gform_wrapper .gform_previous_button:hover {
    border-color: var(--rt-gold) !important;
    color: var(--rt-gold) !important;
}

/* ── Links inside the form ── */
.gform_wrapper a {
    color: var(--rt-gold) !important;
    text-decoration: none !important;
}
.gform_wrapper a:hover { color: var(--rt-gold-light) !important; }

/* ── Responsive: tighten up on mobile ── */
@media (max-width: 640px) {
    .gform_wrapper {
        padding: 20px 16px !important;
    }
    .gform_wrapper .gform_button,
    .gform_wrapper input[type="submit"] {
        font-size: 0.95rem !important;
        padding: 12px 20px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TOOLTIP SYSTEM
   Usage: <span class="rt-tooltip" data-tip="Explanation text">
              Metric label <span class="rt-tooltip__icon">?</span>
          </span>
═══════════════════════════════════════════════════════════════ */

.rt-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: help;
}

.rt-tooltip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(138,140,132,0.2);
    border: 1px solid var(--rt-border);
    color: var(--rt-muted);
    font-size: 0.65rem;
    font-weight: 700;
    font-style: normal;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.rt-tooltip:hover .rt-tooltip__icon,
.rt-tooltip:focus-within .rt-tooltip__icon {
    background: rgba(186,117,23,0.15);
    border-color: var(--rt-gold);
    color: var(--rt-gold);
}

/* Tooltip bubble */
.rt-tooltip__bubble {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #0e100c;
    border: 1px solid rgba(186,117,23,0.3);
    border-radius: var(--rt-radius);
    padding: 10px 14px;
    font-size: 0.78rem;
    color: var(--rt-muted);
    line-height: 1.55;
    width: 240px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    transform: translateX(-50%) translateY(4px);
    white-space: normal;
    text-align: left;
}

/* Arrow */
.rt-tooltip__bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(186,117,23,0.3);
}

.rt-tooltip:hover .rt-tooltip__bubble,
.rt-tooltip:focus-within .rt-tooltip__bubble,
.rt-tooltip__bubble.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Position variants */
.rt-tooltip--right .rt-tooltip__bubble {
    left: calc(100% + 10px);
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}
.rt-tooltip--right .rt-tooltip__bubble::after {
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    border-top-color: transparent;
    border-right-color: rgba(186,117,23,0.3);
}
.rt-tooltip--right:hover .rt-tooltip__bubble,
.rt-tooltip--right:focus-within .rt-tooltip__bubble {
    transform: translateY(-50%);
}

/* ── Disclaimer banner (shown on deals + card pages) ─────────────── */
.rt-disclaimer-bar {
    background: rgba(186,117,23,0.06);
    border-top: 1px solid rgba(186,117,23,0.15);
    padding: 10px 24px;
    text-align: center;
    font-size: 0.76rem;
    color: var(--rt-muted);
}
.rt-disclaimer-bar a {
    color: var(--rt-gold);
    text-decoration: none;
    margin-left: 4px;
}
.rt-disclaimer-bar a:hover { color: var(--rt-gold-light); }

/* ── Inline disclaimer (shown on card detail page) ───────────────── */
.rt-disclaimer-inline {
    background: rgba(186,117,23,0.05);
    border: 1px solid rgba(186,117,23,0.15);
    border-radius: var(--rt-radius);
    padding: 12px 16px;
    font-size: 0.78rem;
    color: var(--rt-muted);
    line-height: 1.6;
    margin-top: 12px;
}
.rt-disclaimer-inline strong { color: var(--rt-white); }
.rt-disclaimer-inline a { color: var(--rt-gold); }

/* ── Footer social links ─────────────────────────────── */
.rt-footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 16px 0 8px;
}

.rt-footer__social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    background: var(--rt-bg-surface);
    border: 1px solid var(--rt-border);
    color: var(--rt-muted);
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.rt-footer__social-link:hover {
    border-color: var(--rt-gold);
    color: var(--rt-white);
    background: rgba(186,117,23,0.08);
}

.rt-footer__social-link svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.rt-footer__social-link:hover svg {
    opacity: 1;
}

/* Platform-specific hover accent colours */
.rt-footer__social-link[aria-label*="TikTok"]:hover   { border-color: #69C9D0; color: #69C9D0; background: rgba(105,201,208,0.06); }
.rt-footer__social-link[aria-label*="Instagram"]:hover { border-color: #E1306C; color: #E1306C; background: rgba(225,48,108,0.06); }
.rt-footer__social-link[aria-label*="Facebook"]:hover  { border-color: #1877F2; color: #1877F2; background: rgba(24,119,242,0.06); }
.rt-footer__social-link[aria-label*="Reddit"]:hover    { border-color: #FF4500; color: #FF4500; background: rgba(255,69,0,0.06);   }

@media (max-width: 480px) {
    .rt-footer__social { gap: 4px; }
    .rt-footer__social-link { font-size: 0.7rem; padding: 6px 10px; }
    .rt-footer__social-link svg { width: 16px; height: 16px; }
}


/* ═══════════════════════════════════════════════════════════════
   SINGLE POST TEMPLATE
═══════════════════════════════════════════════════════════════ */

/* ── Single post layout ──────────────────────────────── */
.rt-single-hero {
    background: var(--rt-bg-surface);
    border-bottom: 1px solid var(--rt-border);
}
.rt-single-hero__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 40px;
}
.rt-single-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--rt-muted);
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s;
}
.rt-single-hero__back:hover { color: var(--rt-gold); }

.rt-single-hero__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.rt-single-hero__cat {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rt-gold);
    background: rgba(186,117,23,0.1);
    border: 1px solid rgba(186,117,23,0.2);
    border-radius: 10px;
    padding: 3px 10px;
    text-decoration: none;
}
.rt-single-hero__date,
.rt-single-hero__read {
    font-size: 0.78rem;
    color: var(--rt-muted);
}
.rt-single-hero__sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--rt-border);
}

.rt-single-hero__title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    color: var(--rt-white);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 20px;
}

.rt-single-hero__author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rt-single-hero__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.rt-single-hero__author-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rt-white);
    text-decoration: none;
}
.rt-single-hero__author-name:hover { color: var(--rt-gold); }

/* ── Hero image ──────────────────────────────────────── */
.rt-single-thumb {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 40px;
}
.rt-single-thumb img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: var(--rt-radius-lg);
    display: block;
}

/* ── Body layout ─────────────────────────────────────── */
.rt-single-body {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px 80px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 56px;
    align-items: start;
}

/* ── Article prose ───────────────────────────────────── */
.rt-single-content {
    min-width: 0;
}
.rt-single-prose {
    font-size: 1rem;
    color: var(--rt-muted);
    line-height: 1.8;
}
.rt-single-prose h2,
.rt-single-prose h3,
.rt-single-prose h4 {
    color: var(--rt-white);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 2em 0 0.6em;
    line-height: 1.25;
}
.rt-single-prose h2 { font-size: 1.5rem; }
.rt-single-prose h3 { font-size: 1.2rem; }
.rt-single-prose h4 { font-size: 1rem; }
.rt-single-prose p  { margin: 0 0 1.4em; }
.rt-single-prose p:last-child { margin-bottom: 0; }

.rt-single-prose a {
    color: var(--rt-gold);
    text-decoration: underline;
    text-decoration-color: rgba(186,117,23,0.35);
    text-underline-offset: 3px;
}
.rt-single-prose a:hover { color: var(--rt-gold-light); }

.rt-single-prose strong { color: var(--rt-white); font-weight: 700; }
.rt-single-prose em     { color: var(--rt-white); }

.rt-single-prose ul,
.rt-single-prose ol {
    padding-left: 1.4em;
    margin: 0 0 1.4em;
    color: var(--rt-muted);
}
.rt-single-prose li { margin-bottom: 0.5em; line-height: 1.7; }

.rt-single-prose blockquote {
    border-left: 3px solid var(--rt-gold);
    margin: 1.6em 0;
    padding: 12px 20px;
    background: rgba(186,117,23,0.05);
    border-radius: 0 var(--rt-radius) var(--rt-radius) 0;
    font-style: italic;
    color: var(--rt-white);
}
.rt-single-prose blockquote p { margin: 0; }

.rt-single-prose code {
    font-family: var(--rt-font-mono);
    font-size: 0.88em;
    background: var(--rt-bg-surface);
    border: 1px solid var(--rt-border);
    border-radius: 4px;
    padding: 2px 6px;
    color: var(--rt-gold);
}
.rt-single-prose pre {
    background: var(--rt-bg-surface);
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius);
    padding: 20px;
    overflow-x: auto;
    margin: 1.4em 0;
    font-family: var(--rt-font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--rt-white);
}
.rt-single-prose pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}
.rt-single-prose img {
    max-width: 100%;
    border-radius: var(--rt-radius);
    display: block;
    margin: 1.4em auto;
}
.rt-single-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: 0.88rem;
}
.rt-single-prose th {
    background: var(--rt-bg-surface);
    color: var(--rt-white);
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid var(--rt-border);
}
.rt-single-prose td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--rt-border);
    color: var(--rt-muted);
}
.rt-single-prose tr:last-child td { border-bottom: none; }
.rt-single-prose tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Tags ────────────────────────────────────────────── */
.rt-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--rt-border);
}
.rt-single-tag {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--rt-muted);
    background: var(--rt-bg-surface);
    border: 1px solid var(--rt-border);
    border-radius: 20px;
    padding: 4px 12px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.rt-single-tag:hover { border-color: var(--rt-gold); color: var(--rt-gold); }

/* ── Share ───────────────────────────────────────────── */
.rt-single-share {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--rt-border);
}
.rt-single-share__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rt-muted);
    margin-bottom: 10px;
}
.rt-single-share__links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.rt-single-share__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--rt-border);
    color: var(--rt-muted);
    background: var(--rt-bg-surface);
    transition: border-color 0.2s, color 0.2s;
}
.rt-single-share__link:hover { border-color: var(--rt-gold); color: var(--rt-gold); }

/* ── Author bio ──────────────────────────────────────── */
.rt-single-author-bio {
    margin-top: 40px;
    padding: 24px;
    background: var(--rt-bg-card);
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius-lg);
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.rt-single-author-bio__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
}
.rt-single-author-bio__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--rt-white);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}
.rt-single-author-bio__name:hover { color: var(--rt-gold); }
.rt-single-author-bio__desc {
    font-size: 0.82rem;
    color: var(--rt-muted);
    line-height: 1.6;
}

/* ── Related posts ───────────────────────────────────── */
.rt-single-related {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px 64px;
}
.rt-single-related__title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rt-gold);
    margin-bottom: 6px;
}
.rt-single-related__heading {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--rt-white);
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}
.rt-single-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── Disclaimer ──────────────────────────────────────── */
.rt-single-disclaimer {
    background: rgba(186,117,23,0.05);
    border: 1px solid rgba(186,117,23,0.15);
    border-radius: var(--rt-radius);
    padding: 14px 18px;
    font-size: 0.78rem;
    color: var(--rt-muted);
    line-height: 1.6;
    margin-top: 28px;
}
.rt-single-disclaimer strong { color: var(--rt-white); }
.rt-single-disclaimer a { color: var(--rt-gold); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 860px) {
    .rt-single-body { grid-template-columns: 1fr; }
    .rt-single-related__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .rt-single-related__grid { grid-template-columns: 1fr; }
    .rt-single-author-bio { flex-direction: column; }
}


/* ═══════════════════════════════════════════════════════════════
   CATEGORY ARCHIVE TEMPLATE
═══════════════════════════════════════════════════════════════ */

/* Reuses rt-blog-* and rt-post-card-* from page-blog.php */
.rt-archive-hero {
    background: var(--rt-bg-surface);
    border-bottom: 1px solid var(--rt-border);
    padding: 48px 24px 40px;
    text-align: center;
}
.rt-archive-hero__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rt-gold);
    margin-bottom: 10px;
}
.rt-archive-hero__title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    color: var(--rt-white);
    letter-spacing: -0.03em;
    margin: 0 0 10px;
}
.rt-archive-hero__desc {
    font-size: 0.95rem;
    color: var(--rt-muted);
    max-width: 520px;
    margin: 0 auto 16px;
    line-height: 1.65;
}
.rt-archive-hero__count {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--rt-muted);
    background: var(--rt-bg-card);
    border: 1px solid var(--rt-border);
    border-radius: 20px;
    padding: 4px 14px;
}

/* ── Category filter pills ──────────────────────────── */
.rt-archive-cats {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.rt-archive-cats__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rt-muted);
    margin-right: 4px;
    flex-shrink: 0;
}
.rt-archive-cat-pill {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    background: var(--rt-bg-card);
    border: 1px solid var(--rt-border);
    color: var(--rt-muted);
    transition: border-color 0.2s, color 0.2s;
}
.rt-archive-cat-pill:hover { border-color: var(--rt-gold); color: var(--rt-gold); }
.rt-archive-cat-pill--active {
    background: rgba(186,117,23,0.1);
    border-color: var(--rt-gold);
    color: var(--rt-gold);
}

/* ── Main layout (same as blog page) ───────────────── */
.rt-blog-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
}
.rt-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.rt-blog-pagination {
    display: flex;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.rt-blog-pagination a,
.rt-blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--rt-radius);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--rt-bg-card);
    border: 1px solid var(--rt-border);
    color: var(--rt-muted);
    transition: border-color 0.2s, color 0.2s;
}
.rt-blog-pagination a:hover { border-color: var(--rt-gold); color: var(--rt-gold); }
.rt-blog-pagination .current {
    background: var(--rt-gold); border-color: var(--rt-gold); color: #111210;
}

@media (max-width: 860px) {
    .rt-blog-wrap { grid-template-columns: 1fr; }
    .rt-blog-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE POST + CATEGORY ARCHIVE — Layout fixes
   Overrides Hello Elementor theme container wrappers so RT
   templates render at full width with correct structure.
═══════════════════════════════════════════════════════════════ */

/* Remove Hello Elementor's page wrapper padding/constraints */
body.rt-single-post-page .site-main,
body.rt-single-post-page .page-content,
body.rt-single-post-page article.post,
body.rt-single-post-page .entry-content,
body.rt-single-post-page .entry-header,
body.rt-category-archive-page .site-main,
body.rt-category-archive-page .page-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ensure site wraps at full width */
body.rt-single-post-page,
body.rt-category-archive-page {
    background: var(--rt-bg) !important;
}

/* Hide any theme-generated titles/meta above our template */
body.rt-single-post-page .entry-title,
body.rt-single-post-page .page-title,
body.rt-single-post-page .post-meta,
body.rt-single-post-page .posted-on,
body.rt-single-post-page .byline,
body.rt-category-archive-page .page-title,
body.rt-category-archive-page .archive-title {
    display: none !important;
}

/* Ensure the rt-single-hero has correct background */
.rt-single-hero {
    background: var(--rt-bg-surface);
    border-bottom: 1px solid var(--rt-border);
    width: 100%;
}

/* Ensure body wraps correctly */
.rt-single-body {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 56px;
    align-items: start;
    box-sizing: border-box;
}

/* Prose font size bump for readability */
.rt-single-prose {
    font-size: 1.05rem;
    line-height: 1.85;
}

/* Reading progress indicator */
.rt-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--rt-gold);
    z-index: 9999;
    transition: width 0.1s linear;
    width: 0%;
}

@media (max-width: 900px) {
    .rt-single-body {
        grid-template-columns: 1fr;
        padding: 24px 16px 60px;
        gap: 32px;
    }
}

/* ── Performance: hint GPU compositing for animated elements ───────────────── */
.rt-score-ring__fill,
.rt-deal-card,
.rt-flip-feed--grid .rt-deal-card {
    will-change: auto; /* reset to auto; use transform on specific animations */
}
.rt-flip-feed--grid .rt-deal-card:hover {
    will-change: transform;
}
.rt-skeleton {
    will-change: background-position;
}

/* ── Grid cards without a URL should not show pointer cursor ─────────────── */
.rt-flip-feed--grid .rt-deal-card:not([data-card-url]) {
    cursor: default;
}
