/*
 Theme Name:   GeneratePress Child - irbtc
 Template:     generatepress
 Description:  ایران بیت‌کوین blog — irbtc's own surface, Vazirmatn, live toman tape, dark/light content with permanently dark chrome.
 Version:      5.0.0
 Text Domain:  irbtc-gp-child
*/

/* ---------------------------------------------------------------------
 * Tokens, in two tiers.
 *
 * 1. CHROME (--c-*): header, tape and footer. Always the exchange's dark
 *    surface, in both themes — values lifted straight from irbtc.app
 *    (#121318 panel, white/7% borders). Never redefined per theme.
 * 2. CONTENT: page ground, cards, prose. Flips with [data-theme].
 *
 * Brand values (primary, up/down, gold) are shared and never flip.
 * ------------------------------------------------------------------- */

:root {
	/* chrome — locked dark */
	--c-bg: #121318;
	--c-bg-solid: #0d0e12;
	--c-line: rgba(255, 255, 255, 0.07);
	--c-line-2: rgba(255, 255, 255, 0.12);
	--c-glass: rgba(255, 255, 255, 0.025);
	/* The chrome surface: header and footer paint the exact same thing. */
	--c-surface: linear-gradient(to bottom right, #030304, #060608, #020203);
	--c-surface-base: #050507;
	--c-fg: #ffffff;
	--c-fg-2: rgba(255, 255, 255, 0.82);
	--c-muted: rgba(255, 255, 255, 0.5);
	--c-muted-2: rgba(255, 255, 255, 0.34);

	/* brand — shared */
	--primary: #5367FF;
	--primary-deep: #0C67E1;
	--primary-glow: rgba(83, 103, 255, 0.35);
	--up: #10B981;
	--down: #EF4444;
	--gold: linear-gradient(135deg, #FFE082 0%, #F5C242 35%, #D4A017 70%, #8A5A0B 100%);

	/* geometry */
	--r-sm: 8px;
	--r: 12px;
	--r-lg: 16px;
	--r-xl: 22px;
	--container: 1200px;
	--gutter: clamp(16px, 3vw, 32px);
	--font: "Vazirmatn", Tahoma, Arial, sans-serif;
	--shadow-cta: 0 8px 24px var(--primary-glow);
}

/* Content surface — dark (default, matches the app) */
:root, :root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #080808;
	--panel: #121318;
	--panel-2: #17181f;
	--line: rgba(255, 255, 255, 0.07);
	--line-2: rgba(255, 255, 255, 0.12);
	--glass: rgba(255, 255, 255, 0.025);
	--glass-2: rgba(255, 255, 255, 0.045);
	--fg: #ffffff;
	--fg-2: rgba(255, 255, 255, 0.82);
	--muted: rgba(255, 255, 255, 0.5);
	--muted-2: rgba(255, 255, 255, 0.34);
	--body-grad: linear-gradient(180deg, #121318 0%, #121318 6.28%, rgba(18, 19, 24, 0) 13.66%, rgba(18, 19, 24, 0) 100%);
	--shadow-card: 0 18px 40px rgba(0, 0, 0, 0.35);
	--placeholder-ink: rgba(255, 255, 255, 0.12);
	--code-bg: #121318;
	--warn-bg: rgba(245, 194, 66, 0.08);
	--warn-line: rgba(245, 194, 66, 0.25);
}

/* Content surface — light. Not an inversion: a blue-grey ground that
   sits under the same #5367FF, with solid white cards for contrast. */
:root[data-theme="light"] {
	color-scheme: light;
	--bg: #f4f6fb;
	--panel: #ffffff;
	--panel-2: #e8ecf4;
	--line: rgba(14, 16, 22, 0.10);
	--line-2: rgba(14, 16, 22, 0.16);
	--glass: #ffffff;
	--glass-2: #f7f9fd;
	--fg: #0e1016;
	--fg-2: #333949;
	--muted: #5f6577;
	--muted-2: #8a90a2;
	--body-grad: none;
	--shadow-card: 0 14px 32px rgba(20, 30, 80, 0.10);
	--placeholder-ink: rgba(14, 16, 22, 0.10);
	--code-bg: #eef1f7;
	--warn-bg: #fff8e6;
	--warn-line: #f0d79a;
}

@font-face {
	font-family: "Vazirmatn";
	src: url("assets/fonts/Vazirmatn-VariableFont_wght.ttf") format("truetype");
	font-weight: 100 900;
	font-display: swap;
}

/* ---------------------------------------------------------------------
 * Base
 * ------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.irbtc-body {
	margin: 0;
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.8;
	color: var(--fg);
	background-color: var(--bg);
	background-image: var(--body-grad);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background-color 0.2s ease, color 0.2s ease;
}

body.irbtc-menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 3px;
	border-radius: 4px;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.5; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[dir="ltr"], .irbtc-num { font-variant-numeric: tabular-nums; }

.irbtc-container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.irbtc-muted { color: var(--muted); }
.irbtc-card-title, .irbtc-lead-title, .irbtc-article-title, .irbtc-card-excerpt,
.irbtc-lead-deck, .irbtc-article-deck, .irbtc-featured-title, .irbtc-prose p,
.irbtc-prose li, .irbtc-prose h2, .irbtc-prose h3 { unicode-bidi: plaintext; }
.irbtc-h2 { font-size: 22px; margin-bottom: 18px; }

.irbtc-skip {
	position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
	padding: 8px 14px; background: var(--primary); color: #fff; border-radius: var(--r-sm);
}
.irbtc-skip:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------------
 * Header — always dark chrome, in both themes.
 * ------------------------------------------------------------------- */

.irbtc-header {
	position: sticky; top: 0; z-index: 50;
	/* Opaque, not translucent: a see-through header picked up the page
	   ground behind it and read grey over the light theme. Same two
	   layers the footer panel paints, so the two match exactly. */
	background-color: var(--c-surface-base);
	background-image: linear-gradient(var(--c-glass), var(--c-glass)), var(--c-surface);
	border-bottom: 1px solid var(--c-line);
	color: var(--c-fg);
	transition: box-shadow 0.2s ease;
}
.irbtc-header.is-scrolled { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); }

.irbtc-header-inner {
	display: flex; align-items: center; gap: 24px;
	min-height: 64px; padding-block: 8px;
}
@media (min-width: 900px) { .irbtc-header-inner { min-height: 76px; } }
/* True phone widths: trigger + wordmark + toggle + CTA must fit in 360–390px. */
@media (max-width: 899px) {
	.irbtc-header-inner { gap: 10px; }
	.irbtc-brand img { height: 15px; }
	.irbtc-cta { padding: 0 10px; height: 30px; }
	.irbtc-header-actions { gap: 6px; }
}
/* An RTL page that overflows shifts everything off the right edge, so never let it. */
html, body.irbtc-body { overflow-x: clip; }

.irbtc-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.irbtc-brand img { height: 18px; width: auto; }
.irbtc-brand-tag {
	font-size: 11px; font-weight: 600; color: var(--primary);
	padding: 2px 8px; border: 1px solid rgba(83, 103, 255, 0.35); border-radius: 999px;
	background: rgba(83, 103, 255, 0.1);
}

.irbtc-nav { display: none; flex: 1; }
@media (min-width: 900px) { .irbtc-nav { display: block; } }
.irbtc-nav-list { display: flex; align-items: center; gap: 4px; }
.irbtc-nav-list a {
	display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
	border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--c-muted);
	transition: color 0.15s ease, background 0.15s ease;
}
.irbtc-nav-list a:hover, .irbtc-nav-list .current-menu-item > a { color: var(--c-fg); background: rgba(255, 255, 255, 0.08); }
.irbtc-nav-gold { background-image: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent !important; }

