/* ==========================================================================
   Variant 04: Compact Professional
   Maximum density, data-driven layout with narrow right sidebar
   ========================================================================== */

:root {
    /* Colors (defaults, overridden by colorway) */
    --color-primary: #1e3a5f;
    --color-secondary: #374151;
    --color-accent: #3b82f6;
    --color-background: #f9fafb;
    --color-surface: #ffffff;
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --color-button: #3b82f6;
    --color-button-hover: #2563eb;
    --color-button-text: #ffffff;
    --color-border: #e5e7eb;
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-rating: #fbbf24;

    /* Spacing (compact) */
    --space-xs: 0.125rem;
    --space-sm: 0.25rem;
    --space-md: 0.5rem;
    --space-lg: 0.75rem;
    --space-xl: 1rem;
    --space-2xl: 1.25rem;

    /* Border radius */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 10px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.8125rem;
    --font-size-base: 1.1rem;
    --font-size-lg: 1rem;
    --font-size-xl: 1.125rem;
    --font-size-2xl: 1.25rem;
    --font-size-3xl: 1.5rem;
    --line-height-tight: 1.2;
    --line-height-base: 1.5;

    /* Layout */
    --container-width: 1140px;
    --sidebar-width: 220px;
    --header-height: 52px;

    /* Transitions */
    --transition-fast: 100ms ease;
    --transition-base: 150ms ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-background);
    min-height: 100vh;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    /* Mix accent toward --color-text — adapts to theme, never matches button bg */
    color: color-mix(in srgb, var(--color-accent) 65%, var(--color-text));
}

a:visited {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.id0a4-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.id0a4-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--space-xl);
    padding: var(--space-lg) 0;
}

.id0a4-main {
    min-width: 0;
}

.id0a4-sidebar {
    min-width: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.id0a4-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
}

.id0a4-header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.id0a4-logo {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-accent);
}

.id0a4-logo:hover {
    color: var(--color-accent);
}

.id0a4-logo-img {
    height: 48px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    vertical-align: middle;
}

.id0a4-nav {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.id0a4-nav-item {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.id0a4-nav-item:hover {
    background: var(--color-background);
    color: var(--color-text);
}

.id0a4-nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: var(--space-sm);
    cursor: pointer;
    color: var(--color-text);
}

.id0a4-nav-toggle svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.id0a4-breadcrumbs {
    padding: var(--space-md) 0;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.id0a4-breadcrumbs a {
    color: var(--color-text-muted);
}

.id0a4-breadcrumbs a:hover {
    color: var(--color-accent);
}

.id0a4-breadcrumbs span {
    margin: 0 var(--space-xs);
}

/* ==========================================================================
   Page Header (Listing/Info)
   ========================================================================== */

.id0a4-page-header {
    margin-bottom: var(--space-lg);
}

.id0a4-page-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-accent);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-sm);
}

.id0a4-page-intro {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    line-height: var(--line-height-base);
}

.id0a4-page-meta {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
}

/* ==========================================================================
   Hero Brand (Split Compact)
   ========================================================================== */

.id0a4-hero-brand {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-lg);
    align-items: center;
}

.id0a4-hero-brand-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: contain;
    background: var(--color-surface);
    background: color-mix(in srgb, #fff 85%, var(--color-surface));
    border: 1px solid var(--color-border);
    padding: 8px;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--color-text) 15%, transparent);
}

.id0a4-hero-brand-info h1 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.id0a4-hero-brand-tagline {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.id0a4-hero-brand-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-sm);
}

.id0a4-hero-brand-actions .id0a4-cta {
    background: var(--color-button);
    color: var(--color-button-text);
    border-color: var(--color-button);
    min-width: 120px;
    min-height: 44px;
    font-size: var(--font-size-base);
}

.id0a4-hero-brand-actions .id0a4-cta:hover {
    background: var(--color-button-hover);
    border-color: var(--color-button-hover);
}

/* ==========================================================================
   Hero Bonus (Split Compact)
   ========================================================================== */

.id0a4-hero-bonus {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.id0a4-hero-bonus-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.id0a4-hero-bonus-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: contain;
    background: var(--color-surface);
    background: color-mix(in srgb, #fff 85%, var(--color-surface));
    border: 1px solid var(--color-border);
    padding: 8px;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--color-text) 10%, transparent);
}

.id0a4-hero-bonus-brand {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-accent);
}

.id0a4-hero-bonus-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.id0a4-hero-bonus-value {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-accent);
    line-height: var(--line-height-tight);
}

.id0a4-hero-bonus-extra {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.id0a4-hero-bonus-row {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.id0a4-promo-code {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--color-background);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-sm);
}

.id0a4-promo-code-label {
    color: var(--color-text-muted);
}

.id0a4-promo-code-value {
    font-family: monospace;
    font-weight: 600;
    color: var(--color-accent);
}

.id0a4-promo-code-copy {
    background: none;
    border: none;
    padding: var(--space-xs);
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
}

.id0a4-promo-code-copy:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   Rating (Progress Bar)
   ========================================================================== */

