/**
 * Buy Crypto Comparison Page - Premium Design
 * Award-winning fintech-inspired styling
 * For: /buy/ page - https://www.cryptolists.com/buy/
 * Updated: 2026-09-26 - Fixed duplicate header, link cards, table layout
 */

/* ============================================
   PAGE-SPECIFIC OVERRIDES (HIGH PRIORITY)
   Hide WordPress default page title - we have our own hero
   ============================================ */

/* Hide the WordPress theme page title on /buy/ page (ID 64832) */
.page-id-64832 .space-title-box,
.page-id-64832 .space-title-box-h1,
.page-id-64832 .space-title-box-ins,
body.page-id-64832 .space-title-box {
    display: none !important;
}

/* Fallback - also hide any generic page headers */
.page-id-64832 .page-header,
.page-id-64832 .entry-title:first-of-type,
.page-id-64832 article > header {
    display: none !important;
}

/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
    /* Primary Colors */
    --buy-primary: #0066FF;
    --buy-primary-dark: #0052CC;
    --buy-secondary: #00D4AA;
    --buy-accent: #7C3AED;
    --buy-accent-light: #A78BFA;
    
    /* Status Colors */
    --buy-success: #10B981;
    --buy-warning: #F59E0B;
    --buy-danger: #EF4444;
    
    /* Neutrals */
    --buy-dark: #0F172A;
    --buy-gray-900: #1E293B;
    --buy-gray-800: #334155;
    --buy-gray-600: #64748B;
    --buy-gray-500: #64748B;
    --buy-gray-400: #94A3B8;
    --buy-gray-300: #CBD5E1;
    --buy-gray-200: #E2E8F0;
    --buy-gray-100: #F1F5F9;
    --buy-gray-50: #F8FAFC;
    --buy-white: #FFFFFF;
    
    /* Spacing & Radius */
    --buy-radius: 16px;
    --buy-radius-sm: 12px;
    --buy-radius-xs: 8px;
    --buy-radius-xl: 24px;
    
    /* Shadows */
    --buy-shadow: 0 10px 40px rgba(0,0,0,0.1);
    --buy-shadow-sm: 0 4px 12px rgba(0,0,0,0.08);
    --buy-shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --buy-shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --buy-shadow-glow: 0 0 40px rgba(0,102,255,0.15);
    
    /* BC Component Variables */
    --bc-primary: #0066FF;
    --bc-primary-dark: #0052CC;
    --bc-secondary: #00D4AA;
    --bc-accent: #7C3AED;
    --bc-success: #10B981;
    --bc-dark: #0F172A;
    --bc-gray-900: #1E293B;
    --bc-gray-800: #334155;
    --bc-gray-600: #64748B;
    --bc-gray-400: #94A3B8;
    --bc-gray-200: #E2E8F0;
    --bc-gray-100: #F1F5F9;
    --bc-gray-50: #F8FAFC;
    --bc-white: #FFFFFF;
    --bc-radius-sm: 8px;
    --bc-radius-md: 12px;
    --bc-radius-lg: 16px;
    --bc-radius-xl: 24px;
    --bc-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --bc-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --bc-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --bc-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --bc-shadow-glow: 0 0 40px rgba(0,102,255,0.15);
}

/* ============================================
   HERO SECTION
   ============================================ */

.buy-hero {
    background: linear-gradient(135deg, var(--buy-dark) 0%, #1a1a3e 50%, #0f2847 100%);
    padding: 2rem 2rem 1.5rem 2rem;
    border-radius: var(--buy-radius);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.buy-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(0,102,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.buy-hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(0,212,170,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.buy-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.buy-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,212,170,0.15);
    border: 1px solid rgba(0,212,170,0.3);
    color: var(--buy-secondary);
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.buy-hero h1 {
    color: var(--buy-white) !important;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.75rem 0;
}

.buy-hero h1 span {
    background: linear-gradient(135deg, var(--buy-secondary) 0%, #00B894 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.buy-hero-subtitle {
    color: var(--buy-gray-400);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
}

.buy-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.buy-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.buy-hero-btn-primary {
    background: linear-gradient(135deg, var(--buy-primary) 0%, var(--buy-accent) 100%);
    color: white !important;
    box-shadow: 0 8px 20px rgba(0,102,255,0.3);
}

.buy-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,102,255,0.4);
    color: white !important;
}

.buy-hero-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white !important;
    border: 1px solid rgba(255,255,255,0.2);
}

.buy-hero-btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    color: white !important;
}

