/*
Theme Name: Crypto
Theme URI: https://wordpress.org
Author: Orkhan Chichitov
Author URI: https://wordpress.org
Description: A simple and clean WordPress theme for cryptocurrency-related websites. It features a modern design, responsive layout, and customizable options to create a unique online presence for your crypto business or blog.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =====================================================================
   CSS Variables
   ===================================================================== */
:root {
    --tc-white:   #ffffff;
    --tc-black:   #000000;
    --tc-red:     #6D001A;
    --tc-red-dark: #550015;
    --tc-row-dark: #111111;
    --tc-row-alt:  #1a1a1a;
    --tc-border-dark: #2a2a2a;
    --tc-border-light: #e5e7eb;
    --tc-up:      #16a34a;
    --tc-down:    #dc2626;
    --tc-up-bg:   #dcfce7;
    --tc-down-bg: #fee2e2;
    --tc-radius:  8px;
    --tc-section-y: 72px;
    --tc-container: 1200px;
    --tc-font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--tc-font);
    background: var(--tc-white);
    color: var(--tc-black);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =====================================================================
   Container
   ===================================================================== */
.tc-container {
    max-width: var(--tc-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================================
   Site Header
   ===================================================================== */
.site-header {
    background: var(--tc-black);
    color: var(--tc-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--tc-red);
}

.site-header__inner {
    max-width: var(--tc-container);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tc-white);
    white-space: nowrap;
    transition: opacity .2s;
}
.site-header__logo:hover { opacity: .8; }

.site-header__logo-icon {
    color: var(--tc-red);
    font-size: 1.1rem;
}

.site-header__nav { margin-left: auto; }

.site-header__menu {
    display: flex;
    gap: 4px;
    align-items: center;
}

.site-header__menu li a {
    display: block;
    padding: 6px 14px;
    border-radius: var(--tc-radius);
    font-size: .9rem;
    font-weight: 500;
    color: rgba(255,255,255,.8);
    transition: color .2s, background .2s;
}

.site-header__menu li a:hover,
.site-header__menu li.current a {
    color: var(--tc-white);
    background: var(--tc-red);
}

/* Burger */
.site-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: var(--tc-radius);
    margin-left: auto;
    transition: background .2s;
}
.site-header__burger:hover { background: rgba(255,255,255,.1); }
.site-header__burger span {
    display: block;
    height: 2px;
    background: var(--tc-white);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.site-header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__burger.is-open span:nth-child(2) { opacity: 0; }
.site-header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.site-header__mobile-nav {
    background: var(--tc-black);
    border-top: 1px solid var(--tc-border-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.site-header__mobile-nav.is-open { max-height: 400px; }

.site-header__mobile-menu {
    padding: 12px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.site-header__mobile-menu li a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--tc-radius);
    color: rgba(255,255,255,.85);
    font-size: .95rem;
    font-weight: 500;
    transition: background .2s, color .2s;
}
.site-header__mobile-menu li a:hover { background: var(--tc-red); color: var(--tc-white); }

/* =====================================================================
   Section base styles
   ===================================================================== */
.tc-section {
    padding: var(--tc-section-y) 0;
}

/* White section */
.tc-section--white {
    background: var(--tc-white);
    color: var(--tc-black);
}

/* Black section */
.tc-section--black {
    background: var(--tc-black);
    color: var(--tc-white);
}

/* Red section */
.tc-section--red {
    background: var(--tc-red);
    color: var(--tc-white);
}

/* =====================================================================
   Hero
   ===================================================================== */
.tc-hero {
    background: var(--tc-red);
    color: var(--tc-white);
    padding: 80px 0 64px;
}

.tc-hero__inner {
    max-width: var(--tc-container);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: start;
}

.tc-hero__content { max-width: 580px; }

.tc-hero__h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -.02em;
}

.tc-hero__text {
    font-size: 1.05rem;
    opacity: .9;
    margin-bottom: 24px;
    line-height: 1.7;
}

.tc-hero__updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: .82rem;
    font-weight: 500;
    margin-bottom: 28px;
}
.tc-hero__updated::before { content: '●'; font-size: .5rem; color: #4ade80; }

.tc-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tc-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--tc-white);
    transition: background .2s, border-color .2s, transform .2s;
}
.tc-hero__link:hover {
    background: rgba(255,255,255,.25);
    border-color: rgba(255,255,255,.5);
    transform: translateY(-2px);
}