.id0a4-rating {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.id0a4-rating-bar {
    width: 60px;
    height: 6px;
    background: var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.id0a4-rating-fill {
    height: 100%;
    background: var(--color-rating);
    border-radius: var(--radius-sm);
    transition: width var(--transition-base);
}

.id0a4-rating-value {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
}

.id0a4-rating-max {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

/* ==========================================================================
   CTA Button (Outline)
   ========================================================================== */

.id0a4-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-button);
    background: transparent;
    border: 2px solid var(--color-button);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.id0a4-cta:hover {
    background: var(--color-button);
    color: var(--color-button-text);
}

.id0a4-cta--primary {
    background: var(--color-button);
    color: var(--color-button-text);
}

.id0a4-cta--primary:hover {
    background: var(--color-button-hover);
    border-color: var(--color-button-hover);
}

.id0a4-cta--sm {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-sm);
    min-height: 40px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* ==========================================================================
   Listing Block (Compact Rows)
   ========================================================================== */

.id0a4-listing {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.id0a4-listing-header {
    background: var(--color-background);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-accent);
}

.id0a4-listing-row {
    display: grid;
    grid-template-columns: 32px 120px 1fr auto auto;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-fast);
    min-height: 85px;
}

.id0a4-listing-row .go-link {
    flex-shrink: 0;
    line-height: 0;
}

.id0a4-listing-row:last-child {
    border-bottom: none;
}

.id0a4-listing-row:hover {
    background: var(--color-background);
}

.id0a4-listing-rank {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--color-accent);
    text-align: center;
}

.id0a4-listing-logo {
    width: 120px;
    min-width: 120px;
    height: 65px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: var(--color-surface);
    background: color-mix(in srgb, #fff 85%, var(--color-surface));
    border: 1px solid var(--color-border);
    padding: 4px;
    box-sizing: border-box;
}

.id0a4-listing-info {
    min-width: 0;
}

.id0a4-listing-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.id0a4-listing-name a {
    color: inherit;
}

.id0a4-listing-name a:hover {
    color: var(--color-accent);
}

.id0a4-listing-bonus {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-success);
    margin-bottom: var(--space-xs);
}

.id0a4-listing-terms {
    display: flex;
    gap: var(--space-md);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.id0a4-listing-wagering,
.id0a4-listing-mindeposit {
    display: inline-flex;
    align-items: center;
}

.id0a4-listing-pros {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.id0a4-listing-pros li {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin: 0;
}

.id0a4-listing-pros li::before {
    content: "\2713 ";
    color: var(--color-success);
}

.id0a4-listing-rating {
    min-width: 100px;
}

.id0a4-listing-cta {
    min-width: 110px;
    text-align: right;
}

.id0a4-listing-cta .id0a4-cta {
    background: var(--color-button);
    color: var(--color-button-text);
}

.id0a4-listing-cta .id0a4-cta:hover {
    background: var(--color-button-hover);
}

/* ==========================================================================
   Info Box & Details
   ========================================================================== */

.id0a4-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.id0a4-info-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.id0a4-info-box-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.id0a4-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.id0a4-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-sm);
}

.id0a4-info-label {
    color: var(--color-text-muted);
}

.id0a4-info-value {
    font-weight: 500;
    color: var(--color-text);
}

/* ==========================================================================
   Pros & Cons
   ========================================================================== */

.id0a4-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.id0a4-pros,
.id0a4-cons {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.id0a4-pros-title,
.id0a4-cons-title {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.id0a4-pros-title {
    color: var(--color-success);
}

.id0a4-cons-title {
    color: var(--color-error);
}

.id0a4-pros-item,
.id0a4-cons-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text);
}

.id0a4-pros-item::before {
    content: '+';
    color: var(--color-success);
    font-weight: 700;
    flex-shrink: 0;
}

.id0a4-cons-item::before {
    content: '-';
    color: var(--color-error);
    font-weight: 700;
    flex-shrink: 0;
}

/* ==========================================================================
   Bonus Details Table
   ========================================================================== */

.id0a4-bonus-table {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.id0a4-bonus-table-title {
    background: var(--color-background);
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-border);
}

.id0a4-bonus-table-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
}

.id0a4-bonus-table-row:last-child {
    border-bottom: none;
}

.id0a4-bonus-table-label {
    color: var(--color-text-muted);
}

.id0a4-bonus-table-value {
    font-weight: 500;
    color: var(--color-text);
}

/* ==========================================================================
   How To Claim (Steps)
   ========================================================================== */

.id0a4-steps {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.id0a4-steps-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.id0a4-steps-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.id0a4-step {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-size-sm);
}

.id0a4-step-num {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: var(--color-button-text);
    border-radius: 50%;
    font-size: var(--font-size-xs);
    font-weight: 600;
    flex-shrink: 0;
}

.id0a4-step-text {
    color: var(--color-text);
}

/* ==========================================================================
   Terms Summary
   ========================================================================== */

.id0a4-terms {
    background: var(--color-background);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    line-height: var(--line-height-base);
}

.id0a4-terms strong {
    color: var(--color-text);
}

/* ==========================================================================
   Table of Contents
   ========================================================================== */

.id0a4-toc {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
}

.id0a4-toc-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.id0a4-toc-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.id0a4-toc-item {
    font-size: var(--font-size-sm);
}

.id0a4-toc-item a {
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.id0a4-toc-item a:hover {
    color: var(--color-accent);
}

.id0a4-toc-item a::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--color-border);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

.id0a4-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.id0a4-content h2 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-accent);
    margin: 2rem 0 1rem;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.id0a4-content h2:first-child {
    margin-top: 0;
}

.id0a4-content h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text);
    margin: 1.5rem 0 0.75rem;
}

.id0a4-content p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.id0a4-content ul,
.id0a4-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.id0a4-content ul {
    list-style: disc;
}

.id0a4-content ol {
    list-style: decimal;
}

.id0a4-content li {
    margin-bottom: 0.35rem;
    color: var(--color-text);
}

