/* ---- moved from page-compare-crypto-cards.php (inline block) ---- */
/* Compare Crypto Cards page — reuses ctf- prefix for shared styles */
.ccc-page {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px 60px;
}
.ccc-breadcrumbs {
    margin-top: 20px;
    margin-bottom: 4px;
}
.ccc-header {
    padding: 24px 0 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.08));
}
.ccc-header h1 {
    color: var(--text-primary, #1a1a2e);
    margin: 0 0 6px;
}
.ccc-header p {
    font-size: 15px;
    color: var(--text-secondary, #64748b);
    margin: 0;
    line-height: 1.5;
    max-width: 640px;
}
.ccc-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted, #94a3b8);
}
.ccc-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Table wrapper */
.ccc-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color, rgba(0,0,0,0.08));
    border-radius: 10px;
    background: var(--card-bg, #fff);
}
.ccc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.ccc-table caption {
    caption-side: top;
    text-align: left;
    padding: 14px 16px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1a1a2e);
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.08));
    letter-spacing: -0.01em;
}
.ccc-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #94a3b8);
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.08));
    white-space: nowrap;
    position: sticky;
    top: 0;
    background: var(--card-bg, #fff);
    z-index: 2;
}
.ccc-table thead th:first-child { padding-left: 16px; }

.ccc-table tbody tr {
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.04));
    transition: background 0.12s;
}
.ccc-table tbody tr:last-child { border-bottom: none; }
.ccc-table tbody tr:hover { background: rgba(37, 80, 240, 0.02); }
body.theme-dark .ccc-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

