/*
Theme Name: BitcoinX
Template: kadence
Description: BitcoinX child theme of Kadence: refined dark terminal design system, shared chart widgets, live price pill, partner slot.
Version: 1.0.0
Author: BitcoinX
Text Domain: bitcoinx
*/

/* ---------- tokens ---------- */
:root {
	--btx-bg: #0A0A0B;
	--btx-card: #131316;
	--btx-card-2: #1B1B20;
	--btx-line: #2A2A31;
	--btx-line-2: #3A3A42;
	--btx-text: #F2F2F3;
	--btx-body: #D4D4D8;
	--btx-muted: #A1A1AA;
	--btx-dim: #7E7E87;
	--btx-accent: #F7931A;
	--btx-accent-hover: #FFB357;
	--btx-blue: #5AA9E6;
	--btx-grey-series: #6B6B74;
	--btx-up: #3FCF8E;
	--btx-down: #FF6B6B;
	--btx-radius: 14px;
	--btx-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--btx-head: "Space Grotesk", Inter, system-ui, sans-serif;
	--btx-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--global-content-width: 1240px;
	--global-palette9: #0A0A0B;
	--global-palette8: #131316;
	--global-palette7: #1B1B20;
	--global-palette1: #F7931A;
	--global-palette2: #FFB357;
}

/* ---------- base ---------- */
html, body, .site, #wrapper { background: var(--btx-bg) !important; }
body {
	color: var(--btx-body);
	font-family: var(--btx-sans);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--btx-accent); }