.id0a4-content img {
    border-radius: var(--radius-md);
    max-width: 100%;
    height: auto;
}

.id0a4-content figure {
    margin: 1.5rem 0;
}

.id0a4-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--color-accent);
}

/* ==========================================================================
   Content Tables
   ========================================================================== */

.id0a4-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.id0a4-content th,
.id0a4-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.id0a4-content th {
    background-color: var(--color-background);
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.id0a4-content tr:hover {
    background-color: color-mix(in srgb, var(--color-text) 3%, var(--color-surface));
}

.id0a4-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}

.id0a4-table-wrap table {
    margin: 0;
}

@media (max-width: 768px) {
    .id0a4-content th,
    .id0a4-content td {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.id0a4-faq {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.id0a4-faq-title {
    background: var(--color-background);
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-border);
}

.id0a4-faq-item {
    border-bottom: 1px solid var(--color-border);
}

.id0a4-faq-item:last-child {
    border-bottom: none;
}

.id0a4-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    list-style: none;
    transition: background var(--transition-fast);
}

.id0a4-faq-question::-webkit-details-marker {
    display: none;
}

.id0a4-faq-question::after {
    content: '+';
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    transition: transform var(--transition-fast);
}

.id0a4-faq-item[open] .id0a4-faq-question::after {
    content: '\2212';
}

.id0a4-faq-question:hover {
    background: var(--color-background);
}

.id0a4-faq-answer {
    padding: 0 var(--space-lg) var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: var(--line-height-base);
}

/* ==========================================================================
   Single CTA Block
   ========================================================================== */

.id0a4-single-cta {
    background: var(--color-surface);
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.id0a4-single-cta-text {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--color-text);
}

.id0a4-single-cta-bonus {
    color: var(--color-accent);
    font-weight: 700;
}

/* ==========================================================================
   Related Offers (Compact)
   ========================================================================== */

.id0a4-related-offers {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.id0a4-related-offers-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.id0a4-related-offer {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.id0a4-related-offer:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.id0a4-related-offer-logo {
    width: 48px;
    height: 36px;
    object-fit: contain;
    background: var(--color-surface);
    background: color-mix(in srgb, #fff 85%, var(--color-surface));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 2px;
    box-sizing: border-box;
}

.id0a4-related-offer-name {
    flex: 1;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
}

.id0a4-related-offer-bonus {
    font-size: var(--font-size-xs);
    color: var(--color-success);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.id0a4-sidebar-widget {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.id0a4-sidebar-title {
    background: var(--color-background);
    padding: var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-border);
}

.id0a4-sidebar-links {
    padding: var(--space-sm);
}

.id0a4-sidebar-link {
    display: block;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-xs);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.id0a4-sidebar-link:hover {
    background: var(--color-background);
    color: var(--color-accent);
}

/* ==========================================================================
   Article Images (inserted by PlaceholderReplacer)
   ========================================================================== */

.id0a4-img-figure {
    margin: var(--space-xl) 0;
    text-align: center;
}

.id0a4-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.id0a4-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-xl);
}

.id0a4-footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem var(--space-lg);
}

.id0a4-footer p {
    margin: 0.25rem 0;
}

.id0a4-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.id0a4-footer-brand {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-accent);
}

.id0a4-footer-links {
    display: flex;
    gap: var(--space-lg);
}

.id0a4-footer-link,
.id0a4-footer-link:visited {
    font-size: var(--font-size-xs);
    color: color-mix(in srgb, var(--color-accent) 70%, var(--color-text));
}

.id0a4-footer-link:hover {
    color: var(--color-accent);
}

.id0a4-footer-trust {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.id0a4-footer-trust a,
.id0a4-footer-trust a:visited {
    color: color-mix(in srgb, var(--color-accent) 70%, var(--color-text));
    text-decoration: none;
    font-size: 0.9rem;
}

.id0a4-footer-trust a:hover {
    color: var(--color-accent);
}

/* Geo Switcher */
.id0a4-geo-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 0.5rem;
    margin: 0.75rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid var(--color-border);
}

.id0a4-geo-link,
.id0a4-geo-link:visited {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: color-mix(in srgb, var(--color-accent) 70%, var(--color-text));
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.15rem 0.35rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.id0a4-geo-link:hover {
    color: var(--color-text);
}

.id0a4-geo-link.active,
.id0a4-geo-link.active:visited {
    color: var(--color-text);
    font-weight: 600;
}

.id0a4-geo-flag {
    font-size: 1.1rem;
}

.id0a4-geo-name {
    font-size: 0.8rem;
}

.id0a4-footer-bottom {
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.id0a4-footer-disclaimer {
    max-width: 600px;
    line-height: var(--line-height-base);
}

.id0a4-footer-age {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: var(--color-error);
    white-space: nowrap;
}

/* Footer Org & License */
.id0a4-footer-org {
    margin: 0.4rem 0;
    font-size: 0.8rem;
    opacity: 0.85;
}

.id0a4-footer-org p {
    margin: 0;
}

.id0a4-footer-org br {
    display: none;
}

.id0a4-footer-org .id0a4-org-name {
    font-weight: 600;
    margin: 0;
    display: inline;
}

.id0a4-footer-org .id0a4-org-name::after {
    content: " — ";
}

.id0a4-footer-org .id0a4-org-address {
    margin: 0;
    opacity: 0.8;
    display: inline;
}

.id0a4-footer-org .id0a4-org-address br {
    display: none;
}

.id0a4-footer-license {
    font-size: 0.8rem;
    opacity: 0.75;
    margin: 0.5rem 0;
}

.id0a4-footer-license p {
    margin: 0;
}

.id0a4-footer-license a {
    color: var(--color-text);
    text-decoration: underline;
}

/* ==========================================================================
   Alternatives Block
   ========================================================================== */

.id0a4-alternatives {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.id0a4-alternatives-title {
    background: var(--color-background);
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-border);
}

.id0a4-alternatives-list {
    padding: var(--space-sm);
}

.id0a4-alternative {
    display: grid;
    grid-template-columns: 120px 1fr auto auto;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    min-height: 75px;
}

.id0a4-alternative:hover {
    background: var(--color-background);
}

.id0a4-alternative-logo {
    width: 120px;
    min-width: 120px;
    height: 65px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: var(--color-surface);
    background: color-mix(in srgb, #fff 85%, var(--color-surface));
    border: 1px solid var(--color-border);
    padding: 4px;
    box-sizing: border-box;
}

.id0a4-alternative .go-link {
    flex-shrink: 0;
    line-height: 0;
}

.id0a4-alternative-info {
    min-width: 0;
}

.id0a4-alternative-name {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
}

.id0a4-alternative-bonus {
    font-size: var(--font-size-xs);
    color: var(--color-success);
}

.id0a4-alternative .id0a4-cta {
    background: var(--color-button);
    color: var(--color-button-text);
    border-color: var(--color-button);
}

.id0a4-alternative .id0a4-cta:hover {
    background: var(--color-button-hover);
    border-color: var(--color-button-hover);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .id0a4-layout {
        grid-template-columns: 1fr;
    }

    .id0a4-sidebar {
        order: 2;
    }

    .id0a4-info-grid {
        grid-template-columns: 1fr;
    }

    .id0a4-hero-brand {
        grid-template-columns: auto 1fr;
    }

    .id0a4-hero-brand-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-start;
    }

    .id0a4-hero-bonus {
        grid-template-columns: 1fr;
    }

    .id0a4-hero-bonus-left {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 48px;
    }

    .id0a4-container {
        padding: 0 var(--space-md);
    }

    .id0a4-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: var(--space-md);
    }

    .id0a4-nav.active {
        display: flex;
    }

    .id0a4-nav-toggle {
        display: block;
    }

    .id0a4-listing-row {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
        padding: var(--space-md);
    }

    .id0a4-listing-rank {
        position: absolute;
        top: var(--space-sm);
        left: var(--space-sm);
    }

    .id0a4-listing-row {
        position: relative;
        padding-top: var(--space-xl);
    }

    .id0a4-listing-logo {
        width: 120px;
        min-width: 120px;
        height: 65px;
        margin: 0 auto;
    }

    .id0a4-listing-info {
        text-align: center;
    }

    .id0a4-listing-rating {
        justify-content: center;
    }

    .id0a4-listing-cta {
        width: 100%;
    }

    .id0a4-listing-cta .id0a4-cta {
        width: 100%;
        justify-content: center;
    }

    .id0a4-listing-bonus {
        display: block;
    }

    .id0a4-pros-cons {
        grid-template-columns: 1fr;
    }

    .id0a4-single-cta {
        flex-direction: column;
        text-align: center;
    }

    .id0a4-footer-top {
        flex-direction: column;
    }

    .id0a4-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .id0a4-page-title {
        font-size: var(--font-size-xl);
    }

    .id0a4-hero-brand {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .id0a4-hero-brand-logo {
        margin: 0 auto;
    }

    .id0a4-hero-brand-actions {
        justify-content: center;
    }
}

/* ==========================================================================
   Q&A Thread Page (Compact Inline Layout)
   ========================================================================== */

.id0a4-qa-post {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--color-border);
}

.id0a4-qa-post:last-child {
    border-bottom: none;
}

.id0a4-qa-q {
    border-bottom: 2px solid var(--color-border);
    padding-bottom: var(--space-xl);
    margin-bottom: var(--space-md);
}

.id0a4-qa-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    min-width: 36px;
    flex-shrink: 0;
}

.id0a4-qa-vote-arrow {
    color: var(--color-text-muted);
    font-size: var(--font-size-lg);
    cursor: pointer;
    user-select: none;
    transition: color var(--transition-fast);
}

.id0a4-qa-vote-arrow:hover {
    color: var(--color-accent);
}

.id0a4-qa-vote-count {
    font-weight: 600;
    font-size: var(--font-size-lg);
    color: var(--color-text);
}

.id0a4-qa-check {
    color: var(--color-success);
    font-size: var(--font-size-xl);
    margin-top: var(--space-sm);
}

.id0a4-qa-content {
    flex: 1;
    min-width: 0;
}

.id0a4-qa-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    line-height: var(--line-height-tight);
    margin: 0 0 var(--space-lg);
    color: var(--color-text);
}