.irbtc-header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }

/* Round chrome buttons: search + theme toggle */
.irbtc-search-toggle, .irbtc-theme-toggle {
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
	color: var(--c-muted); background: rgba(255, 255, 255, 0.04);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
	transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.irbtc-search-toggle:hover, .irbtc-theme-toggle:hover {
	color: var(--primary); background: rgba(83, 103, 255, 0.1);
	box-shadow: inset 0 0 0 1px rgba(83, 103, 255, 0.4);
}
.irbtc-theme-toggle { all: unset; cursor: pointer; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; color: var(--c-muted); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); flex-shrink: 0; }
.irbtc-theme-toggle svg { display: block; }
/* Show the icon for the theme you'd switch TO. */
.irbtc-theme-toggle .irbtc-icon-sun { display: none; }
:root[data-theme="dark"] .irbtc-theme-toggle .irbtc-icon-sun { display: block; }
:root[data-theme="dark"] .irbtc-theme-toggle .irbtc-icon-moon { display: none; }

.irbtc-cta {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 32px; padding: 0 14px; border-radius: var(--r-sm);
	background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap;
	box-shadow: var(--shadow-cta); transition: background 0.15s ease, transform 0.15s ease;
}
@media (min-width: 900px) { .irbtc-cta { height: 40px; width: 124px; font-size: 14px; } }
.irbtc-cta:hover { background: rgba(83, 103, 255, 0.9); transform: translateY(-1px); }
.irbtc-cta-block { width: 100%; height: 44px; margin-top: 14px; }

/* Narrow phones: drop the optional chrome so trigger + wordmark + theme
   toggle + CTA still fit. Must come after the rules above — same
   specificity, so source order decides. */
@media (max-width: 430px) {
	.irbtc-brand-tag { display: none; }
	.irbtc-search-toggle { display: none; }
}

.irbtc-menu-trigger { all: unset; cursor: pointer; display: grid; }
@media (min-width: 900px) { .irbtc-menu-trigger { display: none; } }
.irbtc-menu-trigger-ring {
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; color: var(--c-fg-2);
	background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); transition: all 0.2s ease;
}
.irbtc-menu-trigger[aria-expanded="true"] .irbtc-menu-trigger-ring { background: rgba(83, 103, 255, 0.15); box-shadow: inset 0 0 0 2px var(--primary); }

.irbtc-mobile-menu {
	position: fixed; inset-block: 0; inset-inline-start: 0; width: min(320px, 88vw); z-index: 60;
	padding: 18px 18px 28px; background: var(--c-bg); color: var(--c-fg); border-inline-end: 1px solid var(--c-line);
	transform: translateX(100%); transition: transform 0.22s ease; display: flex; flex-direction: column; gap: 6px;
}
.irbtc-mobile-menu.is-open { transform: none; }
body.irbtc-menu-open::before { content: ""; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(6px); }
.irbtc-mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.irbtc-mobile-menu-head img { height: 16px; width: auto; }
.irbtc-menu-close { all: unset; cursor: pointer; color: var(--c-muted); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; }
.irbtc-menu-close:hover { color: var(--c-fg); background: rgba(255, 255, 255, 0.06); }
.irbtc-nav-list-mobile { flex-direction: column; align-items: stretch; }
.irbtc-nav-list-mobile a { height: 46px; font-size: 15px; }

/* ---------------------------------------------------------------------
 * Signature: the market tape. Part of the dark chrome — the end fades
 * are painted from the tape's own colour (not a mask), so nothing of the
 * page ground shows through in light mode.
 * ------------------------------------------------------------------- */

.irbtc-tape {
	position: relative; overflow: hidden; direction: rtl;
	border-bottom: 1px solid var(--c-line); background: var(--c-bg-solid); color: var(--c-fg-2);
}
.irbtc-tape::before, .irbtc-tape::after {
	content: ""; position: absolute; top: 0; bottom: 0; width: 6%; z-index: 2; pointer-events: none;
}
.irbtc-tape::before { left: 0; background: linear-gradient(90deg, var(--c-bg-solid), transparent); }
.irbtc-tape::after { right: 0; background: linear-gradient(270deg, var(--c-bg-solid), transparent); }
.irbtc-tape-track { display: flex; width: max-content; gap: 0; }
.irbtc-tape-track.is-animated { animation: irbtc-tape 70s linear infinite; }
.irbtc-tape:hover .irbtc-tape-track.is-animated { animation-play-state: paused; }
@keyframes irbtc-tape { to { transform: translateX(50%); } }
.irbtc-tape-item {
	display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 22px;
	border-inline-end: 1px solid var(--c-line); font-size: 12.5px; white-space: nowrap; color: var(--c-fg-2);
}
.irbtc-tape-price, .irbtc-tape-sym, .irbtc-chg { unicode-bidi: isolate; }
.irbtc-tape-item img { width: 18px; height: 18px; border-radius: 999px; box-shadow: 0 0 0 1px var(--c-line-2); }
.irbtc-tape-sym { font-weight: 700; letter-spacing: 0.02em; }
.irbtc-tape-price { font-variant-numeric: tabular-nums; }
.irbtc-tape-unit { font-size: 10.5px; color: var(--c-muted-2); font-family: var(--font); }
.irbtc-chg { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12px; }
.irbtc-chg-up { color: var(--up); }
.irbtc-chg-down { color: var(--down); }
.irbtc-chg-flat { color: var(--muted); }
.irbtc-tape .irbtc-chg-flat { color: var(--c-muted); }