.buy-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.buy-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--buy-gray-400);
    font-size: 0.8rem;
}

.buy-trust-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* ============================================
   AUTHOR BOX
   ============================================ */

.buy-author-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    background: var(--buy-white);
    padding: 0.875rem 1.5rem;
    border-radius: var(--buy-radius-sm);
    box-shadow: var(--buy-shadow-sm);
    border: 1px solid var(--buy-gray-200);
    margin-bottom: 1.5rem;
}

.buy-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.buy-author-info strong {
    color: var(--buy-dark);
}

.buy-author-info span {
    color: var(--buy-gray-600);
    font-size: 0.875rem;
}

.buy-author-badge {
    background: linear-gradient(135deg, var(--buy-success) 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================
   INFO BOXES
   ============================================ */

.buy-info-box {
    padding: 1.5rem 2rem;
    border-radius: var(--buy-radius-sm);
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.buy-info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.buy-info-content h4 {
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.buy-info-content p {
    margin: 0;
    line-height: 1.6;
}

.buy-info-warning {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 1px solid #FCD34D;
}

.buy-info-warning h4 { color: #B45309; }
.buy-info-warning p { color: #92400E; }

.buy-info-tip {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 1px solid #93C5FD;
}

.buy-info-tip h4 { color: #1D4ED8; }
.buy-info-tip p { color: #1E40AF; }

.buy-info-success {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border: 1px solid #6EE7B7;
}

.buy-info-success h4 { color: #047857; }
.buy-info-success p { color: #065F46; }

.buy-info-danger {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border: 1px solid #FCA5A5;
}

.buy-info-danger h4 { color: #B91C1C; }
.buy-info-danger p { color: #991B1B; }

/* ============================================
   SECTION HEADERS
   ============================================ */

.buy-section {
    margin: 4rem 0;
}

.buy-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.buy-section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--buy-dark);
    margin: 0 0 1rem 0;
}

.buy-section-header p {
    color: var(--buy-gray-600);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FEATURE CARDS GRID
   ============================================ */

.buy-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.buy-feature-card {
    background: var(--buy-white);
    padding: 2rem;
    border-radius: var(--buy-radius);
    box-shadow: var(--buy-shadow-sm);
    border: 1px solid var(--buy-gray-200);
    transition: all 0.3s ease;
}

.buy-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--buy-shadow);
    border-color: var(--buy-primary);
}

.buy-feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--buy-gray-100) 0%, var(--buy-white) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.buy-feature-card h3 {
    color: var(--buy-dark);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
}

.buy-feature-card p {
    color: var(--buy-gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   CRYPTO COIN CARDS
   ============================================ */

.buy-coins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.buy-coin-card {
    background: var(--buy-white);
    border-radius: var(--buy-radius);
    box-shadow: var(--buy-shadow-sm);
    border: 1px solid var(--buy-gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
}

.buy-coin-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--buy-shadow);
}

.buy-coin-header {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--buy-gray-100);
}

.buy-coin-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
}

.buy-coin-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--buy-dark);
}

.buy-coin-header span {
    color: var(--buy-gray-500);
    font-size: 0.875rem;
}

.buy-coin-body {
    padding: 1.5rem 2rem;
}

.buy-coin-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--buy-gray-100);
}

.buy-coin-stat:last-child {
    border-bottom: none;
}

.buy-coin-stat-label {
    color: var(--buy-gray-600);
    font-size: 0.9rem;
}

.buy-coin-stat-value {
    color: var(--buy-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
   PROCESS STEPS
   ============================================ */

.buy-steps {
    position: relative;
    margin: 3rem 0;
}

.buy-steps::before {
    content: "";
    position: absolute;
    left: 28px;
    top: 40px;
    bottom: 40px;
    width: 3px;
    background: linear-gradient(180deg, var(--buy-primary) 0%, var(--buy-accent) 100%);
    border-radius: 3px;
}

.buy-step {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    position: relative;
}

.buy-step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--buy-primary) 0%, var(--buy-accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,102,255,0.3);
    z-index: 1;
}

.buy-step-content {
    flex: 1;
    padding-top: 0.5rem;
}

.buy-step-content h4 {
    color: var(--buy-dark);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.buy-step-content p {
    color: var(--buy-gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.buy-faq {
    margin: 3rem 0;
}

.buy-faq-item {
    background: var(--buy-white);
    border: 1px solid var(--buy-gray-200);
    border-radius: var(--buy-radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.buy-faq-item:hover {
    border-color: var(--buy-primary);
}

.buy-faq-question {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.buy-faq-question h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--buy-dark);
}

.buy-faq-toggle {
    width: 28px;
    height: 28px;
    background: var(--buy-gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    color: var(--buy-gray-600);
}

.buy-faq-item.active .buy-faq-toggle {
    background: var(--buy-primary);
    color: white;
    transform: rotate(45deg);
}

.buy-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.buy-faq-item.active .buy-faq-answer {
    max-height: 500px;
}

.buy-faq-answer-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--buy-gray-600);
    line-height: 1.7;
}

/* ============================================
   COSTS TABLE
   ============================================ */

.buy-costs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

@media (max-width: 900px) {
    .buy-costs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .buy-costs-grid {
        grid-template-columns: 1fr;
    }
}

.buy-cost-card {
    background: var(--buy-white);
    padding: 1.5rem;
    border-radius: var(--buy-radius-sm);
    border: 1px solid var(--buy-gray-200);
    text-align: center;
    transition: all 0.3s ease;
    /* Flexbox to align values at bottom */
    display: flex;
    flex-direction: column;
    min-height: 140px;
}

.buy-cost-card:hover {
    border-color: var(--buy-primary);
    box-shadow: var(--buy-shadow-sm);
}

.buy-cost-card h4 {
    color: var(--buy-dark);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.buy-cost-card p {
    color: var(--buy-gray-600);
    font-size: 0.9rem;
    margin: 0;
    flex-grow: 1; /* Push the value to bottom */
}

.buy-cost-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--buy-primary);
    margin-top: auto; /* Always at bottom */
    padding-top: 0.5rem;
}

/* ============================================
   NEXT STEPS LINKS
   ============================================ */

.buy-links-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1rem !important;
    margin: 2rem 0;
}

/* CRITICAL: Link cards must be flex containers, NOT grid items that break apart */
.buy-link-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1.25rem 1.5rem !important;
    background: var(--buy-white) !important;
    border: 1px solid var(--buy-gray-200) !important;
    border-radius: var(--buy-radius-sm) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    /* Prevent grid from breaking card internals */
    min-width: 0;
}

/* FIX: WordPress wpautop adds rogue <p> and <br> tags inside links - hide/fix them */
.buy-link-card > br,
.buy-link-card br {
    display: none !important;
}

.buy-link-card > p,
.buy-link-card p {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Override any theme grid rules that might affect children */
.buy-link-card > * {
    display: revert;
}

/* Make sure the actual content elements still display properly */
.buy-link-card > .buy-link-icon,
.buy-link-card .buy-link-icon {
    display: flex !important;
}

.buy-link-card > .buy-link-text,
.buy-link-card .buy-link-text {
    display: block !important;
}

.buy-link-card > .buy-link-arrow,
.buy-link-card .buy-link-arrow {
    display: inline !important;
}

.buy-link-card:hover {
    border-color: var(--buy-primary);
    transform: translateX(4px);
    box-shadow: var(--buy-shadow-sm);
}

.buy-link-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    background: var(--buy-gray-100);
    border-radius: 10px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem;
    flex-shrink: 0 !important;
}

.buy-link-text {
    flex: 1 !important;
    min-width: 0;
    display: flex !important;
    flex-direction: column !important;
}

.buy-link-text strong {
    display: block !important;
    color: var(--buy-dark);
    font-weight: 600;
}

.buy-link-text span {
    display: block !important;
    color: var(--buy-gray-500);
    font-size: 0.875rem;
}

.buy-link-arrow {
    color: var(--buy-primary);
    font-size: 1.25rem;
    flex-shrink: 0 !important;
}

/* ============================================
   BC COMPARE COMPONENT STYLES
   ============================================ */

/* Container */
.bc-compare-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

/* Filters Section */
.bc-filters-section {
    background: linear-gradient(135deg, var(--bc-gray-50) 0%, var(--bc-white) 100%);
    border-radius: var(--bc-radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--bc-gray-200);
    box-shadow: var(--bc-shadow-md);
}

.bc-filters-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.bc-filters-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-accent) 100%);
    border-radius: var(--bc-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.bc-filters-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bc-dark);
    margin: 0;
}