.id0a4-qa-text {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
}

.id0a4-qa-text p {
    margin: var(--space-md) 0;
}

.id0a4-qa-text p:first-child {
    margin-top: 0;
}

.id0a4-qa-text p:last-child {
    margin-bottom: 0;
}

.id0a4-qa-meta {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.id0a4-qa-user {
    font-weight: 500;
    color: var(--color-accent);
}

.id0a4-qa-header {
    padding: var(--space-md) 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-sm);
}

.id0a4-qa-header strong {
    color: var(--color-text);
}

.id0a4-qa-accepted {
    border-top: 3px solid var(--color-success);
    background: color-mix(in srgb, var(--color-success) 3%, var(--color-surface));
    margin: 0 calc(-1 * var(--space-lg));
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

/* Reply Answers - Nested/Threaded */
.id0a4-qa-reply {
    margin-left: var(--space-2xl);
    padding-left: var(--space-xl);
    border-left: 2px solid var(--color-border);
    background: color-mix(in srgb, var(--color-background) 50%, var(--color-surface));
    position: relative;
}

.id0a4-qa-reply-indicator {
    position: absolute;
    left: -1rem;
    top: var(--space-xl);
    color: var(--color-text-muted);
    font-size: var(--font-size-lg);
    line-height: 1;
}

@media (max-width: 640px) {
    .id0a4-qa-reply {
        margin-left: var(--space-lg);
        padding-left: var(--space-md);
    }

    .id0a4-qa-reply-indicator {
        left: -0.75rem;
        font-size: var(--font-size-base);
    }
}

/* ==========================================================================
   Q&A Hub Page (Compact Table)
   ========================================================================== */

.id0a4-qa-hub-top {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-lg);
}