a:hover, a:focus { color: var(--btx-accent-hover); }
h1, h2, h3, h4, h5, h6, .entry-title {
	font-family: var(--btx-head);
	color: var(--btx-text);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.2;
}
h1, .entry-title { font-size: clamp(34px, 4.4vw, 48px); letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(24px, 2.6vw, 28px); margin-top: 1.6em; }
h3 { font-size: 21px; }
::selection { background: var(--btx-accent); color: #0A0A0B; }
:focus-visible { outline: 2px solid var(--btx-accent); outline-offset: 2px; }

/* ---------- header ---------- */
#masthead, .site-header, .site-header-wrap, .site-main-header-wrap .site-header-row-container-inner,
.site-header-upper-wrap, .site-mobile-header-wrap .site-header-row-container-inner {
	background: var(--btx-bg) !important;
}
.site-main-header-wrap, .site-mobile-header-wrap { border-bottom: 1px solid var(--btx-line); }
.site-main-header-inner-wrap { min-height: 68px !important; }
.btx-wordmark {
	font-family: var(--btx-head); font-weight: 700; font-size: 24px; letter-spacing: 0.02em;
	color: var(--btx-text) !important; text-decoration: none; white-space: nowrap;
}
.btx-wordmark span { color: var(--btx-accent); }
.header-navigation .menu > li > a, .header-navigation ul li > a {
	color: var(--btx-muted) !important; font-family: var(--btx-sans); font-size: 15px; font-weight: 500;
	padding: 12px 14px !important;
}
.header-navigation .menu > li > a:hover, .header-navigation .menu > li.current-menu-item > a,
.header-navigation .menu > li.current-menu-ancestor > a { color: var(--btx-text) !important; }
.header-navigation .menu > li.current-menu-item > a, .header-navigation .menu > li.current-menu-ancestor > a {
	box-shadow: inset 0 -2px 0 var(--btx-accent);
}
.header-navigation .sub-menu {
	background: var(--btx-card) !important; border: 1px solid var(--btx-line); border-radius: 12px;
	padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.header-navigation .sub-menu li a { color: var(--btx-body) !important; border-radius: 8px; border: 0 !important; }
.header-navigation .sub-menu li a:hover { background: var(--btx-card-2) !important; color: var(--btx-text) !important; }
.menu-toggle-open, .drawer-toggle { color: var(--btx-text) !important; }
#mobile-drawer .drawer-inner, .popup-drawer .drawer-inner { background: var(--btx-bg) !important; }
.mobile-navigation ul li > a { color: var(--btx-text) !important; border-bottom: 1px solid var(--btx-line) !important; }

.btx-price-pill {
	display: inline-flex; align-items: center; gap: 10px; margin-left: 12px;
	font-family: var(--btx-mono); font-size: 14px; line-height: 1; white-space: nowrap;
	border: 1px solid var(--btx-line); border-radius: 999px; padding: 9px 14px; color: var(--btx-text);
	text-decoration: none;
}
.btx-price-pill:hover { border-color: var(--btx-line-2); color: var(--btx-text); }
.btx-price-pill .btx-pp-label { color: var(--btx-muted); }
.btx-price-pill .btx-pp-price { font-weight: 700; }
@media (max-width: 1024px) { .btx-price-pill { display: none; } }

/* ---------- content area ---------- */
.content-bg, .entry.content-bg, body.content-style-boxed .content-bg, .site-container, .content-container,
.entry-hero-container-inner, .entry-hero { background: transparent !important; box-shadow: none !important; }
.content-style-boxed .entry-content-wrap, .entry-content-wrap { padding: 0 !important; }
.content-container.site-container, .site-container { max-width: 1240px; padding-left: 24px; padding-right: 24px; }
.entry-header.page-title { margin-bottom: 8px; }
.entry-content p, .entry-content li { color: var(--btx-body); font-size: 17px; line-height: 1.75; }
/* comfortable reading width for text; widgets and tables keep the full width */
.page .entry-content > p, .page .entry-content > h2, .page .entry-content > h3, .page .entry-content > ul, .page .entry-content > ol { max-width: 820px; }
.entry-content > p:first-of-type { font-size: 18px; color: var(--btx-muted); }
.entry-content strong { color: var(--btx-text); }
.entry-content img { border-radius: var(--btx-radius); }
.entry-content blockquote { border-left: 2px solid var(--btx-accent); color: var(--btx-text); }
.entry-content table { border-collapse: collapse; }
.entry-meta, .entry-meta a, .posted-on, .byline { font-family: var(--btx-mono); font-size: 13px; color: var(--btx-muted) !important; }
.entry-taxonomies a, .category-links a {
	font-family: var(--btx-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
	color: var(--btx-accent) !important; background: none !important; padding: 0 !important;
}
.wp-caption-text, figcaption { font-size: 13px; color: var(--btx-dim); }
.single .entry-content { max-width: 760px; }
.single .entry-content > p:first-of-type { font-size: 19px; color: #E4E4E7; }

/* sidebar */
.primary-sidebar .widget { background: var(--btx-card); border: 1px solid var(--btx-line); border-radius: var(--btx-radius); padding: 22px; }
.primary-sidebar .widget-title { font-family: var(--btx-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--btx-dim); }
.primary-sidebar a { color: var(--btx-text); }

/* archive cards */
.loop-entry, .entry.loop-entry { background: var(--btx-card) !important; border: 1px solid var(--btx-line); border-radius: var(--btx-radius); overflow: hidden; }
.loop-entry .entry-title a { color: var(--btx-text); }
.loop-entry .entry-title { font-size: 20px; }

/* buttons */
.button, button.button, .wp-block-button__link, input[type=submit] {
	background: var(--btx-accent) !important; color: #0A0A0B !important; border: 0; border-radius: 10px;
	font-family: var(--btx-sans); font-weight: 600; min-height: 44px; padding: 0 20px;
}

/* ---------- footer ---------- */
#colophon, .site-footer, .site-footer-wrap, .site-footer-row-container-inner { background: var(--btx-bg) !important; }
.site-footer { border-top: 1px solid var(--btx-line); }
.site-footer, .site-footer p, .site-footer a { color: var(--btx-dim); font-size: 14px; }
.site-footer a:hover { color: var(--btx-text); }

/* ---------- components ---------- */
.btx-label {
	font-family: var(--btx-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--btx-muted);
}
.btx-card { background: var(--btx-card); border: 1px solid var(--btx-line); border-radius: var(--btx-radius); }
.btx-widget { margin: 28px 0 40px; display: flex; flex-direction: column; gap: 20px; color: var(--btx-text); }
.btx-widget .btx-loading { font-family: var(--btx-mono); font-size: 13px; color: var(--btx-dim); padding: 80px 0; text-align: center; }
.btx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
@media (max-width: 640px) { .btx-kpi-value { font-size: 22px; } .btx-kpi { padding: 14px; } }
.btx-kpi { padding: 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.btx-kpi .btx-label { font-size: 11px; }
.btx-kpi-value { font-family: var(--btx-mono); font-weight: 700; font-size: 26px; line-height: 1.15; color: var(--btx-text); overflow-wrap: anywhere; }
.btx-kpi-sub { font-size: 13px; line-height: 1.4; color: var(--btx-muted); }
.btx-up { color: var(--btx-up) !important; }
.btx-down { color: var(--btx-down) !important; }
.btx-accent { color: var(--btx-accent) !important; }

.btx-chart-card { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.btx-chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.btx-chart-head h2, .btx-chart-head h3 { margin: 0; font-size: 22px; }
.btx-tabs { display: inline-flex; gap: 4px; background: var(--btx-bg); border: 1px solid var(--btx-line); border-radius: 10px; padding: 4px; }
.btx-tabs button {
	min-height: 36px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--btx-muted);
	font-family: var(--btx-mono); font-size: 13px; cursor: pointer;
}
.btx-tabs button[aria-pressed="true"] { background: var(--btx-line); color: var(--btx-text); }
.btx-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--btx-mono); font-size: 13px; color: var(--btx-muted); }
.btx-legend span { display: inline-flex; align-items: center; gap: 8px; }
.btx-legend i { width: 22px; height: 3px; display: inline-block; border-radius: 2px; }
.btx-canvas-wrap { position: relative; height: 380px; }
@media (max-width: 640px) { .btx-canvas-wrap { height: 300px; } .btx-chart-card { padding: 16px; } }
.btx-chart-foot {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--btx-line);
	padding-top: 14px; font-family: var(--btx-mono); font-size: 12px; color: var(--btx-dim);
}
.btx-chart-foot a { color: var(--btx-muted); }

.btx-table-wrap { overflow-x: auto; border: 1px solid var(--btx-line); border-radius: var(--btx-radius); }
.btx-table { width: 100%; min-width: 560px; border-collapse: collapse; font-family: var(--btx-mono); font-size: 14px; margin: 0 !important; }
.btx-table th { background: var(--btx-card); color: var(--btx-muted); font-weight: 500; text-align: right; padding: 14px 16px; border: 0; }
.btx-table td { text-align: right; padding: 14px 16px; border: 0; border-top: 1px solid var(--btx-line); color: var(--btx-text); }
.btx-table th:first-child, .btx-table td:first-child { text-align: left; }

.btx-sponsor { padding: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin: 32px 0; }
.btx-sponsor .btx-label { font-size: 11px; color: var(--btx-dim); display: block; margin-bottom: 6px; }
.btx-sponsor-title { font-family: var(--btx-head); font-weight: 600; font-size: 20px; color: var(--btx-text); }
.btx-sponsor-text { font-size: 14px; color: var(--btx-muted); }
.btx-sponsor a.btx-sponsor-btn {
	min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 10px;
	border: 1px solid var(--btx-accent); color: var(--btx-accent); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.btx-sponsor a.btx-sponsor-btn:hover { background: var(--btx-accent); color: #0A0A0B; }

/* hide the old in-page loaders/styles left by legacy widgets */
.btx-legacy-hidden { display: none !important; }

/* ---------- calculators ---------- */
.btx-form { padding: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px 20px; align-items: start; }
.btx-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.btx-field-wide { grid-column: 1 / -1; }
.btx-field-end { justify-content: flex-end; align-self: end; }
.btx-field > label, .btx-field > .btx-label {
	font-family: var(--btx-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--btx-muted); margin: 0;
}
.btx-form input[type=number], .btx-form input[type=date], .btx-form select {
	width: 100%; min-height: 46px; box-sizing: border-box; padding: 0 12px; border-radius: 10px;
	background: var(--btx-bg) !important; border: 1px solid var(--btx-line-2) !important; color: var(--btx-text) !important;
	font-family: var(--btx-mono); font-size: 15px; color-scheme: dark;
}
.btx-form input:focus, .btx-form select:focus { border-color: var(--btx-accent) !important; outline: none; box-shadow: 0 0 0 2px rgba(247,147,26,.25); }
.btx-form select optgroup { color: var(--btx-muted); background: var(--btx-card); }
.btx-form select option { color: var(--btx-text); background: var(--btx-card); }
.btx-inline { display: flex; gap: 8px; }
.btx-inline input { flex: 1 1 auto; min-width: 0; }
.btx-inline select { flex: 0 0 96px; }
.btx-range { display: flex; align-items: center; gap: 12px; min-height: 46px; }
.btx-range input[type=range] {
	flex: 1; accent-color: var(--btx-accent); min-width: 0; width: 100%; height: 28px;
	background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; margin: 0;
}
.btx-range input[type=range] { -webkit-appearance: none; appearance: none; cursor: pointer; }
.btx-range input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--btx-line-2); }
.btx-range input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--btx-line-2); }
.btx-range input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--btx-accent); }
.btx-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--btx-accent); border: 3px solid var(--btx-bg); }
.btx-range input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--btx-accent); border: 3px solid var(--btx-bg); }
.btx-range input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(247,147,26,.4); }
.btx-range-val { font-family: var(--btx-mono); font-size: 15px; color: var(--btx-text); min-width: 64px; text-align: right; }
.btx-hint { font-size: 13px; color: var(--btx-dim); line-height: 1.4; }
.btx-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.btx-presets button {
	min-height: 52px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--btx-line-2); background: transparent; color: var(--btx-text);
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px; cursor: pointer; font-family: var(--btx-sans);
}
.btx-presets button strong { font-size: 14px; }
.btx-presets button span { font-family: var(--btx-mono); font-size: 12px; color: var(--btx-muted); }
.btx-presets button[aria-pressed="true"] { border-color: var(--btx-accent); background: rgba(247,147,26,.08); }
.btx-presets button:hover { border-color: var(--btx-accent); }
.btx-btn-ghost-sm {
	min-height: 46px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--btx-line-2); background: transparent; color: var(--btx-text);
	font-family: var(--btx-sans); font-size: 14px; font-weight: 500; cursor: pointer;
}
.btx-btn-ghost-sm:hover { border-color: var(--btx-accent); color: var(--btx-accent); }
.entry-content p.btx-verdict, .btx-verdict { margin: 4px 0; font-size: 18px; line-height: 1.55; color: var(--btx-body); max-width: none; }
.btx-verdict strong { color: var(--btx-text); }
.btx-table-scroll { max-height: 420px; overflow-y: auto; }
.btx-table-scroll thead th { position: sticky; top: 0; }