.bc-filters-subtitle {
    font-size: 0.875rem;
    color: var(--bc-gray-600);
    margin: 0;
}

.bc-filter-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.bc-filter-group {
    flex: 1;
    min-width: 200px;
}

.bc-filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bc-gray-600);
    margin-bottom: 0.75rem;
}

.bc-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Filter Pills - Modern Design */
.bc-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--bc-white);
    border: 2px solid var(--bc-gray-200);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bc-gray-800);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.bc-pill:hover {
    border-color: var(--bc-primary);
    color: var(--bc-primary);
    transform: translateY(-1px);
    box-shadow: var(--bc-shadow-sm);
}

.bc-pill.active {
    background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-accent) 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(0,102,255,0.3);
}

.bc-pill-icon {
    font-size: 1rem;
}

.bc-pill-count {
    background: rgba(0,0,0,0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.bc-pill.active .bc-pill-count {
    background: rgba(255,255,255,0.2);
}

/* Coin pills with colors */
.bc-coin-pill {
    position: relative;
    padding-left: 2.25rem;
}

.bc-coin-dot {
    position: absolute;
    left: 0.75rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Table Container */
.bc-table-container {
    background: var(--bc-white);
    border-radius: var(--bc-radius-xl);
    box-shadow: var(--bc-shadow-xl), var(--bc-shadow-glow);
    overflow: hidden;
    border: 1px solid var(--bc-gray-200);
}

.bc-table-header {
    background: linear-gradient(135deg, var(--bc-dark) 0%, var(--bc-gray-900) 100%);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.bc-table-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bc-table-badge {
    background: linear-gradient(135deg, var(--bc-secondary) 0%, #00B894 100%);
    color: var(--bc-dark);
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bc-table-title {
    color: var(--bc-white);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.bc-results-count {
    color: var(--bc-gray-400);
    font-size: 0.875rem;
}

.bc-results-count span {
    color: var(--bc-secondary);
    font-weight: 600;
}

/* Table */
.bc-table {
    width: 100%;
    border-collapse: collapse;
}

.bc-table thead {
    background: var(--bc-gray-50);
    border-bottom: 2px solid var(--bc-gray-200);
}

.bc-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bc-gray-600);
}

.bc-table th.bc-th-center {
    text-align: center;
}

.bc-table td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--bc-gray-100);
}

.bc-table tbody tr {
    transition: all 0.2s ease;
}

.bc-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(0,102,255,0.03) 0%, rgba(124,58,237,0.03) 100%);
}

.bc-table tbody tr:last-child td {
    border-bottom: none;
}

/* Rank Column */
.bc-rank {
    width: 50px;
    text-align: center;
}

.bc-rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bc-gray-100);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--bc-gray-800);
}