.id0a4-qa-hub-top h1 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin: 0 0 var(--space-sm);
    color: var(--color-text);
}

.id0a4-qa-hub-top p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin: 0;
}

.id0a4-qa-hub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.id0a4-qa-hub-table th {
    text-align: left;
    padding: var(--space-md);
    border-bottom: 2px solid var(--color-border);
    font-weight: 600;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-text-muted);
}

.id0a4-qa-hub-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.id0a4-qa-hub-th-votes,
.id0a4-qa-hub-th-ans {
    width: 60px;
    text-align: center;
}

.id0a4-qa-hub-th-date {
    width: 100px;
}

.id0a4-qa-hub-votes,
.id0a4-qa-hub-ans {
    text-align: center;
    font-weight: 600;
    color: var(--color-text);
}

.id0a4-qa-hub-title a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    line-height: 1.3;
}

.id0a4-qa-hub-title a:hover {
    color: var(--color-accent);
}

.id0a4-qa-hub-date {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    white-space: nowrap;
}

.id0a4-qa-hub-empty {
    padding: var(--space-2xl);
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* Answer Form */
.id0a4-qa-form {
    padding: var(--space-xl);
    background: var(--color-background);
    border-top: 2px solid var(--color-border);
    margin-top: var(--space-lg);
}

.id0a4-qa-form h3 {
    margin: 0 0 var(--space-md);
    font-size: var(--font-size-lg);
    color: var(--color-text);
}

.id0a4-qa-textarea {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--font-size-sm);
    resize: vertical;
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color var(--transition-fast);
}

.id0a4-qa-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.id0a4-qa-textarea::placeholder {
    color: var(--color-text-muted);
}


.id0a4-qa-submit {
    padding: var(--space-sm) var(--space-xl);
    background: var(--color-button);
    color: var(--color-button-text);
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.id0a4-qa-submit:hover {
    background: var(--color-button-hover);
}


/* Q&A Responsive */
@media (max-width: 768px) {
    .id0a4-qa-post {
        flex-direction: column;
        gap: var(--space-md);
    }

    .id0a4-qa-vote {
        flex-direction: row;
        gap: var(--space-md);
    }

    .id0a4-qa-check {
        margin-top: 0;
        margin-left: var(--space-sm);
    }

    .id0a4-qa-title {
        font-size: var(--font-size-xl);
    }

    .id0a4-qa-accepted {
        margin: 0;
    }

    .id0a4-qa-hub-table {
        display: block;
    }

    .id0a4-qa-hub-table thead {
        display: none;
    }

    .id0a4-qa-hub-table tbody {
        display: block;
    }

    .id0a4-qa-hub-table tr {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-sm);
        padding: var(--space-md) 0;
        border-bottom: 1px solid var(--color-border);
    }

    .id0a4-qa-hub-table td {
        padding: 0;
        border: none;
    }

    .id0a4-qa-hub-votes,
    .id0a4-qa-hub-ans {
        font-size: var(--font-size-xs);
        background: var(--color-background);
        padding: var(--space-xs) var(--space-sm);
        border-radius: var(--radius-sm);
    }

    .id0a4-qa-hub-votes::before {
        content: '\\25B2 ';
    }

    .id0a4-qa-hub-ans::after {
        content: ' ans';
        font-weight: 400;
    }

    .id0a4-qa-hub-title {
        width: 100%;
        order: -1;
    }

    .id0a4-qa-hub-date {
        margin-left: auto;
    }

    .id0a4-qa-form {
        padding: var(--space-lg);
    }

    .id0a4-qa-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .id0a4-qa-submit {
        width: 100%;
    }

    .id0a4-qa-form-hint {
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* ==========================================================================
   Article Meta & Author
   ========================================================================== */

.id0a4-article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin: var(--space-md) 0 var(--space-lg);
}

.id0a4-author {
    font-weight: 500;
}

.id0a4-article-date {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin: var(--space-md) 0 var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.id0a4-date-icon {
    font-size: var(--font-size-base);
}

/* ==========================================================================
   GO-LINK (Affiliate Exit Links)
   ========================================================================== */

.go-link {
    cursor: pointer;
}

/* ==========================================================================
   NAV DROPDOWN (info/listing/review/bonus templates)
   ========================================================================== */

.id0a4-nav-dropdown {
    position: relative;
}

.id0a4-nav-dropdown > button {
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.id0a4-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    min-width: 160px;
    z-index: 200;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--color-text) 8%, transparent);
    padding: var(--space-xs) 0;
}