.ccc-table tbody td {
    padding: 11px 14px;
    color: var(--text-primary, #1a1a2e);
    vertical-align: middle;
}
.ccc-table tbody td:first-child { padding-left: 16px; }

/* Rank */
.ccc-rank {
    color: var(--text-muted, #94a3b8);
    font-size: 12px;
    font-weight: 500;
    min-width: 28px;
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* Card name cell */
.ccc-card-name {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary, #1a1a2e);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}
.ccc-card-name:hover { color: var(--primary-color, #2550f0); }
.ccc-logo {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: contain;
    flex-shrink: 0;
    background: var(--bg-secondary, #f5f6f8);
}
.ccc-logo-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--bg-secondary, #f5f6f8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted, #94a3b8);
    flex-shrink: 0;
}

/* Network badge */
.ccc-network {
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.ccc-network-visa {
    background: rgba(26, 35, 126, 0.08);
    color: #1a237e;
}
.ccc-network-mastercard {
    background: rgba(235, 87, 35, 0.08);
    color: #bf360c;
}
body.theme-dark .ccc-network-visa {
    background: rgba(92, 107, 192, 0.15);
    color: #7986cb;
}
body.theme-dark .ccc-network-mastercard {
    background: rgba(255, 138, 101, 0.15);
    color: #ff8a65;
}

/* Cashback highlight */
.ccc-cashback {
    font-weight: 600;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary, #1a1a2e);
}
td.ccc-best-cashback .ccc-cashback {
    color: #16a34a;
    font-weight: 700;
}
body.theme-dark td.ccc-best-cashback .ccc-cashback {
    color: #4ade80;
}

/* Fee cell */
.ccc-fee {
    font-size: 13px;
    color: var(--text-secondary, #64748b);
    white-space: nowrap;
}
.ccc-fee-free {
    color: #16a34a;
    font-weight: 600;
}
body.theme-dark .ccc-fee-free { color: #4ade80; }

/* Tiers */
.ccc-tiers {
    font-size: 13px;
    color: var(--text-secondary, #64748b);
    font-variant-numeric: tabular-nums;
}

/* Highlights */
.ccc-highlights {
    font-size: 12px;
    color: var(--text-secondary, #64748b);
    line-height: 1.4;
    max-width: 220px;
    white-space: normal;
}

/* Action button */
.ccc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 7px;
    background: var(--primary-color, #2550f0);
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s;
    min-width: 60px;
}
.ccc-btn:hover { opacity: 0.85; }
.ccc-btn-ghost {
    background: transparent;
    color: var(--text-secondary, #64748b) !important;
    border: 1px solid var(--border-color, rgba(0,0,0,0.12));
}
.ccc-btn-ghost:hover { color: var(--text-primary) !important; border-color: var(--text-muted); }

/* Empty */
.ccc-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 15px;
}

/* Summary */
.ccc-summary {
    margin-top: 32px;
    padding: 20px 0 0;
}
.ccc-summary h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #1a1a2e);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
.ccc-summary p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary, #475569);
    margin: 0 0 16px;
    max-width: 740px;
}

/* FAQ */
.ccc-faq {
    margin-top: 28px;
}
.ccc-faq h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #1a1a2e);
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}
.ccc-faq-item {
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.06));
    padding: 14px 0;
}
.ccc-faq-item:first-of-type {
    border-top: 1px solid var(--border-color, rgba(0,0,0,0.06));
}
.ccc-faq-q {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #1a1a2e);
    margin: 0 0 6px;
}
.ccc-faq-a {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary, #475569);
    margin: 0;
}

/* Dark mode */
body.theme-dark .ccc-table-wrap {
    background: var(--card-bg, #141b2d);
}
body.theme-dark .ccc-table thead th {
    background: var(--card-bg, #141b2d);
}

/* Responsive */
@media (max-width: 768px) {
    .ccc-page { padding: 0 16px 40px; }
    .ccc-header h1 { font-size: 20px; }
    .ccc-table { font-size: 13px; }
    .ccc-table thead th,
    .ccc-table tbody td { padding: 9px 10px; }
    .ccc-col-atm,
    .ccc-col-highlights,
    .ccc-col-tiers { display: none; }
    .ccc-card-name { font-size: 13px; }
    .ccc-logo, .ccc-logo-placeholder { width: 24px; height: 24px; }
}
@media (max-width: 480px) {
    .ccc-col-rank { display: none; }
    .ccc-col-issuance { display: none; }
    .ccc-meta { flex-direction: column; gap: 4px; }
}

/* ---- Top picks ---- */
.ccc-top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 28px;
}
.ccc-top-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 20px 20px;
    border: 1px solid var(--border-color, rgba(0,0,0,.08));
    border-radius: 16px;
    background: var(--card-bg, #fff);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ccc-top-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -22px rgba(0,0,0,.4); }
.ccc-top-card.is-best {
    border-color: rgba(36, 80, 241, .5);
    box-shadow: 0 0 0 1px rgba(36, 80, 241, .22), 0 20px 44px -26px rgba(36, 80, 241, .55);
}
.ccc-top-rank { position: absolute; top: 16px; right: 18px; font-size: 12px; font-weight: 700; color: var(--text-muted, #94a3b8); }
.ccc-top-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: linear-gradient(90deg, #2550f0, #7c3aed);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}
.ccc-top-head { display: flex; align-items: center; gap: 12px; }
.ccc-top-title { min-width: 0; }
.ccc-top-title h3 { margin: 0 0 5px; font-size: 16px; font-weight: 700; color: var(--text-primary, #1a1a2e); }
.ccc-logo--lg { width: 44px !important; height: 44px !important; border-radius: 12px !important; }
.ccc-top-cashback { display: flex; align-items: baseline; gap: 8px; }
.ccc-top-cashback strong { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: #16a34a; }
.ccc-top-cashback span { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted, #94a3b8); }
.ccc-top-specs {
    list-style: none;
    margin: 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--border-color, rgba(0,0,0,.08));
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ccc-top-specs li { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary, #64748b); }
.ccc-top-specs strong { color: var(--text-primary, #1a1a2e); font-weight: 600; }
.ccc-top-specs strong.is-free { color: #16a34a; }
.ccc-top-card .ccc-btn { margin-top: auto; width: 100%; padding: 10px; }

/* ---- Toolbar ---- */
.ccc-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.ccc-seg {
    display: inline-flex;
    background: var(--bg-secondary, #f5f6f8);
    border: 1px solid var(--border-color, rgba(0,0,0,.08));
    border-radius: 10px;
    padding: 3px;
}
.ccc-seg-btn {
    border: 0;
    background: transparent;
    color: var(--text-secondary, #64748b);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.ccc-seg-btn.is-active { background: var(--card-bg, #fff); color: var(--text-primary, #1a1a2e); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ccc-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted, #94a3b8); }
.ccc-sort select {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border-color, rgba(0,0,0,.08));
    border-radius: 10px;
    background: var(--card-bg, #fff);
    color: var(--text-primary, #1a1a2e);
    font-size: 13px;
    font-weight: 600;
}

/* ---- Best row + badge ---- */
.ccc-table tbody tr.is-best td { background: rgba(22, 163, 74, .06); }
.ccc-badge {
    display: inline-block;
    margin-left: 8px;
    background: #16a34a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    vertical-align: middle;
}

body.theme-dark .ccc-top-card { background: var(--card-bg, #141b2d); }
body.theme-dark .ccc-seg { background: rgba(255,255,255,.04); }
body.theme-dark .ccc-seg-btn.is-active { background: rgba(255,255,255,.1); color: #fff; }
body.theme-dark .ccc-table tbody tr.is-best td { background: rgba(74,222,128,.08); }

@media (max-width: 900px) {
    .ccc-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .ccc-toolbar { flex-direction: column; align-items: stretch; }
    .ccc-seg { justify-content: center; }
    .ccc-top-cashback strong { font-size: 26px; }
}