/* ---------- homepage ---------- */
/* Kadence's content link color would otherwise win over these card/button links */
.entry-content a.btx-btn, .entry-content a.btx-btn:hover, .entry-content a.btx-btn:focus { color: #0A0A0B !important; }
.entry-content a.btx-btn-ghost, .entry-content a.btx-btn-ghost:hover { color: var(--btx-text) !important; }
.entry-content a.btx-tool, .entry-content a.btx-tool:hover, .entry-content a.btx-post-row, .entry-content a.btx-post-row:hover { color: var(--btx-text) !important; text-decoration: none !important; }
.entry-content a.btx-tool .btx-tool-name, .entry-content a.btx-post-row .btx-post-title { color: var(--btx-text) !important; }
.entry-content a.btx-tool .btx-tool-desc { color: var(--btx-muted) !important; }
.entry-content a.btx-tool .btx-label.btx-accent { color: var(--btx-accent) !important; }
.entry-content a.btx-post-row .btx-label { color: var(--btx-muted) !important; }
.entry-content a.btx-post-row:hover .btx-post-title { color: var(--btx-accent) !important; }
.entry-content a.btx-sponsor-btn { color: var(--btx-accent) !important; text-decoration: none !important; }
.entry-content a.btx-sponsor-btn:hover { color: #0A0A0B !important; }
.home .entry-hero.page-hero-section { display: none !important; } /* the hero below replaces the page title */
.btx-hero { padding: 48px 0 8px; max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.btx-hero .btx-label { font-size: 12px; }
.entry-content h1.btx-hero-title { margin: 0; font-size: clamp(40px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.03em; }
.entry-content p.btx-hero-text { margin: 0; font-size: 19px; color: var(--btx-muted); max-width: 600px; }
.btx-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.entry-content a.btx-btn, a.btx-btn {
	min-height: 48px; display: inline-flex; align-items: center; padding: 0 22px; border-radius: 10px; background: var(--btx-accent);
	color: #0A0A0B; font-weight: 600; text-decoration: none;
}
.entry-content a.btx-btn:hover { background: var(--btx-accent-hover); color: #0A0A0B; }
.entry-content a.btx-btn-ghost { background: transparent; border: 1px solid var(--btx-line-2); color: var(--btx-text); }
.entry-content a.btx-btn-ghost:hover { background: var(--btx-card-2); color: var(--btx-text); }
.btx-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin: 48px 0 18px; }
.btx-section-head h2 { margin: 0; font-size: 30px; }
.btx-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.entry-content a.btx-tool { text-decoration: none; padding: 20px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; color: var(--btx-text); }
.entry-content a.btx-tool:hover { border-color: var(--btx-line-2); background: var(--btx-card-2); color: var(--btx-text); }
.btx-tool .btx-label { font-size: 11px; }
.btx-tool-name { font-family: var(--btx-head); font-weight: 600; font-size: 19px; }
.btx-tool-desc { font-size: 14px; line-height: 1.5; color: var(--btx-muted); }
.btx-latest .btx-section-head a { font-size: 15px; }
.entry-content a.btx-post-row { display: flex; gap: 18px; align-items: center; border-top: 1px solid var(--btx-line); padding: 16px 0; text-decoration: none; color: var(--btx-text); }
.btx-post-thumb { flex: 0 0 120px; width: 120px; height: 76px; object-fit: cover; border-radius: 10px !important; background: var(--btx-card-2); border: 1px solid var(--btx-line); display: block; }
.btx-post-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.btx-post-title { font-family: var(--btx-head); font-weight: 600; font-size: 19px; line-height: 1.3; }
.entry-content a.btx-post-row:hover .btx-post-title { color: var(--btx-accent); }
@media (max-width: 600px) { .btx-post-thumb { flex-basis: 88px; width: 88px; height: 60px; } .btx-post-title { font-size: 17px; } }

/* page title: the old customizer CSS hid it; the new design shows it */
body .entry-hero.page-hero-section { display: block !important; }
.entry-hero .entry-header { padding: 40px 0 8px; min-height: 0 !important; text-align: left !important; }
.entry-hero .entry-header .entry-title { text-align: left; }
.entry-hero .entry-hero-container-inner { background: transparent !important; }

/* legacy affiliate / Telegram cards still used in sidebar widgets and older pages, restyled to the system */
.btx-sidebar-card, .btx-affiliate-card { background: var(--btx-card); border: 1px solid var(--btx-line); border-radius: var(--btx-radius); overflow: hidden; margin: 0 0 16px; }
.btx-affiliate-card { display: none; }
@media (max-width: 767px) { .btx-affiliate-card { display: flex; align-items: center; gap: 16px; padding: 16px; margin: 24px 0; } }
.btx-sidebar-card__img { width: 100%; height: 150px; object-fit: contain; display: block; background: var(--btx-card-2); padding: 16px; box-sizing: border-box; }
.btx-affiliate-card__img { width: 80px; max-width: 80px; height: auto; flex-shrink: 0; object-fit: contain; }
.btx-sidebar-card__body { padding: 18px; }
.btx-affiliate-card__body { flex: 1; min-width: 0; }
.btx-sidebar-card__label, .btx-affiliate-card__label { font-family: var(--btx-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--btx-dim); margin: 0 0 6px; }
.btx-sidebar-card__title, .btx-affiliate-card__title { font-family: var(--btx-head); font-weight: 600; font-size: 18px; color: var(--btx-text); margin: 0 0 4px; line-height: 1.25; }
.btx-sidebar-card__sub, .btx-affiliate-card__sub { font-size: 14px; color: var(--btx-muted); margin: 0 0 12px; line-height: 1.45; }
.btx-sidebar-card .btx-sidebar-card__cta, .btx-affiliate-card .btx-affiliate-card__cta {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px;
	border: 1px solid var(--btx-accent); color: var(--btx-accent); background: transparent; font-weight: 600; font-size: 14px; text-decoration: none;
}
.btx-sidebar-card .btx-sidebar-card__cta { width: 100%; box-sizing: border-box; }
.btx-sidebar-card .btx-sidebar-card__cta:hover, .btx-affiliate-card .btx-affiliate-card__cta:hover { background: var(--btx-accent); color: #0A0A0B; }
.btx-sidebar-telegram, .btx-telegram-card { border-color: #2B5876; }
.btx-sidebar-telegram-icon, .btx-telegram-icon { font-size: 32px; padding: 16px 16px 0; }
.btx-sidebar-card .btx-sidebar-telegram-cta, .btx-affiliate-card .btx-telegram-cta { border-color: var(--btx-blue); color: var(--btx-blue); }
.btx-sidebar-card .btx-sidebar-telegram-cta:hover, .btx-affiliate-card .btx-telegram-cta:hover { background: var(--btx-blue); color: #0A0A0B; }