.id0a4-nav-dropdown:hover .id0a4-nav-dropdown-menu {
    display: block;
}

.id0a4-nav-dropdown-item {
    display: block;
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    white-space: nowrap;
}

.id0a4-nav-dropdown-item:hover {
    background: var(--color-background);
    color: var(--color-accent);
}

.id0a4-nav-dropdown-item.active,
.id0a4-nav-item.active {
    color: var(--color-accent);
    font-weight: 600;
}

.id0a4-nav-dropdown.active > .id0a4-nav-item {
    color: var(--color-accent);
    font-weight: 600;
}

/* ==========================================================================
   NAV DROPDOWN (QA pages use different class names)
   ========================================================================== */

.id0a4-dropdown {
    position: relative;
}

.id0a4-dropdown > button {
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.id0a4-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    min-width: 160px;
    z-index: 200;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--color-text) 8%, transparent);
    padding: var(--space-xs) 0;
}

.id0a4-dropdown:hover .id0a4-dropdown-menu {
    display: block;
}

.id0a4-dropdown-menu a {
    display: block;
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    white-space: nowrap;
}

.id0a4-dropdown-menu a:hover {
    background: var(--color-background);
    color: var(--color-accent);
}

.id0a4-dropdown-menu a.is-active,
.id0a4-nav-item.is-active {
    color: var(--color-accent);
    font-weight: 600;
}

.id0a4-dropdown.is-active > .id0a4-nav-item {
    color: var(--color-accent);
    font-weight: 600;
}

/* ==========================================================================
   BURGER MENU (QA pages use -burger instead of -nav-toggle)
   ========================================================================== */

.id0a4-burger {
    display: none;
    background: none;
    border: none;
    padding: var(--space-sm);
    cursor: pointer;
    color: var(--color-text);
    width: 28px;
    height: 28px;
    position: relative;
}

.id0a4-burger span,
.id0a4-burger span::before,
.id0a4-burger span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    position: absolute;
    left: 5px;
    transition: transform var(--transition-base);
}

.id0a4-burger span {
    top: 50%;
    transform: translateY(-50%);
}

.id0a4-burger span::before {
    content: '';
    top: -6px;
    left: 0;
}

.id0a4-burger span::after {
    content: '';
    top: 6px;
    left: 0;
}

.id0a4-burger.is-open span {
    background: transparent;
}

.id0a4-burger.is-open span::before {
    top: 0;
    transform: rotate(45deg);
}

.id0a4-burger.is-open span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* QA pages: nav with is-open instead of active */
.id0a4-nav.is-open {
    display: flex;
}

/* ==========================================================================
   QA PAGE BODY & PRIMARY
   ========================================================================== */

.id0a4-page {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-background);
    min-height: 100vh;
}

.id0a4-primary {
    min-width: 0;
}

/* ==========================================================================
   QA SIDEBAR WIDGETS (uses -widget instead of -sidebar-widget)
   ========================================================================== */

.id0a4-widget {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.id0a4-widget-title {
    background: var(--color-background);
    padding: var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-border);
}

.id0a4-widget-list {
    list-style: none;
    padding: var(--space-sm);
    margin: 0;
}

.id0a4-widget-list li {
    margin: 0;
}

.id0a4-widget-list a {
    display: block;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-xs);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.id0a4-widget-list a:hover {
    background: var(--color-background);
    color: var(--color-accent);
}

/* ==========================================================================
   QA FORM FOOTER & HINT (base styles)
   ========================================================================== */

.id0a4-qa-form-footer {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.id0a4-qa-form-hint {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

/* ==========================================================================
   QA PAGE FOOTER VARIANTS (uses -footer-row, -footer-copy)
   ========================================================================== */

.id0a4-footer-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}

.id0a4-footer-row a,
.id0a4-footer-row a:visited {
    color: color-mix(in srgb, var(--color-accent) 70%, var(--color-text));
    text-decoration: none;
    font-size: 0.9rem;
}

.id0a4-footer-row a:hover {
    color: var(--color-accent);
}

.id0a4-footer-copy {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin: 0.4rem 0;
    text-align: center;
}

/* ==========================================================================
   FOOTER DESCRIPTION
   ========================================================================== */

.id0a4-footer-desc {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin: 0.5rem 0;
    text-align: center;
    line-height: var(--line-height-base);
}

/* ==========================================================================
   SIDEBAR OFFERS (info.php top offers with exit links)
   ========================================================================== */

.id0a4-sidebar-offers {
    padding: var(--space-sm);
}

.id0a4-sidebar-offer {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.id0a4-sidebar-offer:last-child {
    border-bottom: none;
}

.id0a4-sidebar-offer-name {
    flex: 1;
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--color-text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   LISTING NAME LINK & ALTERNATIVE NAME LINK
   ========================================================================== */

.id0a4-listing-name-link {
    color: var(--color-text);
    text-decoration: none;
}

.id0a4-listing-name-link:hover {
    color: var(--color-accent);
}

.id0a4-alternative-name-link {
    color: var(--color-text);
    text-decoration: none;
}

.id0a4-alternative-name-link:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   RECOMMENDATIONS TABLE (partials/recommendations.php)
   Used in info.php, review.php, bonus.php
   ========================================================================== */

.id0a4-table-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.id0a4-star {
    color: var(--color-rating);
    font-size: var(--font-size-xl);
}

.id0a4-offer-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.id0a4-alternatives-table {
    margin-bottom: var(--space-lg);
}

.id0a4-offer-row {
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-fast);
}

.id0a4-offer-row:last-child {
    border-bottom: none;
}

.id0a4-offer-row:hover {
    background: var(--color-background);
}

.id0a4-cell-casino {
    padding: var(--space-md) var(--space-lg);
    min-width: 200px;
}

.id0a4-casino-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.id0a4-casino-info .go-link {
    flex-shrink: 0;
    line-height: 0;
}

.id0a4-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-accent);
    color: var(--color-button-text);
    font-size: var(--font-size-xs);
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.id0a4-table-logo {
    width: 120px;
    height: 65px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, #fff 85%, var(--color-surface));
    border: 1px solid var(--color-border);
    padding: 3px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.id0a4-casino-name {
    font-size: var(--font-size-sm);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    display: inline-block;
}

.id0a4-casino-name:hover {
    color: var(--color-accent);
}

.id0a4-casino-name strong {
    font-weight: 600;
}

.id0a4-cell-rating {
    padding: var(--space-md) var(--space-lg);
    text-align: center;
    white-space: nowrap;
}

.id0a4-cell-rating .id0a4-rating-value {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--color-rating);
}

.id0a4-cell-bonus {
    padding: var(--space-md) var(--space-lg);
}

.id0a4-bonus-text {
    font-size: var(--font-size-sm);
    color: var(--color-text);
    max-width: 220px;
    display: inline-block;
}

.id0a4-cell-action {
    padding: var(--space-md) var(--space-lg);
    text-align: right;
}

.id0a4-btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-xl);
    min-width: 80px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-button-text);
    background: var(--color-button);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-fast);
    white-space: nowrap;
}