/* Widget side */
.tc-hero__widget {
    flex-shrink: 0;
}
.tc-widget-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    max-width: 100%;
}
.tc-widget-wrap iframe {
    display: block;
    max-width: 100%;
}

/* =====================================================================
   Inner page hero (no widget)
   ===================================================================== */
.tc-hero--inner .tc-hero__inner {
    grid-template-columns: 1fr;
}
.tc-hero--inner .tc-hero__content { max-width: 720px; }

/* Filter badges bar */
.tc-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.tc-filter-badge {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--tc-white);
}
.tc-filter-badge strong { font-weight: 700; }

/* =====================================================================
   Section headings
   ===================================================================== */
.tc-section__head { margin-bottom: 32px; }

.tc-section__h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -.01em;
}

.tc-section__text {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 680px;
    opacity: .85;
}

/* =====================================================================
   Coin Data Tables
   ===================================================================== */
.tc-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--tc-radius);
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

/* Table on white section */
.tc-section--white .tc-table-wrap { box-shadow: 0 4px 24px rgba(0,0,0,.1); }

.tc-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}

/* White section table */
.tc-section--white .tc-tbl thead th {
    background: var(--tc-black);
    color: var(--tc-white);
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}

.tc-section--white .tc-tbl tbody tr {
    background: var(--tc-white);
    border-bottom: 1px solid var(--tc-border-light);
    transition: background .15s;
}
.tc-section--white .tc-tbl tbody tr:nth-child(even) { background: #f9fafb; }
.tc-section--white .tc-tbl tbody tr:hover { background: #f0f4ff; }

.tc-section--white .tc-tbl td {
    padding: 12px 16px;
    color: var(--tc-black);
    white-space: nowrap;
}

/* Black section table */
.tc-section--black .tc-table-wrap { box-shadow: 0 4px 24px rgba(0,0,0,.5); }

.tc-section--black .tc-tbl thead th {
    background: var(--tc-red);
    color: var(--tc-white);
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}

.tc-section--black .tc-tbl tbody tr {
    background: var(--tc-row-dark);
    border-bottom: 1px solid var(--tc-border-dark);
    transition: background .15s;
}
.tc-section--black .tc-tbl tbody tr:nth-child(even) { background: var(--tc-row-alt); }
.tc-section--black .tc-tbl tbody tr:hover { background: #222; }

.tc-section--black .tc-tbl td {
    padding: 12px 16px;
    color: var(--tc-white);
    white-space: nowrap;
}

/* Red section table */
.tc-section--red .tc-table-wrap { box-shadow: 0 4px 24px rgba(0,0,0,.4); }
.tc-section--red .tc-tbl thead th {
    background: var(--tc-black);
    color: var(--tc-white);
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}
.tc-section--red .tc-tbl tbody tr {
    background: var(--tc-red-dark);
    border-bottom: 1px solid rgba(255,255,255,.1);
    transition: background .15s;
}
.tc-section--red .tc-tbl tbody tr:nth-child(even) { background: #480012; }
.tc-section--red .tc-tbl tbody tr:hover { background: #7a0020; }
.tc-section--red .tc-tbl td {
    padding: 12px 16px;
    color: var(--tc-white);
    white-space: nowrap;
}

/* Coin cell */
.tc-tbl__coin {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-width: 160px;
}
.tc-tbl__coin img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}
.tc-tbl__coin-name { font-weight: 600; }
.tc-tbl__coin-sym  { font-size: .78rem; opacity: .6; margin-left: 4px; }

/* Change color classes */
.tc-up   { color: var(--tc-up)   !important; font-weight: 600; }
.tc-down { color: var(--tc-down) !important; font-weight: 600; }

/* Score badge */
.tc-score {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: .8rem;
}
.tc-section--white .tc-score { background: #f3f4f6; color: var(--tc-black); }
.tc-section--black .tc-score { background: #222; color: var(--tc-white); }
.tc-section--red   .tc-score { background: rgba(255,255,255,.2); color: var(--tc-white); }

/* Move type badge */
.tc-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}
.tc-badge--hv  { background: #166534; color: #fff; }
.tc-badge--lc  { background: #1e40af; color: #fff; }
.tc-badge--th  { background: #92400e; color: #fff; }
.tc-badge--mod { background: #374151; color: #fff; }
.tc-badge--trg { background: #064e3b; color: #fff; }
.tc-badge--hh  { background: #7c3aed; color: #fff; }
.tc-badge--vb  { background: #0369a1; color: #fff; }
.tc-badge--tp  { background: #9f1239; color: #fff; }
.tc-badge--wl  { background: #374151; color: #fff; }
.tc-badge--hs  { background: #991b1b; color: #fff; }
.tc-badge--lcp { background: #1e3a8a; color: #fff; }
.tc-badge--tld { background: #78350f; color: #fff; }
.tc-badge--ml  { background: #374151; color: #fff; }

/* =====================================================================
   Snapshot & Filter Cards
   ===================================================================== */
.tc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.tc-card {
    border-radius: var(--tc-radius);
    padding: 20px;
    transition: transform .2s, box-shadow .2s;
}
.tc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.15); }

/* Card on white */
.tc-section--white .tc-card {
    background: var(--tc-white);
    border: 1.5px solid var(--tc-border-light);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.tc-section--white .tc-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.12); }

/* Card on black */
.tc-section--black .tc-card {
    background: var(--tc-row-dark);
    border: 1.5px solid var(--tc-border-dark);
}
.tc-section--black .tc-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.5); }

/* Card on red */
.tc-section--red .tc-card {
    background: var(--tc-red-dark);
    border: 1.5px solid rgba(255,255,255,.15);
}

.tc-card__label {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .65;
    margin-bottom: 8px;
}

.tc-card__value {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
}

.tc-card__sub {
    font-size: .8rem;
    opacity: .6;
}

/* Direction indicator on snapshot cards */
.tc-card__dir {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .82rem;
    font-weight: 600;
    margin-top: 6px;
    padding: 2px 10px;
    border-radius: 12px;
}
.tc-card__dir--up   { background: #dcfce7; color: #166534; }
.tc-card__dir--down { background: #fee2e2; color: #991b1b; }
.tc-card__dir--mix  { background: #fef9c3; color: #713f12; }

/* =====================================================================
   Market Summary
   ===================================================================== */
.tc-summary {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--tc-radius);
    padding: 24px 28px;
    font-size: 1rem;
    line-height: 1.75;
    border-left: 4px solid var(--tc-white);
}
.tc-section--white .tc-summary {
    background: #f8fafc;
    border: 1px solid var(--tc-border-light);
    border-left: 4px solid var(--tc-red);
    color: var(--tc-black);
}

/* =====================================================================
   CTA buttons
   ===================================================================== */
.tc-cta {
    margin-top: 28px;
    display: flex;
    align-items: center;
}

.tc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--tc-radius);
    font-size: .9rem;
    font-weight: 700;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.tc-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }

.tc-btn--red   { background: var(--tc-red);   color: var(--tc-white); }
.tc-btn--white { background: var(--tc-white); color: var(--tc-black); }
.tc-btn--black { background: var(--tc-black); color: var(--tc-white); }
.tc-btn--outline-white {
    background: transparent;
    color: var(--tc-white);
    border: 2px solid rgba(255,255,255,.5);
}
.tc-btn--outline-white:hover { border-color: var(--tc-white); }

.tc-btn--outline-black {
    background: transparent;
    color: var(--tc-black);
    border: 2px solid rgba(0,0,0,.3);
}
.tc-btn--outline-black:hover { border-color: var(--tc-black); }

/* =====================================================================
   Methodology / Info Tables (static)
   ===================================================================== */
.tc-info-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--tc-radius);
    overflow: hidden;
    font-size: .9rem;
}

.tc-section--white .tc-info-table th {
    background: var(--tc-black);
    color: var(--tc-white);
    padding: 12px 20px;
    text-align: left;
    font-weight: 700;
}
.tc-section--white .tc-info-table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--tc-border-light);
    color: var(--tc-black);
}
.tc-section--white .tc-info-table tr:nth-child(even) td { background: #f9fafb; }
.tc-section--white .tc-info-table tr:last-child td { border-bottom: none; }

.tc-section--black .tc-info-table th {
    background: var(--tc-red);
    color: var(--tc-white);
    padding: 12px 20px;
    text-align: left;
    font-weight: 700;
}
.tc-section--black .tc-info-table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--tc-border-dark);
    color: var(--tc-white);
    background: var(--tc-row-dark);
}
.tc-section--black .tc-info-table tr:nth-child(even) td { background: var(--tc-row-alt); }
.tc-section--black .tc-info-table tr:last-child td { border-bottom: none; }

.tc-section--red .tc-info-table th {
    background: var(--tc-black);
    color: var(--tc-white);
    padding: 12px 20px;
    text-align: left;
    font-weight: 700;
}
.tc-section--red .tc-info-table td {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: var(--tc-white);
    background: var(--tc-red-dark);
}
.tc-section--red .tc-info-table tr:nth-child(even) td { background: #480012; }
.tc-section--red .tc-info-table tr:last-child td { border-bottom: none; }

/* =====================================================================
   Formula box
   ===================================================================== */
.tc-formula {
    background: rgba(0,0,0,.85);
    color: var(--tc-white);
    border-radius: var(--tc-radius);
    padding: 20px 24px;
    font-family: 'Courier New', monospace;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .02em;
    border-left: 4px solid var(--tc-red);
    margin-bottom: 24px;
}
.tc-section--black .tc-formula,
.tc-section--red   .tc-formula {
    background: rgba(255,255,255,.08);
    border-left-color: var(--tc-white);
}

/* =====================================================================
   FAQ
   ===================================================================== */
.tc-faq { display: grid; gap: 12px; }

.tc-faq__item {
    border-radius: var(--tc-radius);
    overflow: hidden;
    border: 1.5px solid transparent;
    transition: border-color .2s;
}

.tc-section--white .tc-faq__item { border-color: var(--tc-border-light); }
.tc-section--black .tc-faq__item { border-color: var(--tc-border-dark); }
.tc-section--red   .tc-faq__item { border-color: rgba(255,255,255,.18); }

.tc-faq__q {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    font-size: .97rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background .2s;
}

.tc-section--white .tc-faq__q { background: #f9fafb; color: var(--tc-black); }
.tc-section--black .tc-faq__q { background: var(--tc-row-dark); color: var(--tc-white); }
.tc-section--red   .tc-faq__q { background: var(--tc-red-dark); color: var(--tc-white); }

.tc-faq__q::after {
    content: '+';
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform .25s;
}
.tc-faq__item.is-open .tc-faq__q::after { transform: rotate(45deg); }

.tc-faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    font-size: .93rem;
    line-height: 1.7;
}
.tc-faq__item.is-open .tc-faq__a { max-height: 400px; }

.tc-section--white .tc-faq__a { background: var(--tc-white);       color: var(--tc-black); padding: 0 20px; }
.tc-section--black .tc-faq__a { background: #0d0d0d;               color: var(--tc-white); padding: 0 20px; }
.tc-section--red   .tc-faq__a { background: rgba(255,255,255,.06);  color: var(--tc-white); padding: 0 20px; }

.tc-faq__item.is-open .tc-faq__a { padding: 16px 20px; }

/* =====================================================================
   Info / disclaimer box
   ===================================================================== */
.tc-info-box {
    border-radius: var(--tc-radius);
    padding: 18px 22px;
    font-size: .9rem;
    line-height: 1.65;
    margin-top: 20px;
}
.tc-section--white .tc-info-box { background: #fef2f2; border: 1px solid #fca5a5; color: #7f1d1d; }
.tc-section--black .tc-info-box { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.85); }
.tc-section--red   .tc-info-box { background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.2); color: var(--tc-white); }

/* =====================================================================
   Auto Answer block
   ===================================================================== */
.tc-auto-answer {
    border-radius: var(--tc-radius);
    padding: 24px 28px;
    font-size: 1rem;
    line-height: 1.75;
}
.tc-section--white .tc-auto-answer {
    background: #f0f4ff;
    border: 1.5px solid #bfdbfe;
    color: var(--tc-black);
}
.tc-section--black .tc-auto-answer {
    background: var(--tc-row-dark);
    border: 1.5px solid var(--tc-border-dark);
    color: var(--tc-white);
}

/* =====================================================================
   Market Wide Drop Context cards
   ===================================================================== */
.tc-context-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* =====================================================================
   Large-cap gainers/losers card layout (3 cols)
   ===================================================================== */
.tc-lc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.tc-lc-card {
    border-radius: var(--tc-radius);
    padding: 22px 20px;
    transition: transform .2s, box-shadow .2s;
}
.tc-lc-card:hover { transform: translateY(-5px); }

.tc-section--white .tc-lc-card {
    background: var(--tc-white);
    border: 1.5px solid var(--tc-border-light);
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
    color: var(--tc-black);
}
.tc-section--black .tc-lc-card {
    background: var(--tc-row-dark);
    border: 1.5px solid var(--tc-border-dark);
    color: var(--tc-white);
}
.tc-section--red .tc-lc-card {
    background: var(--tc-red-dark);
    border: 1.5px solid rgba(255,255,255,.15);
    color: var(--tc-white);
}

.tc-lc-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.tc-lc-card__head img { width: 36px; height: 36px; border-radius: 50%; }
.tc-lc-card__name  { font-weight: 700; font-size: .95rem; }
.tc-lc-card__sym   { font-size: .78rem; opacity: .6; }
.tc-lc-card__price { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.tc-lc-card__row   { display: flex; justify-content: space-between; font-size: .82rem; opacity: .75; margin-top: 4px; }

/* =====================================================================
   Site Footer
   ===================================================================== */
.site-footer {
    background: var(--tc-black);
    color: var(--tc-white);
    border-top: 2px solid var(--tc-red);
}

.site-footer__inner {
    max-width: var(--tc-container);
    margin: 0 auto;
    padding: 56px 24px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--tc-white);
    transition: opacity .2s;
}
.site-footer__logo:hover { opacity: .8; }
.site-footer__logo-icon { color: var(--tc-red); }

.site-footer__desc {
    font-size: .875rem;
    line-height: 1.7;
    opacity: .7;
    max-width: 460px;
}

.site-footer__col-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    opacity: .5;
    margin-bottom: 16px;
}

.site-footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.site-footer__links li a {
    font-size: .875rem;
    opacity: .75;
    transition: opacity .2s, color .2s;
}
.site-footer__links li a:hover { opacity: 1; color: var(--tc-white); }

.site-footer__bottom {
    max-width: var(--tc-container);
    margin: 0 auto;
    padding: 20px 24px 32px;
    border-top: 1px solid var(--tc-border-dark);
    display: flex;
    gap: 16px;
    flex-direction: column;
}

.site-footer__disclaimer {
    font-size: .78rem;
    opacity: .5;
    line-height: 1.65;
    max-width: 680px;
}

.site-footer__copy {
    font-size: .78rem;
    opacity: .4;
}

/* =====================================================================
   Scroll-reveal animation
   ===================================================================== */
.tc-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
}
.tc-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Staggered children */
.tc-reveal-group > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .45s ease, transform .45s ease;
}
.tc-reveal-group.is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: .0s; }
.tc-reveal-group.is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: .08s; }
.tc-reveal-group.is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: .16s; }
.tc-reveal-group.is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: .24s; }
.tc-reveal-group.is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: .32s; }

/* =====================================================================
   Error / empty state
   ===================================================================== */
.tc-empty {
    text-align: center;
    padding: 40px 20px;
    font-size: .9rem;
    opacity: .6;
}

/* =====================================================================
   Tooltip (column headers)
   ===================================================================== */
.tc-tooltip-cell {
    position: relative;
    cursor: help;
    border-bottom: 1px dashed rgba(255,255,255,.4);
}
.tc-section--white .tc-tooltip-cell { border-bottom-color: rgba(0,0,0,.3); }

.tc-tooltip-cell::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--tc-black);
    color: var(--tc-white);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 400;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
    z-index: 100;
}
.tc-tooltip-cell:hover::after { opacity: 1; }