.bc-rank-1 .bc-rank-number {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #7C5C00;
    box-shadow: 0 4px 12px rgba(255,215,0,0.4);
}

.bc-rank-2 .bc-rank-number {
    background: linear-gradient(135deg, #E8E8E8 0%, #C0C0C0 100%);
    color: #5A5A5A;
    box-shadow: 0 4px 12px rgba(192,192,192,0.4);
}

.bc-rank-3 .bc-rank-number {
    background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
    color: #FFF;
    box-shadow: 0 4px 12px rgba(205,127,50,0.4);
}

/* Platform Cell */
.bc-platform-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bc-platform-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--bc-radius-md);
    object-fit: contain;
    background: var(--bc-white);
    border: 1px solid var(--bc-gray-200);
    padding: 0.25rem;
    transition: all 0.2s ease;
}

.bc-table tbody tr:hover .bc-platform-logo {
    transform: scale(1.05);
    box-shadow: var(--bc-shadow-md);
}

.bc-platform-info {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.bc-platform-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bc-dark);
    margin: 0;
}

.bc-platform-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.bc-platform-name a:hover {
    color: var(--bc-primary);
}

.bc-platform-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bc-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bc-type-platform {
    background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 100%);
    color: #166534;
}

.bc-type-exchange {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    color: #1E40AF;
}

.bc-founded {
    font-size: 0.75rem;
    color: var(--bc-gray-500);
}

/* Coins Column */
.bc-coins-cell {
    min-width: 180px;
}

.bc-coins-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.bc-coin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--bc-gray-100);
    color: var(--bc-gray-500);
    border: 2px solid var(--bc-gray-200);
    transition: all 0.2s ease;
}