.id0a4-btn-play:hover {
    background: var(--color-button-hover);
    color: var(--color-button-text);
}

/* Recommendations table responsive */
@media (max-width: 768px) {
    .id0a4-offer-table {
        display: block;
        border: none;
    }

    .id0a4-offer-table tbody {
        display: block;
    }

    .id0a4-offer-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-sm);
        padding: var(--space-md);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        margin-bottom: var(--space-sm);
        background: var(--color-surface);
    }

    .id0a4-cell-casino {
        width: 100%;
        padding: 0;
        min-width: 0;
    }

    .id0a4-casino-info {
        width: 100%;
    }

    .id0a4-casino-name {
        max-width: none;
    }

    .id0a4-cell-rating {
        padding: 0;
        flex-shrink: 0;
    }

    .id0a4-cell-bonus {
        flex: 1;
        padding: 0;
        min-width: 0;
    }

    .id0a4-bonus-text {
        font-size: var(--font-size-xs);
        max-width: none;
    }

    .id0a4-cell-action {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .id0a4-btn-play {
        width: 100%;
        min-height: 44px;
        font-size: var(--font-size-base);
    }
}

/* ==========================================================================
   MOBILE BURGER for QA pages
   ========================================================================== */

@media (max-width: 640px) {
    .id0a4-burger {
        display: block;
    }

    /* Override QA page footer */
    .id0a4-footer-row {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* ==========================================================================
   LISTING CTA MOBILE ENHANCEMENT
   ========================================================================== */

@media (max-width: 640px) {
    .id0a4-listing-cta .id0a4-cta {
        min-height: 44px;
        font-size: var(--font-size-base);
        padding: var(--space-md) var(--space-lg);
    }

    .id0a4-listing-cta .id0a4-cta--sm {
        padding: var(--space-md) var(--space-lg);
        font-size: var(--font-size-base);
    }

    /* Alternative cards on mobile */
    .id0a4-alternative {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        padding: var(--space-md);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        margin-bottom: var(--space-sm);
        background: var(--color-surface);
    }

    .id0a4-alternative-logo {
        width: 120px;
        min-width: 120px;
        height: 65px;
    }

    .id0a4-alternative .id0a4-rating {
        grid-column: 1 / -1;
    }

    .id0a4-alternative .id0a4-cta {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    .id0a4-alternatives-list {
        padding: var(--space-xs);
    }

    /* Single CTA full width */
    .id0a4-single-cta .id0a4-cta {
        width: 100%;
        min-height: 44px;
    }

    /* Hero bonus mobile */
    .id0a4-hero-bonus-row {
        flex-direction: column;
        align-items: stretch;
    }

    .id0a4-hero-bonus-row .id0a4-cta {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        font-size: var(--font-size-base);
    }

    /* Hero brand CTA mobile */
    .id0a4-hero-brand-actions .id0a4-cta {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        font-size: var(--font-size-base);
    }
}

/* ==========================================================================
   QA ANSWER POST STYLING (qa-a class)
   ========================================================================== */

.id0a4-qa-a {
    border-bottom-color: var(--color-border);
}

.id0a4-qa-time {
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
}

/* ==========================================================================
   CTA BUTTON SHADOW (conversion boost — makes CTAs pop on all colorways)
   ========================================================================== */

.id0a4-cta--primary,
.id0a4-listing-cta .id0a4-cta,
.id0a4-btn-play {
    box-shadow: 0 2px 6px color-mix(in srgb, var(--color-button) 35%, transparent);
}

.id0a4-cta--primary:hover,
.id0a4-listing-cta .id0a4-cta:hover,
.id0a4-btn-play:hover {
    box-shadow: 0 3px 10px color-mix(in srgb, var(--color-button) 45%, transparent);
}

/* ==========================================================================
   MOBILE: TIGHTER ABOVE-FOLD FOR LISTING (conversion critical)
   Push first CTA higher by reducing intro/header spacing
   ========================================================================== */

@media (max-width: 640px) {
    .id0a4-page-header {
        margin-bottom: var(--space-sm);
    }

    .id0a4-page-title {
        margin-bottom: var(--space-xs);
    }

    .id0a4-page-intro {
        font-size: var(--font-size-xs);
        margin-bottom: var(--space-sm);
    }

    .id0a4-article-meta {
        margin: var(--space-xs) 0 var(--space-sm);
        font-size: var(--font-size-xs);
    }

    .id0a4-listing-header {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--font-size-xs);
    }

    /* Tighter offer cards on mobile */
    .id0a4-listing-row {
        padding: var(--space-sm) var(--space-md);
        padding-top: var(--space-lg);
    }

    .id0a4-listing-logo {
        width: 120px;
        min-width: 120px;
        height: 65px;
    }

    .id0a4-listing-bonus {
        font-size: var(--font-size-xs);
    }

    .id0a4-listing-terms {
        font-size: 0.65rem;
    }

    .id0a4-listing-pros li {
        font-size: 0.65rem;
    }

    /* Featured first offer highlight */
    .id0a4-listing-row:first-child {
        border-left: 3px solid var(--color-accent);
        background: color-mix(in srgb, var(--color-accent) 4%, var(--color-surface));
    }
}

/* ==========================================================================
   FEATURED FIRST OFFER (desktop) — Top Pick visual distinction
   ========================================================================== */

.id0a4-listing-row:first-child {
    border-left: 3px solid var(--color-accent);
    background: var(--color-surface);
    background: color-mix(in srgb, var(--color-accent) 3%, var(--color-surface));
}

/* ==========================================================================
   MOBILE: RECOMMENDATIONS TABLE IMPROVEMENTS
   ========================================================================== */

@media (max-width: 768px) {
    .id0a4-table-title {
        font-size: var(--font-size-base);
    }

    .id0a4-table-logo {
        width: 120px;
        min-width: 120px;
        height: 65px;
    }
}

/* ==========================================================================
   MOBILE: QA HUB TABLE CARDS
   ========================================================================== */

@media (max-width: 640px) {
    .id0a4-qa-hub-top {
        padding: var(--space-md) 0;
    }

    .id0a4-qa-hub-top h1 {
        font-size: var(--font-size-xl);
    }
}

/* ==========================================================================
   BODY_REST CONTENT (outside .content wrapper on info pages)
   ========================================================================== */

.id0a4-main > .id0a4-content + .id0a4-alternatives + * {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
}

/* Style body_rest content that renders as raw HTML outside .content wrapper */
.id0a4-main > h2 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-accent);
    margin: var(--space-lg) 0 var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.id0a4-main > h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text);
    margin: var(--space-md) 0 var(--space-sm);
}