/* =====================================================================
   About page contact block
   ===================================================================== */
.tc-contact-block {
    border-radius: var(--tc-radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tc-section--white .tc-contact-block {
    background: #f9fafb;
    border: 1.5px solid var(--tc-border-light);
    color: var(--tc-black);
}
.tc-section--black .tc-contact-block {
    background: var(--tc-row-dark);
    border: 1.5px solid var(--tc-border-dark);
    color: var(--tc-white);
}
.tc-contact-block a { color: #60a5fa; text-decoration: underline; }

/* =====================================================================
   Score table highlight rows
   ===================================================================== */
.tc-tbl tr.tc-row--highlight td:first-child {
    border-left: 3px solid var(--tc-red);
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 900px) {
    .tc-hero__inner { grid-template-columns: 1fr; }
    .tc-hero__widget { display: none; }

    .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    :root { --tc-section-y: 48px; }

    .site-header__nav { display: none; }
    .site-header__burger { display: flex; }

    .tc-cards { grid-template-columns: repeat(2, 1fr); }
    .tc-lc-cards { grid-template-columns: 1fr; }
    .tc-context-cards { grid-template-columns: repeat(2, 1fr); }

    .tc-tbl__vol,
    .tc-tbl__mktcap,
    .tc-tbl__rank-num { display: none; }

    .tc-section__h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .tc-container { padding: 0 16px; }
    .site-header__inner { padding: 0 16px; }

    .tc-hero { padding: 48px 0 40px; }
    .tc-hero__h1 { font-size: 1.6rem; }
    .tc-hero__links { flex-direction: column; }

    .tc-cards { grid-template-columns: 1fr; }
    .tc-context-cards { grid-template-columns: 1fr; }

    .tc-tbl { font-size: .82rem; }
    .tc-tbl__coin { min-width: 120px; }
    .tc-tbl__coin-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }

    .site-footer__bottom { flex-direction: column; }

    .tc-widget-wrap iframe { width: 100%; max-width: 500px; }
}

/* =====================================================================
   Hero background image (set via inline style on each page)
   ===================================================================== */
.tc-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.tc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(109, 0, 26, 0.82);
    z-index: 0;
}
.tc-hero__inner  { position: relative; z-index: 1; }

/* =====================================================================
   Image + text block (side by side)
   ===================================================================== */
.tc-img-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: center;
}
.tc-img-block--reverse { direction: rtl; }
.tc-img-block--reverse > * { direction: ltr; }

