/* Crypto Prices — light mode, RTL, Persian */
/* Font is inherited from the active theme. */

.nbx-page {
	background: #f6f7fb;
	padding: 3rem 0;
	min-height: 60vh;
	color: #1f2937;
	direction: rtl;
}

.nbx-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* ===== Header ===== */
.nbx-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 1.75rem;
	flex-wrap: wrap;
}
.nbx-header-right { text-align: right; }
.nbx-header h1 {
	font-size: 2rem;
	font-weight: 500;
	margin: 0;
	color: #0f172a;
	letter-spacing: -0.01em;
}
.nbx-sub {
	margin: 6px 0 0;
	color: #6b7280;
	font-size: 14px;
	font-weight: 400;
}

/* ===== Toggle (IRT / USDT) ===== */
.nbx-toggle {
	display: inline-flex;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 5px;
	gap: 2px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.nbx-toggle-btn {
	background: transparent;
	border: 0;
	padding: 9px 26px;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
	cursor: pointer;
	transition: background-color .15s, color .15s, box-shadow .15s;
}
.nbx-toggle-btn:hover { color: #0f172a; }
.nbx-toggle-btn.is-active {
	background: #4f46e5;
	color: #ffffff;
	box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

/* ===== Empty / messages ===== */
.nbx-card-block {
	background: #ffffff;
	border-radius: 18px;
	padding: 3rem 1rem;
	text-align: center;
	color: #9ca3af;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.nbx-empty { color: #9ca3af; font-size: 15px; }

/* ===== Table ===== */
.nbx-table-wrap {
	background: #ffffff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 4px 24px -8px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
}
.nbx-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}
.nbx-table th,
.nbx-table td {
	padding: 18px 28px;
	text-align: right;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}
.nbx-table thead th {
	font-weight: 500;
	color: #94a3b8;
	font-size: 12px;
	background: #fafbff;
	padding-top: 16px;
	padding-bottom: 16px;
	letter-spacing: 0.02em;
}
.nbx-table tbody tr:last-child td { border-bottom: 0; }
.nbx-table tbody tr { transition: background-color .12s; }
.nbx-table tbody tr:hover { background: #fafbff; }
.nbx-num { text-align: left; font-variant-numeric: tabular-nums; }
.nbx-action { text-align: center; width: 180px; }

/* Coin cell */
.nbx-coin {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: inherit;
}
.nbx-coin:hover .nbx-coin-name { color: #4f46e5; }
.nbx-coin-text { display: inline-flex; gap: 8px; align-items: baseline; }
.nbx-coin-name { font-weight: 500; color: #0f172a; font-size: 15px; }
.nbx-coin-sym  { color: #94a3b8; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; }
.nbx-icon {
	width: 36px; height: 36px;
	border-radius: 50%;
	object-fit: cover;
	display: inline-flex;
	align-items: center; justify-content: center;
	background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
	color: #4f46e5;
	font-weight: 500;
	font-size: 14px;
	flex-shrink: 0;
}
.nbx-icon-placeholder { line-height: 1; }
.nbx-icon-lg {
	width: 64px; height: 64px;
	font-size: 24px;
}

/* Multi-column table tweaks */
.nbx-table-multi th,
.nbx-table-multi td { padding: 16px 18px; }
.nbx-table-multi .nbx-th-coin { text-align: right; }
.nbx-table-multi .nbx-td-coin { min-width: 180px; }

.nbx-coin-text-block { display: inline-flex; flex-direction: column; gap: 2px; }
.nbx-coin-text-block .nbx-coin-name { font-size: 14px; }
.nbx-coin-text-block .nbx-coin-sym  { font-size: 12px; margin: 0; }

/* Buy/Sell stacked cell */
.nbx-buysell {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-start;
	text-align: left;
	font-variant-numeric: tabular-nums;
}
.nbx-buysell-row {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	font-size: 13px;
}
.nbx-buysell-label {
	color: #94a3b8;
	font-size: 11px;
	font-weight: 500;
}
.nbx-buysell-val {
	font-weight: 500;
	color: #0f172a;
	padding: 2px 4px;
}
.nbx-buysell-val.nbx-buy  { color: #047857; }
.nbx-buysell-val.nbx-sell { color: #b91c1c; }

.nbx-volume-cell { color: #475569; font-weight: 500; }

/* Price + change cells */
.nbx-price {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 6px;
	transition: background-color .4s ease;
	font-weight: 500;
	color: #0f172a;
	font-size: 15px;
}
.nbx-up   { background: rgba(16,185,129,.16); color: #047857; }
.nbx-down { background: rgba(239,68,68,.16); color: #b91c1c; }

.nbx-change {
	display: inline-block;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	font-size: 14px;
	padding: 2px 8px;
	border-radius: 6px;
}
.nbx-change.nbx-neg { color: #dc2626; background: rgba(239, 68, 68, 0.10); }
.nbx-change.nbx-pos { color: #059669; background: rgba(16, 185, 129, 0.10); }

/* View button */
.nbx-view-btn {
	display: inline-block;
	padding: 10px 34px;
	border: 1.5px solid #4f46e5;
	border-radius: 10px;
	color: #4f46e5;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	background: transparent;
	transition: all .15s;
}
.nbx-view-btn:hover {
	background: #4f46e5;
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* ===== Single coin page ===== */
.nbx-single { padding: 3rem 0; }

.nbx-single-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 2rem;
	flex-wrap: wrap;
}

.nbx-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #ffffff;
	color: #4f46e5;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: all .15s;
	white-space: nowrap;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.nbx-back-btn:hover {
	background: #4f46e5;
	color: #ffffff;
	border-color: #4f46e5;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}
.nbx-back-btn svg { flex-shrink: 0; }

.nbx-hero {
	display: flex;
	align-items: center;
	gap: 18px;
}
.nbx-hero h1 {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 500;
	color: #0f172a;
}
.nbx-hero .nbx-sub {
	margin: 4px 0 0;
	color: #6b7280;
	font-size: 14px;
}

/* Chart section */
.nbx-chart-section { margin-bottom: 2rem; }
.nbx-chart-section h2,
.nbx-section-title {
	font-size: 1.25rem;
	font-weight: 500;
	color: #0f172a;
	margin: 0 0 1rem;
}
.nbx-chart-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 2px 12px -4px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
	overflow: hidden;
}
.nbx-chart-card .tradingview-widget-container { width: 100%; }

/* Books section */
.nbx-books { margin-bottom: 2rem; }
.nbx-books-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

/* Content section */
.nbx-content {
	background: #ffffff;
	border-radius: 16px;
	padding: 28px 32px;
	box-shadow: 0 2px 12px -4px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
	margin-bottom: 2rem;
}
.nbx-content h2 {
	font-size: 1.25rem;
	font-weight: 500;
	color: #0f172a;
	margin: 0 0 1rem;
}
.nbx-content-body { line-height: 1.85; color: #374151; font-size: 15px; }
.nbx-content-body h2,
.nbx-content-body h3 { margin-top: 1.5rem; color: #0f172a; }
.nbx-content-body p { margin: 0 0 1rem; }
.nbx-content-body a { color: #4f46e5; }
.nbx-content-body ul, .nbx-content-body ol { padding-right: 1.5rem; }

.nbx-price-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 2rem;
}
.nbx-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 24px 28px;
	box-shadow: 0 2px 12px -4px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}
.nbx-card-label { color: #94a3b8; font-size: 13px; margin-bottom: 10px; }
.nbx-card-value {
	font-size: 30px;
	font-weight: 500;
	color: #0f172a;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
}
.nbx-card-change { margin-top: 10px; font-size: 13px; color: #6b7280; font-variant-numeric: tabular-nums; }
.nbx-card-change.nbx-pos { color: #059669; }
.nbx-card-change.nbx-neg { color: #dc2626; }

.nbx-book-block {
	background: #ffffff;
	border-radius: 16px;
	padding: 22px 24px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.nbx-book-block h3 { margin: 0 0 16px; font-size: 15px; font-weight: 500; color: #0f172a; }
.nbx-book { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nbx-side h4 {
	margin: 0 0 8px;
	font-size: 11px;
	color: #94a3b8;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.nbx-side table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}
.nbx-side th, .nbx-side td { padding: 6px 8px; text-align: right; }
.nbx-side thead th { font-weight: 500; color: #94a3b8; border-bottom: 1px solid #f1f5f9; }
.nbx-bids td:first-child { color: #059669; }
.nbx-asks td:first-child { color: #dc2626; }

/* ===== Responsive ===== */
@media (max-width: 720px) {
	.nbx-page { padding: 2rem 0; }
	.nbx-header { flex-direction: column; align-items: flex-end; gap: 1rem; }
	.nbx-header h1 { font-size: 1.5rem; }
	.nbx-price-cards, .nbx-books-grid { grid-template-columns: 1fr; }
	.nbx-single-header { flex-direction: column-reverse; align-items: stretch; }
	.nbx-back-btn { align-self: flex-start; }
	.nbx-table th, .nbx-table td { padding: 14px 14px; }
	.nbx-table th:nth-child(3), .nbx-table td:nth-child(3) { display: none; }
	.nbx-action { width: auto; }
	.nbx-view-btn { padding: 8px 18px; }
}

/* ==========================================================================
   Coin detail page — magenta-accent design (.bz- prefix)
   ========================================================================== */

.bz-page {
	direction: rtl;
	color: #1B1322;
	background:
		radial-gradient(1100px 580px at 88% -10%, rgba(180,0,174,0.07), transparent 60%),
		radial-gradient(900px 500px at 0% -5%, rgba(180,0,174,0.04), transparent 55%),
		#FFFFFF;
	min-height: 100vh;
	padding: clamp(18px, 3vw, 30px) 0 70px;
}
.bz-wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 40px);
}

.bz-card {
	background: #fff;
	border: 1px solid #EEE9F2;
	border-radius: 22px;
	padding: clamp(20px, 3vw, 30px);
	box-shadow: 0 24px 50px -34px rgba(90,0,86,0.25);
}

/* Breadcrumb */
.bz-breadcrumb {
	display: flex; align-items: center; gap: 8px;
	color: #9A93A8; font-size: 13px; margin-bottom: 22px;
}
.bz-breadcrumb a { color: #9A93A8; text-decoration: none; }
.bz-breadcrumb a:hover { color: #B400AE; }
.bz-bc-current { color: #6E6680; }

/* Hero */
.bz-hero {
	display: flex; align-items: flex-start; justify-content: space-between;
	gap: 28px; flex-wrap: wrap;
}
.bz-hero-left, .bz-hero-right {
	display: flex; flex-direction: column; gap: 18px;
	min-width: 280px; flex: 1;
}
.bz-hero-id { display: flex; align-items: center; gap: 15px; }
.bz-coin-badge {
	width: 56px; height: 56px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 15px; font-weight: 500; color: #fff;
}
.bz-coin-icon-lg {
	width: 56px; height: 56px; border-radius: 50%;
	object-fit: contain;
	background: #FAF8FC;
	padding: 6px;
	border: 1px solid #F0ECF4;
	box-shadow: 0 8px 22px -6px rgba(180, 0, 174, 0.18);
	flex-shrink: 0;
}
.bz-coin-titlerow {
	display: flex; align-items: center; gap: 10px;
}
.bz-coin-titlerow h1 {
	margin: 0; font-size: clamp(22px, 3vw, 28px);
	font-weight: 500; color: #1B1322;
}
.bz-coin-tag {
	background: #F4F0F8; color: #6E6680;
	padding: 3px 9px; border-radius: 7px;
	font-size: 13px; font-weight: 500; direction: ltr;
}
.bz-coin-rank {
	color: #9A93A8; font-size: 13.5px; display: block; margin-top: 3px;
}
.bz-hero-price {
	display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
}
.bz-price-irt {
	font-size: clamp(30px, 5vw, 42px);
	font-weight: 500; line-height: 1; letter-spacing: -1px;
	font-variant-numeric: tabular-nums;
}
.bz-price-unit { font-size: 16px; color: #9A93A8; font-weight: 500; }
.bz-price-usd {
	color: #6E6680; font-size: 16px; font-weight: 500;
	margin-top: 8px; direction: ltr; text-align: right;
}
.bz-change-pill {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 7px 13px; border-radius: 11px;
	font-weight: 500; font-size: 16px; direction: ltr;
}
.bz-change-pill.nbx-up-pill   { background: rgba(14,159,110,0.12); color: #0E9F6E; }
.bz-change-pill.nbx-down-pill { background: rgba(224,50,46,0.1);  color: #E0322E; }
.bz-arrow { font-size: 13px; }

.bz-stats-grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.bz-stat-card {
	background: #FAF8FC; border: 1px solid #EEE9F2;
	border-radius: 13px; padding: 13px 15px;
}
.bz-stat-label {
	color: #9A93A8; font-size: 12.5px; margin-bottom: 6px;
}
.bz-stat-val {
	font-weight: 500; font-size: 15px;
	direction: ltr; text-align: right;
}

.bz-hero-cta { display: flex; gap: 10px; }
.bz-btn-buy, .bz-btn-sell {
	flex: 1; padding: 13px; border-radius: 13px;
	font-weight: 500; font-size: 15px; text-align: center;
	text-decoration: none; transition: transform .12s, box-shadow .12s;
}
.bz-btn-buy {
	background: linear-gradient(145deg, #15C57E, #0E9F6E);
	color: #fff; border: none;
	box-shadow: 0 8px 18px -8px rgba(14,159,110,0.6);
}
.bz-btn-sell {
	background: #fff; color: #E0322E;
	border: 1px solid rgba(224,50,46,0.4);
}
.bz-btn-buy:hover, .bz-btn-sell:hover { transform: translateY(-1px); }

/* Chart + Calculator row */
.bz-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.bz-chart-card  { flex: 2 1 480px; }
.bz-calc-card   { flex: 1 1 310px; display: flex; flex-direction: column; gap: 16px; }
.bz-card-header {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; flex-wrap: wrap;
}
.bz-card-title-row { display: flex; align-items: center; gap: 9px; }
.bz-card-title { font-weight: 500; font-size: 16px; }
.bz-card-sub   { color: #9A93A8; font-size: 13px; direction: ltr; }
.bz-chart-card .tradingview-widget-container { margin-top: 14px; }

/* Calculator */
.bz-calc-tabs {
	display: flex; background: #F7F4FB;
	border: 1px solid #E8E2EE; border-radius: 10px; padding: 3px;
}
.bz-calc-tab {
	background: transparent; color: #6E6680;
	border: none; padding: 6px 14px; border-radius: 7px;
	font-family: inherit; font-weight: 500; font-size: 13px;
	cursor: pointer;
}
.bz-calc-tab.is-active { background: #B400AE; color: #fff; }
.bz-calc-field {
	background: #FAF8FC; border: 1px solid #E8E2EE;
	border-radius: 14px; padding: 13px 15px;
}
.bz-calc-field-row {
	display: flex; align-items: center; justify-content: space-between;
	margin-bottom: 7px;
}
.bz-calc-field-label { color: #9A93A8; font-size: 12.5px; }
.bz-calc-field-unit {
	display: inline-flex; align-items: center; gap: 6px;
	font-weight: 500; font-size: 13px;
}
.bz-mini-badge {
	width: 20px; height: 20px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 8px; font-weight: 500; color: #fff;
}
.bz-calc-input {
	background: transparent; border: none; outline: none;
	color: #1B1322; font-size: 22px; font-weight: 500;
	width: 100%; direction: ltr; text-align: left;
	font-family: inherit;
}
.bz-calc-arrow {
	align-self: center;
	width: 34px; height: 34px; border-radius: 50%;
	background: #fff; border: 1px solid #E8E2EE;
	display: flex; align-items: center; justify-content: center;
	color: #B400AE; font-size: 16px;
	box-shadow: 0 4px 10px -4px rgba(180,0,174,0.3);
	margin: -6px 0;
	cursor: pointer;
	padding: 0;
	font-family: inherit;
	transition: transform .15s, box-shadow .15s, background-color .15s, color .15s;
}
.bz-calc-arrow:hover {
	background: #B400AE; color: #fff;
	transform: scale(1.08);
	box-shadow: 0 6px 14px -4px rgba(180,0,174,0.45);
}
.bz-calc-arrow:focus { outline: 2px solid rgba(180,0,174,0.35); outline-offset: 2px; }
.bz-calc-pretty { color: #A39BB0; font-size: 12.5px; margin-top: 6px; direction: rtl; text-align: right; }
.bz-calc-summary {
	border-top: 1px solid #F0ECF4; padding-top: 14px;
	display: flex; flex-direction: column; gap: 10px;
}
.bz-calc-summary > div {
	display: flex; justify-content: space-between; font-size: 13.5px;
}
.bz-calc-summary > div > span:first-child { color: #9A93A8; }
.bz-mono { font-weight: 500; font-variant-numeric: tabular-nums; }

/* Fear & Greed */
.bz-fng-card {
	margin-top: 18px;
	background: linear-gradient(165deg, #FCF1FB, #FFFFFF 55%);
	border-color: rgba(180,0,174,0.16);
	box-shadow: 0 18px 40px -32px rgba(180,0,174,0.25);
	display: flex; gap: 30px; align-items: center; flex-wrap: wrap;
}
.bz-fng-gauge { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; }
.bz-fng-classification {
	margin-top: 4px;
	padding: 6px 18px;
	border: 1px solid;
	border-radius: 999px;
	font-weight: 500; font-size: 15px;
}
.bz-fng-text { flex: 1; min-width: 260px; }
.bz-fng-text h2 { margin: 0 0 10px; font-size: 20px; font-weight: 500; }
.bz-fng-text p { color: #6E6680; font-size: 14.5px; line-height: 1.95; margin: 0 0 18px; }
.bz-fng-history {
	display: grid; grid-template-columns: repeat(3, 1fr);
	gap: 10px; max-width: 420px;
}
.bz-fng-history > div {
	background: #fff; border: 1px solid #EEE9F2;
	border-radius: 12px; padding: 12px; text-align: center;
}
.bz-fng-val { font-weight: 500; font-size: 18px; }

/* Section heads */
.bz-section-head {
	display: flex; align-items: center; gap: 9px; margin-bottom: 18px;
}
.bz-section-pin {
	width: 6px; height: 22px; border-radius: 4px; background: #B400AE;
}
.bz-section-head h2 { margin: 0; font-size: 21px; font-weight: 500; color: #1B1322; }

/* About */
.bz-about { margin-top: 18px; }
.bz-about p {
	color: #4A4356; font-size: 15px; line-height: 2.15;
	margin: 0 0 15px; text-align: justify;
}
.bz-facts-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px; margin-top: 8px;
}
.bz-fact {
	background: #FAF8FC; border: 1px solid #EEE9F2;
	border-radius: 13px; padding: 14px 16px;
}
.bz-fact-val { font-weight: 500; font-size: 15px; }
.bz-fact-link a { color: #B400AE; text-decoration: none; direction: ltr; }
.bz-fact-link a:hover { text-decoration: underline; }

/* FAQ */
.bz-faq { margin-top: 18px; }
.bz-faq-list { display: flex; flex-direction: column; gap: 11px; }
.bz-faq-item {
	background: #fff; border: 1px solid #EEE9F2;
	border-radius: 14px; overflow: hidden;
}
.bz-faq-item[open] { background: #FDF6FD; border-color: rgba(180,0,174,0.3); }
.bz-faq-item summary {
	cursor: pointer; list-style: none;
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 17px 18px;
	color: #1B1322; font-size: 15.5px; font-weight: 500;
}
.bz-faq-item summary::-webkit-details-marker { display: none; }
.bz-faq-icon {
	flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
	background: #F4F0F8; color: #9A93A8;
	display: flex; align-items: center; justify-content: center;
	font-size: 18px; font-weight: 500;
	transition: transform .2s, background-color .2s, color .2s;
}
.bz-faq-item[open] .bz-faq-icon {
	transform: rotate(45deg); background: #B400AE; color: #fff;
}
.bz-faq-a {
	margin: 0; padding: 0 18px 18px;
	color: #6E6680; font-size: 14.5px; line-height: 2.1; text-align: justify;
}

/* Responsive tweaks */
@media (max-width: 720px) {
	.bz-stats-grid { grid-template-columns: 1fr 1fr; }
	.bz-hero { gap: 18px; }
	.bz-chart-card, .bz-calc-card { flex: 1 1 100%; }
}

/* Calculator error state */
.bz-calc-input.bz-calc-error {
	background: rgba(224,50,46,0.04);
	color: #9A93A8;
}
.bz-calc-pretty { min-height: 1em; }

/* ==========================================================================
   Market listing — Market.dc.html port (.bz-mkt prefix)
   ========================================================================== */

.bz-mkt {
	direction: rtl;
	min-height: 100vh;
	background:
		radial-gradient(1200px 620px at 85% -12%, rgba(180,0,174,0.07), transparent 60%),
		radial-gradient(900px 500px at 0% -5%, rgba(180,0,174,0.04), transparent 55%),
		#FFFFFF;
	color: #1B1322;
	-webkit-font-smoothing: antialiased;
}

/* Hero */
.bz-mkt-hero {
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(32px,5vw,60px) clamp(16px,4vw,40px) 8px;
}
.bz-mkt-hero-text { max-width: 640px; }
.bz-live-pill {
	display: inline-flex; align-items: center; gap: 8px;
	background: rgba(14,159,110,0.1);
	border: 1px solid rgba(14,159,110,0.25);
	color: #0B8457;
	padding: 6px 13px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 18px;
}
.bz-live-dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: #0E9F6E;
	animation: bz-pulse 1.6s infinite;
}
@keyframes bz-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.bz-mkt-hero h1 {
	font-size: clamp(30px, 5vw, 46px);
	font-weight: 500;
	line-height: 1.15;
	margin: 0 0 14px;
	letter-spacing: -1px;
	color: #1B1322;
}
.bz-mkt-sub {
	color: #6E6680;
	font-size: clamp(15px, 2vw, 17px);
	line-height: 1.9;
	margin: 0;
}

/* Stats grid */
.bz-mkt-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
	gap: 14px;
	margin-top: 34px;
}
.bz-stat-tile {
	background: #fff;
	border: 1px solid #EEE9F2;
	border-radius: 16px;
	padding: 18px 20px;
	box-shadow: 0 10px 26px -18px rgba(90,0,86,0.18);
}
.bz-stat-tile-accent {
	background: linear-gradient(160deg, #FCF1FB, #FFFFFF);
	border-color: rgba(180,0,174,0.2);
	box-shadow: 0 10px 26px -18px rgba(180,0,174,0.28);
}
.bz-stat-tile-accent .bz-stat-tile-label { color: #A02C9B; }
.bz-stat-tile-label {
	color: #8A8497;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 9px;
}
.bz-stat-tile-val {
	font-size: 22px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}
.bz-stat-tile-unit { font-size: 13px; color: #9A93A8; font-weight: 500; }
.bz-stat-tile-sublabel { font-size: 13px; font-weight: 500; margin-right: 4px; }
.bz-ltr { direction: ltr; text-align: right; }

/* Table */
.bz-mkt-table-wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 26px clamp(16px, 4vw, 40px) 70px;
}
.bz-mkt-table-wrap > div:first-child { /* the card container */ }
.bz-mkt-table-header {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 20px 22px;
	border-bottom: 1px solid #F0ECF4;
	flex-wrap: wrap;
	background: #fff;
	border: 1px solid #EEE9F2;
	border-bottom: 1px solid #F0ECF4;
	border-radius: 22px 22px 0 0;
	box-shadow: 0 30px 60px -34px rgba(90,0,86,0.25);
	margin-bottom: -1px;
}
.bz-mkt-table-header h2 {
	margin: 0; font-size: 19px; font-weight: 500;
}
.bz-mkt-search {
	display: flex; align-items: center; gap: 10px;
	background: #F7F4FB;
	border: 1px solid #E8E2EE;
	border-radius: 12px;
	padding: 9px 14px;
	min-width: 240px;
	flex: 1;
	max-width: 340px;
}
.bz-mkt-search input {
	background: transparent;
	border: none;
	outline: none;
	color: #1B1322;
	font-size: 14px;
	width: 100%;
	font-family: inherit;
}
.bz-mkt-table-scroll {
	overflow-x: auto;
	background: #fff;
	border: 1px solid #EEE9F2;
	border-top: 0;
	border-radius: 0 0 22px 22px;
	box-shadow: 0 30px 60px -34px rgba(90,0,86,0.25);
}
.bz-mkt-table { min-width: 760px; }
.bz-mkt-row {
	display: flex; align-items: center; gap: 14px;
	padding: 15px 22px;
	border-bottom: 1px solid #F4F1F7;
	color: #1B1322;
	transition: background-color .12s;
	text-decoration: none;
}
.bz-mkt-row:last-child { border-bottom: 0; }
.bz-mkt-row-head {
	color: #8A8497;
	font-size: 12.5px;
	font-weight: 500;
	background: #FCFAFD;
	padding: 13px 22px;
}
.bz-row:hover { background: rgba(180,0,174,0.045); }

.bz-col-rank   { width: 34px; text-align: center; color: #A39BB0; font-size: 14px; font-weight: 500; }
.bz-col-name   { flex: 1.6; min-width: 150px; display: flex; align-items: center; gap: 12px; }
.bz-col-irt    { flex: 1.2; text-align: left; font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.bz-col-usd    { flex: 0.9; text-align: left; color: #6E6680; font-size: 13.5px; direction: ltr; }
.bz-col-ch     { flex: 0.9; text-align: left; font-weight: 500; font-size: 14px; direction: ltr; }
.bz-col-spark  { flex: 1; display: flex; justify-content: center; align-items: center; }
.bz-col-action { width: 96px; display: flex; justify-content: center; }

.bz-mkt-row-head .bz-col-name { font-weight: 500; }

.bz-sort {
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	justify-content: flex-start;
	user-select: none;
}
.bz-sort-icon { opacity: 0.5; }
.bz-sort.is-active .bz-sort-icon { opacity: 1; color: #B400AE; }

.bz-coin-dot {
	width: 38px; height: 38px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 11px; font-weight: 500; color: #fff;
	flex-shrink: 0;
}
.bz-coin-text-block { display: flex; flex-direction: column; gap: 2px; }
.bz-coin-text-block .bz-coin-name { font-weight: 500; font-size: 15px; }
.bz-coin-text-block .bz-coin-sym  { font-size: 12.5px; color: #9A93A8; direction: ltr; text-align: right; }

.bz-view-chip {
	background: rgba(180,0,174,0.08);
	border: 1px solid rgba(180,0,174,0.22);
	color: #B400AE;
	padding: 7px 16px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}
.bz-mkt-row:hover .bz-view-chip { background: #B400AE; color: #fff; border-color: #B400AE; }

.bz-mkt-empty,
.bz-mkt-no-match {
	background: #fff;
	border: 1px solid #EEE9F2;
	border-top: 0;
	border-radius: 0 0 22px 22px;
	padding: 50px;
	text-align: center;
	color: #9A93A8;
	font-size: 15px;
}

@media (max-width: 720px) {
	.bz-col-usd { display: none; }
	.bz-col-spark { display: none; }
	.bz-col-action { width: 80px; }
	.bz-view-chip { padding: 6px 12px; font-size: 12px; }
	.bz-coin-text-block .bz-coin-sym { display: none; }
}

/* Local coin icon image (replaces the colored dot when an icon file exists). */
.bz-coin-icon {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: contain;
	background: #FAF8FC;
	padding: 4px;
	flex-shrink: 0;
	border: 1px solid #F0ECF4;
}