.id0a4-main > p {
    margin-bottom: var(--space-md);
    color: var(--color-text);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
}

.id0a4-main > ul,
.id0a4-main > ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
    color: var(--color-text);
}

.id0a4-main > ul {
    list-style: disc;
}

.id0a4-main > ol {
    list-style: decimal;
}

.id0a4-main > ul > li,
.id0a4-main > ol > li {
    margin-bottom: var(--space-xs);
}

/* ==========================================================================
   HERO STATS (partials/hero-casino.php, hero-betting.php)
   ========================================================================== */

.id0a4-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-lg);
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0 0;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.id0a4-hero-stats li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.id0a4-stat-icon {
    font-size: var(--font-size-sm);
    line-height: 1;
}

/* ==========================================================================
   HERO TAGS (game/sport tags)
   ========================================================================== */

.id0a4-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

.id0a4-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 2px 8px;
    font-size: var(--font-size-xs);
    color: var(--color-text);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

/* ==========================================================================
   PROVIDERS BAR (partials/hero-providers.php)
   ========================================================================== */

.id0a4-providers-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs) var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    font-size: var(--font-size-xs);
}

.id0a4-providers-label {
    color: var(--color-text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.id0a4-provider-tag {
    display: inline-block;
    padding: 1px 6px;
    background: var(--color-surface);
    background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* ==========================================================================
   SITEMAP PAGE
   ========================================================================== */

.id0a4-sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.id0a4-sitemap-item {
    border-bottom: 1px solid var(--color-border);
}

.id0a4-sitemap-item:last-child {
    border-bottom: none;
}

.id0a4-sitemap-link {
    display: block;
    padding: var(--space-sm) 0;
    color: var(--color-text);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.id0a4-sitemap-link:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   MOBILE: HERO STATS & TAGS COMPACT
   ========================================================================== */

@media (max-width: 640px) {
    .id0a4-hero-stats {
        gap: var(--space-xs) var(--space-md);
    }

    .id0a4-hero-tags {
        margin-top: var(--space-sm);
    }

    .id0a4-providers-bar {
        display: none;
    }

    .id0a4-listing-logo {
        width: 120px;
        min-width: 120px;
        height: 65px;
    }
}

/* Colorway: Indigo Dusk | Radius: soft */
:root {
    --color-primary: #0f0d24;
    --color-secondary: #1a1838;
    --color-accent: #6366f1;
    --color-background: #070612;
    --color-surface: #0f0d24;
    --color-text: #eef2ff;
    --color-text-muted: #a5b4fc;
    --color-button: #4f46e5;
    --color-button-hover: #4338ca;
    --color-button-text: #ffffff;
    --color-border: #312e81;
    --color-success: #4ade80;
    --color-warning: #fbbf24;
    --color-error: #f87171;
    --color-rating: #fcd34d;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
}