.bc-coin-badge.supported {
    background: var(--coin-color, var(--bc-primary));
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.bc-coin-badge:hover {
    transform: scale(1.1);
}

/* Features Column */
.bc-features-cell {
    min-width: 140px;
}

.bc-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.bc-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.bc-feature-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.bc-feature-yes .bc-feature-icon {
    background: var(--bc-success);
    color: white;
}

.bc-feature-no .bc-feature-icon {
    background: var(--bc-gray-300);
    color: var(--bc-gray-500);
}

.bc-feature-label {
    color: var(--bc-gray-700);
}

/* CTA Column */
.bc-cta-cell {
    text-align: center;
    width: 140px;
}

.bc-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-accent) 100%);
    color: white !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,102,255,0.25);
    white-space: nowrap;
}

.bc-cta-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,102,255,0.35);
    color: white !important;
}

.bc-cta-button:active {
    transform: translateY(0);
}

.bc-cta-arrow {
    transition: transform 0.2s;
}

.bc-cta-button:hover .bc-cta-arrow {
    transform: translateX(3px);
}

/* Top Pick Highlight - defined in inc.BuyCryptoCompare.php inline CSS */

.bc-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, var(--bc-secondary) 0%, #00B894 100%);
    color: var(--bc-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-left: 0.5rem;
}

/* No Results */
.bc-no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.bc-no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.bc-no-results-text {
    font-size: 1.1rem;
    color: var(--bc-gray-600);
    margin-bottom: 0.5rem;
}

.bc-no-results-hint {
    font-size: 0.875rem;
    color: var(--bc-gray-500);
}

/* Affiliate Disclosure */
.bc-disclosure {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 1px solid #FCD34D;
    border-radius: var(--bc-radius-md);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.bc-disclosure-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.bc-disclosure-text {
    font-size: 0.85rem;
    color: #92400E;
    line-height: 1.6;
}

.bc-disclosure-text strong {
    color: #78350F;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes bcFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bc-table tbody tr {
    animation: bcFadeIn 0.3s ease forwards;
}

.bc-table tbody tr:nth-child(1) { animation-delay: 0ms; }
.bc-table tbody tr:nth-child(2) { animation-delay: 50ms; }
.bc-table tbody tr:nth-child(3) { animation-delay: 100ms; }
.bc-table tbody tr:nth-child(4) { animation-delay: 150ms; }
.bc-table tbody tr:nth-child(5) { animation-delay: 200ms; }
.bc-table tbody tr:nth-child(6) { animation-delay: 250ms; }
.bc-table tbody tr:nth-child(7) { animation-delay: 300ms; }
.bc-table tbody tr:nth-child(8) { animation-delay: 350ms; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .bc-table th:nth-child(4),
    .bc-table td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 768px) {
    .buy-hero {
        padding: 2.5rem 1.5rem;
    }
    
    .buy-hero h1 {
        font-size: 1.75rem;
    }
    
    .buy-hero-subtitle {
        font-size: 1rem;
    }
    
    .buy-trust-badges {
        gap: 1rem;
    }
    
    .buy-steps::before {
        left: 23px;
    }
    
    .buy-step-number {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }
    
    .buy-section-header h2 {
        font-size: 1.5rem;
    }
    
    .bc-filters-section {
        padding: 1.25rem;
    }
    
    .bc-filter-groups {
        gap: 1.25rem;
    }
    
    .bc-filter-group {
        min-width: 100%;
    }
    
    .bc-table-header {
        padding: 1rem 1.25rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bc-table th,
    .bc-table td {
        padding: 1rem;
    }
    
    .bc-table th:nth-child(3),
    .bc-table td:nth-child(3),
    .bc-table th:nth-child(5),
    .bc-table td:nth-child(5) {
        display: none;
    }
    
    .bc-platform-logo {
        width: 44px;
        height: 44px;
    }
    
    .bc-platform-name {
        font-size: 0.9rem;
    }
    
    .bc-cta-button {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .bc-disclosure {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .bc-pill {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .bc-table th:nth-child(1),
    .bc-table td:nth-child(1) {
        display: none;
    }
    
    .bc-platform-cell {
        gap: 0.75rem;
    }
    
    .bc-platform-logo {
        width: 40px;
        height: 40px;
    }
}

/* Hide TOC inside hero to prevent duplication */
.buy-hero #toc_container {
    display: none;
}