.tc-img-block__img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.tc-img-block__img img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.tc-img-block__img:hover img { transform: scale(1.06); }

/* =====================================================================
   Factor cards (image + label + text)
   ===================================================================== */
.tc-factor-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tc-factor-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.tc-factor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0,0,0,.15);
}

.tc-factor-card__img {
    height: 160px;
    overflow: hidden;
}
.tc-factor-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.tc-factor-card:hover .tc-factor-card__img img { transform: scale(1.1); }

.tc-factor-card__body {
    padding: 16px 18px;
}
.tc-factor-card__icon {
    font-size: 1.3rem;
    margin-bottom: 6px;
    display: block;
}
.tc-factor-card__title {
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 4px;
}
.tc-factor-card__text {
    font-size: .83rem;
    line-height: 1.55;
    opacity: .8;
}

/* Factor card colours per section */
.tc-section--white .tc-factor-card {
    background: var(--tc-white);
    border: 1.5px solid var(--tc-border-light);
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    color: var(--tc-black);
}
.tc-section--black .tc-factor-card {
    background: var(--tc-row-dark);
    border: 1.5px solid var(--tc-border-dark);
    color: var(--tc-white);
}
.tc-section--red .tc-factor-card {
    background: var(--tc-red-dark);
    border: 1.5px solid rgba(255,255,255,.15);
    color: var(--tc-white);
}

/* =====================================================================
   Responsive: image blocks
   ===================================================================== */
@media (max-width: 768px) {
    .tc-img-block { grid-template-columns: 1fr; gap: 24px; }
    .tc-img-block--reverse { direction: ltr; }
    .tc-img-block__img img { height: 240px; }
    .tc-factor-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .tc-factor-cards { grid-template-columns: 1fr; }
    .tc-img-block__img img { height: 200px; }
}