/* ---------------------------------------------------------------------
 * Chips / badges
 * ------------------------------------------------------------------- */

.irbtc-chip {
	display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
	border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--fg-2);
	background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: all 0.15s ease;
}
.irbtc-chip:hover { color: var(--primary); box-shadow: inset 0 0 0 1px rgba(83, 103, 255, 0.5); background: rgba(83, 103, 255, 0.1); }
.irbtc-chip small { font-size: 10.5px; color: var(--muted-2); }
.irbtc-chip-primary { color: var(--primary); background: rgba(83, 103, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(83, 103, 255, 0.35); }
/* Gold-on-text needs a darker set of stops to stay legible on white. */
.irbtc-chip-coin { background-image: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; box-shadow: inset 0 0 0 1px rgba(245, 194, 66, 0.3); }
.irbtc-chip-coin:hover { box-shadow: inset 0 0 0 1px rgba(245, 194, 66, 0.6); }
:root[data-theme="light"] .irbtc-chip-coin { background-image: linear-gradient(135deg, #B8860B 0%, #A9750A 50%, #6B4508 100%); box-shadow: inset 0 0 0 1px rgba(169, 117, 10, 0.35); }
:root[data-theme="light"] .irbtc-nav-gold { background-image: var(--gold); }

.irbtc-sentiment { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.irbtc-sentiment-bullish { color: var(--up); background: rgba(16, 185, 129, 0.12); }
.irbtc-sentiment-bearish { color: var(--down); background: rgba(239, 68, 68, 0.12); }
.irbtc-sentiment-neutral { color: var(--muted); background: var(--glass-2); }
:root[data-theme="light"] .irbtc-sentiment-bullish { color: #05603A; background: #E3F7EE; }
:root[data-theme="light"] .irbtc-sentiment-bearish { color: #A3231D; background: #FDEAE8; }
:root[data-theme="light"] .irbtc-chg-up { color: #05865C; }
:root[data-theme="light"] .irbtc-chg-down { color: #C22B22; }
.irbtc-ticker-tag { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; }

.irbtc-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.irbtc-dot { width: 3px; height: 3px; border-radius: 999px; background: var(--muted-2); }

/* ---------------------------------------------------------------------
 * Landing hero
 *
 * Deliberately part of the dark chrome family (like the header, tape and
 * footer) rather than the flipping content surface: it sits directly
 * under the tape, and the brand reads the same in either theme.
 *
 * Composition: editorial claim → coin arc (a selector) → one live toman
 * price for the selected coin → actions. The number is the thesis: this
 * blog is priced in the same toman the exchange trades at.
 * ------------------------------------------------------------------- */

.irbtc-hero {
	position: relative;
	overflow: hidden;
	background-color: var(--c-surface-base);
	background-image: var(--c-surface);
	color: var(--c-fg);
	border-bottom: 1px solid var(--c-line);
}

.irbtc-hero-bg { position: absolute; inset: 0; pointer-events: none; }
/* One brand-coloured glow, sitting behind the arc's centre. */
.irbtc-hero-orb {
	position: absolute; left: 50%; top: 42%;
	width: clamp(360px, 60vw, 760px); height: clamp(360px, 60vw, 760px);
	transform: translate(-50%, -50%);
	border-radius: 999px; filter: blur(110px);
	background: radial-gradient(closest-side, rgba(83, 103, 255, 0.28), rgba(83, 103, 255, 0) 70%);
}
/* Faint constellation field, drawn rather than shipped as an image. */
.irbtc-hero-grid {
	position: absolute; inset: 0; opacity: 0.5;
	background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
	background-size: 34px 34px;
	mask-image: radial-gradient(120% 80% at 50% 30%, #000 20%, transparent 72%);
	-webkit-mask-image: radial-gradient(120% 80% at 50% 30%, #000 20%, transparent 72%);
}

.irbtc-hero-inner {
	position: relative;
	display: flex; flex-direction: column; align-items: center; text-align: center;
	padding-block: clamp(36px, 7vw, 72px) clamp(28px, 5vw, 48px);
}

.irbtc-hero-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12px; font-weight: 600; color: var(--c-muted);
	margin: 0 0 14px;
}
.irbtc-hero-eyebrow::before {
	content: ""; width: 6px; height: 6px; border-radius: 999px;
	background: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Brand headline: one heavy line of Vazirmatn. */
.irbtc-hero-title {
	display: flex; flex-direction: column; align-items: center;
	font-size: clamp(32px, 6.4vw, 66px);
	line-height: 1.35;
	color: #fff;
	margin: 0;
	unicode-bidi: plaintext;
}
.irbtc-hero-title-bold  { font-weight: 900; }
.irbtc-hero-sub {
	margin-top: 14px;
	font-size: clamp(14px, 1.9vw, 17px);
	line-height: 1.9;
	color: rgba(255, 255, 255, 0.58);
	max-width: 640px;
}

/* Coin arc. --i is the distance from the centre (0 = BTC), so size and
   lift are derived from one variable instead of nine hand-written rules. */
.irbtc-hero-coins {
	position: relative;
	display: flex; align-items: center; justify-content: center;
	margin-top: clamp(26px, 4.5vw, 46px);
	direction: ltr;
	/* Break out of .irbtc-container so the row spans the viewport. Safe
	   because .irbtc-hero clips its overflow. */
	width: 100vw;
	margin-inline: calc(50% - 50vw);
	padding-block: clamp(14px, 2.5vw, 30px);
}

/* Frosted band behind the coins: blur only, no tint — it softens the dot
   field showing through without adding colour of its own. */
.irbtc-hero-coins::before {
	content: "";
	position: absolute; inset: 0;
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	/* Radial, so the band dissolves on both axes — a linear fade left a
	   visible horizontal edge above and below the row. */
	mask-image: radial-gradient(68% 108% at 50% 50%, #000 30%, transparent 76%);
	-webkit-mask-image: radial-gradient(68% 108% at 50% 50%, #000 30%, transparent 76%);
	pointer-events: none;
}
.irbtc-hero-coin {
	--size: calc(clamp(52px, 12vw, 150px) - var(--i) * clamp(3px, 0.6vw, 9px));
	--lift: calc(var(--i) * clamp(3px, 0.7vw, 9px));
	width: var(--size); height: var(--size);
	display: grid; place-items: center;
	padding: 0; border: 0; background: none; cursor: pointer;
	border-radius: 999px;
	/* Each coin SVG is already a full-bleed brand disc, so the mark fills
	   the circle instead of sitting on a chip. The ring keeps the dark
	   discs (ADA #0D1E30, XRP #23292F) from melting into the hero. */
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.10), 0 14px 30px rgba(0, 0, 0, 0.5);
	transform: translateY(var(--lift));
	/* Overlap, with the centre coin stacked on top of its neighbours. */
	margin-inline: calc(clamp(6px, 1.4vw, 18px) * -1);
	z-index: calc(10 - var(--i));
	position: relative;
	opacity: 0.78;
	transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
	-webkit-tap-highlight-color: transparent;
}
.irbtc-hero-coin img { width: 100%; height: 100%; border-radius: 999px; display: block; }
.irbtc-hero-coin:hover,
.irbtc-hero-coin:focus-visible { opacity: 1; transform: translateY(calc(var(--lift) - 6px)); }
.irbtc-hero-coin:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
/* The selected coin: full colour, lifted, with the brand ring. The
   selection is stacked above everything so its ring is never clipped. */
.irbtc-hero-coin.is-active {
	opacity: 1;
	z-index: 20;
	transform: translateY(calc(var(--lift) - 8px));
	box-shadow: 0 0 0 3px var(--c-surface-base), 0 0 0 5px var(--primary), 0 18px 40px rgba(83, 103, 255, 0.35);
}

/* Live readout. Type on the ground, no card: the number is the object. */
.irbtc-hero-readout {
	margin-top: clamp(8px, 2vw, 18px);
	display: flex; flex-direction: column; align-items: center;
	transition: opacity 0.18s ease, transform 0.18s ease;
}
.irbtc-hero-readout.is-swapping { opacity: 0; transform: translateY(6px); }
.irbtc-hero-readout p { margin: 0; }
.irbtc-hero-readout-coin { display: inline-flex; align-items: baseline; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.irbtc-hero-readout-name { font-weight: 600; }
.irbtc-hero-readout-sym { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--c-muted-2); }
.irbtc-hero-price {
	margin-top: 4px !important;
	display: inline-flex; align-items: baseline; gap: 12px;
	color: #fff;
}
.irbtc-hero-price-num {
	font-size: clamp(30px, 8vw, 64px);
	font-weight: 800;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em; /* Latin digits only — never on Persian text */
	unicode-bidi: isolate;
}
.irbtc-hero-price-unit { font-size: clamp(13px, 1.8vw, 18px); font-weight: 500; color: var(--c-muted); }
.irbtc-hero-readout-meta {
	margin-top: 10px !important;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px;
	font-size: 12.5px; color: var(--c-muted);
}
.irbtc-hero-change b { font-variant-numeric: tabular-nums; font-weight: 700; unicode-bidi: isolate; }
.irbtc-hero-change.is-up b { color: var(--up); }
.irbtc-hero-change.is-down b { color: var(--down); }
.irbtc-hero-change.is-flat b { color: var(--c-muted); }

.irbtc-hero-actions {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px;
	margin-top: clamp(24px, 4vw, 36px);
}
.irbtc-hero-cta { height: 46px; width: auto; padding: 0 26px; font-size: 14px; }
.irbtc-hero-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.72); }
.irbtc-hero-link:hover { color: #fff; }
.irbtc-hero-link-coin { color: #fff; }
.irbtc-hero-link-arrow { display: inline-block; transition: transform 0.15s ease; }
.irbtc-hero-link:hover .irbtc-hero-link-arrow { transform: translateX(-3px); }

@media (prefers-reduced-motion: reduce) {
	.irbtc-hero-coin, .irbtc-hero-readout, .irbtc-hero-link-arrow { transition: none; }
	.irbtc-hero-coin:hover, .irbtc-hero-coin:focus-visible { transform: translateY(var(--lift)); }
	.irbtc-hero-coin.is-active { transform: translateY(calc(var(--lift) - 8px)); }
	.irbtc-hero-readout.is-swapping { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------
 * Home: lead story + supporting + filters
 * ------------------------------------------------------------------- */

.irbtc-home { padding-block: 28px 64px; }

.irbtc-lead {
	display: grid; gap: 22px; margin-bottom: 18px;
	border-radius: var(--r-xl); overflow: hidden; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line);
}
@media (min-width: 900px) { .irbtc-lead { grid-template-columns: 1.15fr 1fr; align-items: stretch; } }
.irbtc-lead-media { position: relative; min-height: 240px; background: var(--panel-2); }
@media (min-width: 900px) { .irbtc-lead-media { min-height: 420px; } }
.irbtc-lead-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.irbtc-lead-body { display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 26px; }
@media (min-width: 900px) { .irbtc-lead-body { padding: 36px 32px 36px 32px; justify-content: center; } }
.irbtc-lead-title { font-size: clamp(22px, 3.2vw, 34px); line-height: 1.4; }
.irbtc-lead-title a:hover { color: var(--primary); }
.irbtc-lead-deck { color: var(--muted); font-size: 14.5px; line-height: 1.9; }
.irbtc-lead-more { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 600; font-size: 14px; margin-top: 4px; }
.irbtc-lead-more svg { transition: transform 0.15s ease; }
.irbtc-lead-more:hover svg { transform: translateX(-4px); }

.irbtc-support { display: grid; gap: 14px; margin-bottom: 32px; }
@media (min-width: 720px) { .irbtc-support { grid-template-columns: 1fr 1fr; } }

.irbtc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }

/* ---------------------------------------------------------------------
 * Cards
 * ------------------------------------------------------------------- */

.irbtc-card {
	position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
	background: var(--glass); box-shadow: inset 0 0 0 1px var(--line);
	transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.irbtc-card:hover { background: var(--glass-2); box-shadow: inset 0 0 0 1px rgba(83, 103, 255, 0.35), var(--shadow-card); transform: translateY(-2px); }
.irbtc-card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--panel-2); overflow: hidden; }
.irbtc-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.irbtc-card:hover .irbtc-card-media img { transform: scale(1.04); }
.irbtc-card-placeholder {
	position: absolute; inset: 0; display: grid; place-items: center;
	font-size: 34px; font-weight: 800; letter-spacing: 0.08em; color: var(--placeholder-ink);
	background: radial-gradient(120% 90% at 80% 0%, rgba(83, 103, 255, 0.22), transparent 60%), var(--panel-2);
}
.irbtc-card-placeholder i { width: 44px; height: 44px; border-radius: 999px; background: rgba(83, 103, 255, 0.2); box-shadow: 0 0 0 10px rgba(83, 103, 255, 0.06); }
.irbtc-card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 18px; }
.irbtc-card-title { font-size: 16px; line-height: 1.55; font-weight: 700; }
.irbtc-card-title a:hover { color: var(--primary); }
.irbtc-card-excerpt { color: var(--muted); font-size: 13.5px; line-height: 1.85; }
.irbtc-card-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted-2); margin-top: auto; }

.irbtc-card-wide { flex-direction: row; }
.irbtc-card-wide .irbtc-card-media { width: 42%; aspect-ratio: auto; min-height: 150px; }
.irbtc-card-wide .irbtc-card-body { flex: 1; }
@media (max-width: 520px) { .irbtc-card-wide { flex-direction: column; } .irbtc-card-wide .irbtc-card-media { width: 100%; aspect-ratio: 16 / 10; } }

.irbtc-list { display: flex; flex-direction: column; gap: 14px; }
.irbtc-card-list { flex-direction: row; align-items: stretch; }
.irbtc-card-list .irbtc-card-media { width: 220px; aspect-ratio: auto; min-height: 150px; flex-shrink: 0; }
.irbtc-card-list .irbtc-card-body { flex: 1; padding: 16px 18px; }
@media (max-width: 640px) { .irbtc-card-list { flex-direction: column; } .irbtc-card-list .irbtc-card-media { width: 100%; aspect-ratio: 16 / 10; } }

.irbtc-grid-3 { display: grid; gap: 14px; }
@media (min-width: 720px) { .irbtc-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.irbtc-more {
	display: flex; align-items: center; justify-content: center; height: 46px; margin-top: 22px;
	border-radius: var(--r); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); font-weight: 600; font-size: 14px;
	transition: all 0.15s ease;
}
.irbtc-more:hover { color: var(--primary); box-shadow: inset 0 0 0 1px rgba(83, 103, 255, 0.5); }

/* ---------------------------------------------------------------------
 * Layout with sticky side
 * ------------------------------------------------------------------- */

.irbtc-layout { display: grid; gap: 28px; }
@media (min-width: 992px) { .irbtc-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.irbtc-side { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 992px) { .irbtc-side { position: sticky; top: 92px; } }

.irbtc-panel { padding: 18px 16px 20px; border-radius: var(--r-lg); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.irbtc-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.irbtc-panel-head h3 { font-size: 15px; }
.irbtc-panel-head a { font-size: 12px; color: var(--primary); }
.irbtc-panel-kicker { font-size: 11.5px; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.irbtc-panel-cta { background: radial-gradient(120% 120% at 100% 0%, rgba(83, 103, 255, 0.22), transparent 55%), var(--glass); }
.irbtc-panel-cta h3 { font-size: 17px; margin-bottom: 8px; }
.irbtc-panel-cta p { color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------------
 * App download CTA
 *
 * A content-surface panel, not chrome: it uses the same tokens as the
 * cards around it (so it flips with the light theme) and the same
 * primary tint as the sidebar CTA. The phone is anchored to the bottom
 * edge and cropped by the panel, which keeps the block short.
 * ------------------------------------------------------------------- */

.irbtc-app {
	position: relative; overflow: hidden;
	margin-top: 40px;
	display: grid; gap: 24px; align-items: end;
	padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 48px) 0;
	border-radius: var(--r-xl);
	background:
		radial-gradient(110% 120% at 100% 0%, rgba(83, 103, 255, 0.20), transparent 55%),
		var(--glass);
	box-shadow: inset 0 0 0 1px var(--line);
	color: var(--fg);
	text-align: center;
}
.irbtc-app-glow { display: none; }
.irbtc-app-copy { position: relative; display: flex; flex-direction: column; align-items: center; padding-bottom: clamp(24px, 4vw, 44px); }
.irbtc-app-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin: 0;
	font-size: 11.5px; font-weight: 600; color: var(--primary);
}
.irbtc-app-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.irbtc-app-title { margin-top: 10px; max-width: 420px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.5; font-weight: 800; text-wrap: balance; }
.irbtc-app-title strong { font-weight: 800; color: var(--primary); }
.irbtc-app-desc { margin: 10px 0 0; max-width: 420px; font-size: 13.5px; line-height: 1.9; color: var(--muted); }

.irbtc-app-stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.irbtc-app-store {
	display: inline-flex; align-items: center; gap: 8px;
	height: 42px; padding: 0 16px; border-radius: var(--r-sm);
	background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line-2);
	font-size: 13.5px; font-weight: 600; color: var(--fg-2);
	transition: box-shadow 0.15s ease, background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.irbtc-app-store img { width: 20px; height: 20px; display: block; }
.irbtc-app-store:hover { box-shadow: inset 0 0 0 1px var(--primary); color: var(--fg); transform: translateY(-1px); }
.irbtc-app-store.is-primary { background: var(--primary); box-shadow: var(--shadow-cta); color: #fff; font-weight: 700; }
.irbtc-app-store.is-primary img { filter: brightness(0) invert(1); }
.irbtc-app-store.is-primary:hover { background: rgba(83, 103, 255, 0.9); box-shadow: var(--shadow-cta); }
.irbtc-app-store:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.irbtc-app-qr {
	display: flex; align-items: center; justify-content: center; gap: 12px; text-align: start;
	margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
	width: 100%;
}
.irbtc-app-qr img { width: 56px; height: 56px; border-radius: var(--r-sm); background: #fff; padding: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.irbtc-app-qr p { margin: 0; line-height: 1.5; }
.irbtc-app-qr b { display: block; font-size: 13px; color: var(--fg); }
.irbtc-app-qr span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); max-width: 170px; }

/* Phone: the exchange's real app screenshot, anchored to the panel's
   bottom edge and cropped there, so the panel stays card-height. */
.irbtc-app-phone { position: relative; width: 100%; max-width: 210px; margin-inline: auto; margin-bottom: -60px; }
.irbtc-app-phone-frame {
	position: relative; overflow: hidden; transform: rotate(-3deg);
	aspect-ratio: 1 / 1.6;
	border-radius: 32px; border: 5px solid var(--panel-2); background: var(--panel);
	box-shadow: 0 0 0 1px var(--line-2), var(--shadow-card), 0 0 60px var(--primary-glow);
}
.irbtc-app-phone-island { position: absolute; left: 50%; top: 10px; z-index: 3; width: 64px; height: 20px; transform: translateX(-50%); border-radius: 12px; background: #000; }
.irbtc-app-phone-frame img { width: 100%; height: auto; display: block; }

@media (min-width: 900px) {
	.irbtc-app { grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; text-align: start; }
	.irbtc-app-copy { align-items: flex-start; }
	.irbtc-app-stores, .irbtc-app-qr { justify-content: flex-start; }
	.irbtc-app-phone { max-width: 230px; margin-bottom: -80px; margin-inline-start: auto; margin-inline-end: 0; }
}
@media (prefers-reduced-motion: reduce) { .irbtc-app-store { transition: none; } }

/* Market table (sidebar) — the exchange's prices table, condensed */
.irbtc-market-list { display: flex; flex-direction: column; }
.irbtc-market-row {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
	padding: 10px 0; border-bottom: 1px solid var(--line);
}
.irbtc-market-row:last-child { border-bottom: 0; }
.irbtc-market-row.is-highlight { margin-inline: -10px; padding-inline: 10px; border-radius: var(--r-sm); background: rgba(83, 103, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(83, 103, 255, 0.3); }
.irbtc-market-row img { width: 30px; height: 30px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line-2); }
.irbtc-market-blank { width: 30px; height: 30px; border-radius: 999px; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.irbtc-market-name { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.irbtc-market-name b { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.irbtc-market-name span { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.irbtc-market-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.irbtc-market-price b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.irbtc-market-price b small { font-size: 10.5px; color: var(--muted); font-weight: 400; margin-inline-start: 3px; }
.irbtc-market-updated { font-size: 11px; color: var(--muted-2); margin-top: 10px; text-align: end; }

/* Price-at-publish widget (lead + single) */
.irbtc-price {
	display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center;
	padding: 14px 16px; border-radius: var(--r); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line);
	margin: 4px 0 22px;
}
.irbtc-price img { width: 40px; height: 40px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line-2); grid-row: span 2; }
.irbtc-price-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.irbtc-price-now { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.irbtc-price-now small { font-size: 11px; color: var(--muted); font-weight: 400; margin-inline-start: 4px; }
.irbtc-price-since { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.irbtc-price-since b { font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.irbtc-price-large { padding: 18px 20px; }
.irbtc-price-large .irbtc-price-now { font-size: 24px; }

/* ---------------------------------------------------------------------
 * Article
 * ------------------------------------------------------------------- */

.irbtc-progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 70; background: var(--primary); transform-origin: right; transform: scaleX(0); }
.irbtc-single, .irbtc-page-single, .irbtc-archive { padding-block: 28px 64px; }
.irbtc-article-head { max-width: 860px; margin: 0 auto 26px; display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; }
.irbtc-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted-2); }
.irbtc-crumbs a:hover { color: var(--primary); }
.irbtc-crumbs > * + *::before { content: "‹"; margin-inline-end: 6px; color: var(--muted-2); }
.irbtc-article-title { font-size: clamp(24px, 3.6vw, 40px); line-height: 1.4; }
.irbtc-article-deck { color: var(--muted); font-size: 16px; line-height: 1.9; max-width: 720px; }
.irbtc-byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.irbtc-byline > div { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.irbtc-avatar { width: 36px; height: 36px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line-2); }
.irbtc-byline-name { color: var(--fg); font-weight: 700; font-size: 13.5px; }
.irbtc-byline-name:hover { color: var(--primary); }
.irbtc-byline-creds { font-size: 11.5px; color: var(--muted); }
.irbtc-byline-sep { width: 1px; height: 16px; background: var(--line-2); }
.irbtc-article-hero { margin: 0 0 28px; border-radius: var(--r-xl); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); aspect-ratio: 16 / 8; background: var(--panel-2); }
.irbtc-article-hero img { width: 100%; height: 100%; object-fit: cover; }
.irbtc-layout-article { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .irbtc-layout-article { grid-template-columns: minmax(0, 1fr) 320px; } }
.irbtc-article-narrow .irbtc-article-body { max-width: 760px; margin: 0 auto; }

.irbtc-prose { font-size: 16.5px; line-height: 2; color: var(--fg-2); }
.irbtc-prose > * + * { margin-top: 1.1em; }
.irbtc-prose h2 { font-size: 24px; margin-top: 2em; color: var(--fg); }
.irbtc-prose h3 { font-size: 19px; margin-top: 1.6em; color: var(--fg); }
.irbtc-prose h2::before { content: ""; display: inline-block; width: 4px; height: 0.9em; margin-inline-end: 10px; vertical-align: -0.1em; border-radius: 2px; background: var(--primary); }
.irbtc-prose a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(83, 103, 255, 0.4); text-underline-offset: 3px; }
.irbtc-prose a:hover { text-decoration-color: var(--primary); }
.irbtc-prose a.irbtc-price { text-decoration: none; color: inherit; }
.irbtc-prose a.irbtc-price:hover { box-shadow: inset 0 0 0 1px rgba(83, 103, 255, 0.35); }
.irbtc-prose ul, .irbtc-prose ol { padding-inline-start: 1.4em; }
.irbtc-prose ul { list-style: disc; }
.irbtc-prose ol { list-style: persian; }
.irbtc-prose li + li { margin-top: 0.4em; }
.irbtc-prose blockquote { margin: 1.6em 0; padding: 14px 18px; border-inline-start: 3px solid var(--primary); border-radius: var(--r); border-start-start-radius: 0; border-end-start-radius: 0; background: var(--glass-2); color: var(--fg); }
.irbtc-prose img, .irbtc-prose figure { border-radius: var(--r); overflow: hidden; }
.irbtc-prose figcaption { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 8px; }
.irbtc-prose table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.irbtc-prose th, .irbtc-prose td { padding: 10px 12px; border: 1px solid var(--line-2); text-align: start; }
.irbtc-prose th { background: var(--glass-2); color: var(--fg); }
.irbtc-prose pre, .irbtc-prose code { direction: ltr; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.irbtc-prose pre { padding: 14px; border-radius: var(--r); background: var(--code-bg); color: var(--fg-2); overflow: auto; }
.irbtc-prose code { padding: 2px 6px; border-radius: 4px; background: var(--code-bg); }
.irbtc-prose iframe { max-width: 100%; border-radius: var(--r); }
.irbtc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2em; }

/* Plugin trust box + disclaimer, themed */
.irbtc-trust-box { margin-top: 2.2em !important; padding: 16px 18px !important; border-inline-start: 3px solid var(--primary) !important; border-radius: var(--r) !important; border-start-start-radius: 0 !important; border-end-start-radius: 0 !important; background: var(--glass-2) !important; color: var(--fg-2); font-size: 14px; }
.irbtc-trust-box strong { color: var(--fg); font-size: 15px; }
.irbtc-trust-box em { color: var(--muted); font-style: normal; font-size: 12.5px; }
.irbtc-disclaimer { margin: 1.4em 0 !important; padding: 14px 16px !important; border-radius: var(--r) !important; background: var(--warn-bg) !important; border: 1px solid var(--warn-line) !important; color: var(--fg-2) !important; font-size: 13px !important; line-height: 1.9; }

/* ---------------------------------------------------------------------
 * Comments
 * ------------------------------------------------------------------- */

.irbtc-article-main { min-width: 0; }
.irbtc-comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }

.irbtc-comments-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.irbtc-comments-head h2 { font-size: 20px; }
.irbtc-comments-jump { font-size: 13px; font-weight: 600; color: var(--primary); }
.irbtc-comments-empty { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* Thread */
.irbtc-comment-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.irbtc-comment-list .children {
	list-style: none; margin: 12px 0 0; padding: 0;
	display: flex; flex-direction: column; gap: 12px;
	/* Indent + connector on the inline-start side so replies mirror in RTL. */
	padding-inline-start: clamp(14px, 3.5vw, 30px);
	border-inline-start: 2px solid var(--line);
}

.irbtc-comment-body {
	display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px;
	padding: 16px 18px; border-radius: var(--r-lg);
	background: var(--glass); box-shadow: inset 0 0 0 1px var(--line);
	transition: box-shadow 0.15s ease;
}
.irbtc-comment-body:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.irbtc-comment.is-author > .irbtc-comment-body { background: rgba(83, 103, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(83, 103, 255, 0.28); }
.irbtc-comment.is-pending > .irbtc-comment-body { border-inline-start: 3px solid var(--primary); }

.irbtc-comment-avatar { width: 44px; height: 44px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line-2); }
.irbtc-comment-main { min-width: 0; }

.irbtc-comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.irbtc-comment-author { font-weight: 700; font-size: 14.5px; }
.irbtc-comment-head time { font-size: 12px; color: var(--muted-2); }
.irbtc-comment-badge {
	font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
	color: var(--primary); background: rgba(83, 103, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(83, 103, 255, 0.3);
}
.irbtc-comment-pending { font-size: 12.5px; color: var(--primary); margin-bottom: 8px; }
.irbtc-comment-text { font-size: 14.5px; line-height: 1.95; color: var(--fg-2); unicode-bidi: plaintext; overflow-wrap: anywhere; }
.irbtc-comment-text p + p { margin-top: 0.8em; }
.irbtc-comment-text a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* Reply stays quiet until the row is touched, but never hides from keyboards. */
.irbtc-comment-actions { margin-top: 10px; }
.irbtc-comment-actions a, .comment-reply-link {
	display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
	border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted);
	box-shadow: inset 0 0 0 1px var(--line-2); transition: all 0.15s ease;
}
.irbtc-comment-body:hover .comment-reply-link,
.comment-reply-link:focus-visible { color: var(--primary); box-shadow: inset 0 0 0 1px rgba(83, 103, 255, 0.45); }

/* ---- Form ---- */

.irbtc-comments .comment-respond {
	padding: 22px; border-radius: var(--r-lg);
	background: var(--glass); box-shadow: inset 0 0 0 1px var(--line);
}
.irbtc-comments .comment-reply-title { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.irbtc-comments .comment-reply-title small { font-size: 12.5px; font-weight: 400; margin-inline-start: 8px; }
.irbtc-comments .comment-reply-title small a { color: var(--primary); }
.irbtc-comment-notes { font-size: 12.5px; line-height: 1.9; color: var(--muted); margin-bottom: 18px; }

/* Two columns for name/email, one for everything else. WordPress emits the
   fields as flat siblings, so the grid lives on the form itself. */
.irbtc-comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.irbtc-comment-form > * { grid-column: 1 / -1; }
.irbtc-comment-form .irbtc-field-half { grid-column: auto; }
@media (max-width: 560px) { .irbtc-comment-form .irbtc-field-half { grid-column: 1 / -1; } }

.irbtc-field { display: flex; flex-direction: column; gap: 7px; margin: 0 0 16px; }
.irbtc-field label { font-size: 13px; font-weight: 600; color: var(--fg-2); }
.irbtc-req { color: var(--primary); }
.irbtc-field input, .irbtc-field textarea {
	width: 100%; padding: 12px 14px; border: 0; border-radius: var(--r);
	background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line-2);
	color: var(--fg); font: inherit; font-size: 14.5px; outline: none;
	unicode-bidi: plaintext; resize: vertical;
	transition: box-shadow 0.15s ease;
}
.irbtc-field input::placeholder, .irbtc-field textarea::placeholder { color: var(--muted-2); }
.irbtc-field input:focus, .irbtc-field textarea:focus { box-shadow: inset 0 0 0 2px var(--primary); }

.irbtc-comments .form-submit { margin: 4px 0 0; }
.irbtc-comments .submit {
	display: inline-flex; align-items: center; justify-content: center;
	height: 46px; padding: 0 30px; border: 0; border-radius: var(--r-sm);
	background: var(--primary); color: #fff; font: inherit; font-weight: 700;
	cursor: pointer; box-shadow: var(--shadow-cta); transition: background 0.15s ease, transform 0.15s ease;
}
.irbtc-comments .submit:hover { background: var(--primary-deep); transform: translateY(-1px); }
.irbtc-comments .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 16px; font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.irbtc-comments .comment-form-cookies-consent input { width: auto; margin-top: 4px; accent-color: var(--primary); }
.irbtc-comments .logged-in-as, .irbtc-comments .must-log-in { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.irbtc-comments .logged-in-as a, .irbtc-comments .must-log-in a { color: var(--primary); }

.irbtc-related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------------
 * Archive / search / 404 / empty
 * ------------------------------------------------------------------- */

.irbtc-archive-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.irbtc-archive-title { font-size: clamp(24px, 3vw, 32px); }
.irbtc-archive-desc { color: var(--muted); max-width: 680px; }
.irbtc-archive-count { font-size: 12.5px; color: var(--muted-2); }

.irbtc-search { display: flex; align-items: center; gap: 10px; max-width: 560px; height: 50px; padding: 0 6px 0 14px; border-radius: var(--r); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); }
.irbtc-search:focus-within { box-shadow: inset 0 0 0 1px var(--primary); }
.irbtc-search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--fg); font: inherit; outline: none; unicode-bidi: plaintext; }
.irbtc-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.irbtc-search input::placeholder { color: var(--muted-2); }
.irbtc-search button { height: 38px; padding: 0 16px; border: 0; border-radius: var(--r-sm); background: var(--primary); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

.irbtc-pagination { margin-top: 26px; }
.irbtc-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.irbtc-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: var(--r-sm); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg-2); font-size: 13px; }
.irbtc-pagination .page-numbers.current { background: var(--primary); color: #fff; box-shadow: var(--shadow-cta); }
.irbtc-pagination .page-numbers:hover:not(.current) { color: var(--primary); box-shadow: inset 0 0 0 1px rgba(83, 103, 255, 0.5); }
.irbtc-pagination .screen-reader-text { position: absolute; clip: rect(0 0 0 0); }

.irbtc-empty { padding: 48px 20px; text-align: center; border-radius: var(--r-xl); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.irbtc-empty h1, .irbtc-empty h2 { font-size: 22px; margin-bottom: 8px; }
.irbtc-empty p { color: var(--muted); }
.irbtc-empty .irbtc-more { max-width: 260px; margin-inline: auto; }

.irbtc-404 { padding-block: 60px 90px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.irbtc-404-code { font-size: clamp(72px, 14vw, 140px); font-weight: 900; line-height: 1; letter-spacing: -0.04em; background: linear-gradient(135deg, #5367FF, #9804c0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.irbtc-404 h1 { font-size: 24px; }
.irbtc-404 p { color: var(--muted); }
.irbtc-404 .irbtc-search { width: 100%; }
.irbtc-404 .irbtc-more { width: min(280px, 100%); }

/* ---------------------------------------------------------------------
 * Footer — always dark chrome, ported 1:1 from irbtc.app
 * ------------------------------------------------------------------- */

.irbtc-footer { position: relative; margin-top: 80px; overflow: hidden; background-color: var(--c-surface-base); background-image: var(--c-surface); color: var(--c-fg); }
.irbtc-footer-bg { position: absolute; inset: 0; pointer-events: none; }
.irbtc-orb { position: absolute; border-radius: 999px; filter: blur(90px); }
.irbtc-orb-1 { top: -90px; right: 14%; width: 280px; height: 280px; background: var(--primary); opacity: 0.14; }
.irbtc-orb-2 { bottom: -110px; left: 10%; width: 300px; height: 300px; background: #2f6df0; opacity: 0.12; filter: blur(95px); }
.irbtc-orb-3 { left: 42%; top: 35%; width: 220px; height: 220px; background: #7f77dd; opacity: 0.08; filter: blur(85px); }
.irbtc-footer-panel { position: relative; border-top: 1px solid var(--c-line); background: var(--c-glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); padding: 40px 0 24px; }
.irbtc-footer-grid { display: grid; gap: 32px; padding-bottom: 32px; }
@media (min-width: 768px) { .irbtc-footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; } }
/* footer-logo.svg is a 1126×647 stacked mark, not the 253×32 wordmark —
   give it real height instead of the app's squashed 100×20 box. */
.irbtc-footer-brand img { height: 44px; width: auto; margin-bottom: 16px; }
.irbtc-footer-brand p { max-width: 270px; font-size: 13.5px; line-height: 2; color: rgba(255, 255, 255, 0.46); margin-bottom: 16px; }
.irbtc-status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(83, 103, 255, 0.25); background: rgba(83, 103, 255, 0.1); font-size: 11.5px; font-weight: 500; color: rgba(83, 103, 255, 0.9); }
.irbtc-status-pill i { width: 7px; height: 7px; border-radius: 999px; background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.irbtc-footer-col h4 { font-size: 13.5px; font-weight: 500; margin-bottom: 16px; color: var(--c-fg); }
.irbtc-footer-col a { display: block; padding: 6px 0; font-size: 13px; color: rgba(255, 255, 255, 0.5); transition: color 0.15s ease; }
.irbtc-footer-col a:hover { color: var(--primary); }
.irbtc-badge { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 24px; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--c-line); background: var(--c-glass); }
.irbtc-badge img { width: 40px; height: 40px; }
.irbtc-badge p { font-size: 12.5px; font-weight: 500; color: var(--c-fg); }
.irbtc-badge-sub { font-size: 11px !important; font-weight: 400 !important; color: rgba(255, 255, 255, 0.42) !important; }
.irbtc-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.irbtc-social { display: flex; gap: 10px; }
.irbtc-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); transition: all 0.15s ease; }
.irbtc-social a:hover { border-color: rgba(83, 103, 255, 0.3); background: rgba(83, 103, 255, 0.1); }
.irbtc-social img { width: 17px; height: 17px; }
.irbtc-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 12.5px; }
.irbtc-legal a { color: rgba(255, 255, 255, 0.46); }
.irbtc-legal a:hover { color: var(--primary); }
.irbtc-legal p { color: rgba(255, 255, 255, 0.34); }

/* WP admin bar offset */
.admin-bar .irbtc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .irbtc-header { top: 46px; } }
