/* CryptoUA — upgrade.css  |  Production-grade platform styles */

/* ===========================
   MOBILE BOTTOM NAV
   =========================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  z-index: 900;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.mob-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 12px;
  color: var(--text3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  min-width: 56px;
  position: relative;
}

.mob-nav-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mob-nav-btn.active {
  color: var(--accent);
}

.mob-nav-btn.active svg {
  stroke: var(--accent);
}

.mob-nav-btn:active {
  transform: scale(0.92);
}

.mob-nav-badge {
  position: absolute;
  top: 2px;
  right: 6px;
  width: 16px;
  height: 16px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg2);
}

@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .back-to-top { bottom: calc(76px + env(safe-area-inset-bottom)); right: 16px; }
}

/* ===========================
   STICKY PRICE BAR (mobile)
   =========================== */
.sticky-price-bar {
  display: none;
  position: fixed;
  top: calc(var(--ticker-h, 32px) + var(--header-h, 64px));
  left: 0;
  right: 0;
  height: 44px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  z-index: 799;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  overflow: hidden;
  transition: transform 0.3s;
}

.sticky-price-bar.hidden { transform: translateY(-100%); }

.sticky-price-coin {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.sticky-price-coin .sym {
  font-size: 12px;
  font-weight: 700;
  color: var(--text3);
}

.sticky-price-coin .price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.sticky-price-coin .chg {
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .sticky-price-bar { display: flex; }
}

/* ===========================
   BREAKING NEWS BANNER
   =========================== */
.breaking-news-bar {
  background: linear-gradient(90deg, #dc2626, #b91c1c);
  padding: 8px 0;
  overflow: hidden;
  position: relative;
}

.breaking-news-bar::before {
  content: '🔴 BREAKING';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  padding: 0 14px;
  background: #991b1b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #fff;
  display: flex;
  align-items: center;
  z-index: 2;
}

.breaking-news-inner {
  display: flex;
  align-items: center;
  padding-left: 110px;
  overflow: hidden;
}

.breaking-news-ticker {
  display: flex;
  gap: 48px;
  animation: breakingScroll 25s linear infinite;
  white-space: nowrap;
}

.breaking-news-ticker a {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.breaking-news-ticker a:hover { color: rgba(255,255,255,0.75); }

@keyframes breakingScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===========================
   INTERACTIVE BTC CHART
   =========================== */
.btc-chart-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.chart-price-block { display: flex; flex-direction: column; gap: 4px; }

.chart-current-price {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.chart-price-change {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.chart-price-change .chg-pct {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.chart-price-change .chg-pct.up { background: rgba(16,185,129,0.15); color: var(--green); }
.chart-price-change .chg-pct.down { background: rgba(239,68,68,0.15); color: var(--red); }
.chart-price-change .chg-usd { color: var(--text3); font-size: 13px; font-weight: 500; }

.chart-timeframes {
  display: flex;
  gap: 4px;
  background: var(--bg3);
  padding: 4px;
  border-radius: 10px;
}

.chart-tf-btn {
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.chart-tf-btn.active, .chart-tf-btn:hover {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.chart-canvas-wrap {
  position: relative;
  height: 220px;
  cursor: crosshair;
}

#btcChartCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-tooltip {
  position: absolute;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
  min-width: 120px;
}

.chart-tooltip.visible { opacity: 1; }

.chart-tooltip .tt-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.chart-tooltip .tt-time { color: var(--text3); margin-top: 2px; }

.chart-crosshair-v, .chart-crosshair-h {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
}

.chart-crosshair-v {
  width: 1px;
  top: 0;
  bottom: 0;
  background: var(--border2);
}

.chart-crosshair-h {
  height: 1px;
  left: 0;
  right: 0;
  background: var(--border2);
}

.chart-canvas-wrap:hover .chart-crosshair-v,
.chart-canvas-wrap:hover .chart-crosshair-h { opacity: 1; }

.chart-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 4px;
}

.chart-range-labels span {
  font-size: 10px;
  color: var(--text3);
}

/* ===========================
   AI SUMMARY / TL;DR BLOCK
   =========================== */
.ai-tldr-block {
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(124,58,237,0.08));
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}

.ai-tldr-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), #7c3aed);
}

.ai-tldr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ai-tldr-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.ai-tldr-label .ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.ai-tldr-toggle {
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.ai-tldr-toggle:hover { color: var(--accent); }

.ai-tldr-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-tldr-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text2);
}

.ai-tldr-points li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===========================
   MARKET IMPACT INDICATOR
   =========================== */
.market-impact-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 16px 0;
}

.market-impact-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.impact-scale {
  flex: 1;
  position: relative;
  height: 8px;
  background: linear-gradient(90deg, var(--red), #f59e0b, var(--green));
  border-radius: 4px;
}

.impact-needle {
  position: absolute;
  top: -5px;
  width: 18px;
  height: 18px;
  background: var(--text);
  border-radius: 50%;
  border: 3px solid var(--bg3);
  transform: translateX(-50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: left 0.6s cubic-bezier(0.34,1.56,0.64,1);
}

.impact-verdict {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.impact-verdict.bullish { color: var(--green); }
.impact-verdict.bearish { color: var(--red); }
.impact-verdict.neutral { color: #f59e0b; }

/* ===========================
   BOOKMARK BUTTON
   =========================== */
.bookmark-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  background: var(--bg3);
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
}

.bookmark-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.bookmark-btn.bookmarked {
  background: rgba(59,130,246,0.12);
  color: var(--accent);
  border-color: rgba(59,130,246,0.35);
}

.bookmark-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: fill 0.2s;
}

.bookmark-btn.bookmarked svg { fill: var(--accent); }

/* Watchlist star button on news cards */
.card-watchlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2;
  cursor: pointer;
  border: none;
}

.news-card:hover .card-watchlist-btn { opacity: 1; }
.card-watchlist-btn:hover { transform: scale(1.15); background: rgba(0,0,0,0.7); }
.card-watchlist-btn.saved { opacity: 1; color: #f59e0b; }

/* ===========================
   TOAST NOTIFICATIONS
   =========================== */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

@media (max-width: 768px) {
  .toast-container { bottom: 76px; right: 12px; left: 12px; }
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  min-width: 240px;
  max-width: 340px;
  pointer-events: auto;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.toast.show { transform: translateX(0); }

.toast-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.toast.success .toast-icon { background: rgba(16,185,129,0.15); }
.toast.info .toast-icon { background: rgba(59,130,246,0.15); }
.toast.warning .toast-icon { background: rgba(245,158,11,0.15); }

.toast-left { display: flex; align-items: center; gap: 10px; flex: 1; }

.toast-close {
  font-size: 16px;
  color: var(--text3);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  padding: 2px;
  background: none;
  border: none;
}

.toast-close:hover { color: var(--text); }

/* ===========================
   SEARCH OVERLAY
   =========================== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.search-overlay-box {
  width: 100%;
  max-width: 620px;
  padding: 0 16px;
}

.search-overlay-input-wrap {
  position: relative;
  margin-bottom: 16px;
}

.search-overlay-input {
  width: 100%;
  padding: 16px 56px 16px 20px;
  background: var(--card);
  border: 1.5px solid var(--border2);
  border-radius: 16px;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.search-overlay-input:focus { border-color: var(--accent); }

.search-overlay-input::placeholder { color: var(--text3); }

.search-overlay-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--bg3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text3);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.search-overlay-close:hover { background: var(--accent); color: #fff; }

.search-results-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
}

.search-results-panel:empty { display: none; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
  text-decoration: none;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg3); }

.search-result-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.search-result-body { flex: 1; }

.search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.search-result-title mark {
  background: rgba(59,130,246,0.25);
  color: var(--accent);
  border-radius: 2px;
}

.search-result-meta { font-size: 12px; color: var(--text3); }

.search-result-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg3);
  color: var(--text3);
}

.search-hint {
  font-size: 12px;
  color: var(--text3);
  text-align: center;
  padding: 16px;
}

/* ===========================
   READING PROGRESS BAR
   =========================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  z-index: 2000;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ===========================
   SKELETON LOADING
   =========================== */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--border) 37%, var(--bg3) 63%);
  background-size: 600px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}

.skeleton-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-img { height: 160px; border-radius: var(--radius-sm); }
.skeleton-badge { height: 20px; width: 70px; }
.skeleton-title { height: 18px; }
.skeleton-title-short { height: 18px; width: 70%; }
.skeleton-text { height: 13px; }
.skeleton-text-short { height: 13px; width: 55%; }
.skeleton-meta { height: 12px; width: 45%; }

/* ===========================
   PWA INSTALL PROMPT
   =========================== */
.pwa-install-banner {
  display: none;
  position: fixed;
  bottom: 72px;
  left: 12px;
  right: 12px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 850;
  align-items: center;
  gap: 14px;
  animation: slideUp 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.pwa-install-banner.show { display: flex; }

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.pwa-app-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.pwa-install-text { flex: 1; }

.pwa-install-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.pwa-install-text span {
  font-size: 12px;
  color: var(--text3);
}

.pwa-install-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pwa-btn-install {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.pwa-btn-install:hover { background: var(--accent2); }

.pwa-btn-dismiss {
  padding: 6px 16px;
  background: none;
  color: var(--text3);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: color 0.2s;
}

.pwa-btn-dismiss:hover { color: var(--text); }

/* ===========================
   AD SLOTS
   =========================== */
.ad-slot {
  background: var(--bg3);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.ad-slot::after {
  content: 'AD';
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text3);
}

.ad-slot-banner {
  height: 90px;
  width: 100%;
  margin: 16px 0;
}

.ad-slot-sidebar {
  height: 250px;
  width: 100%;
  margin-bottom: 20px;
}

/* ===========================
   SPONSORED CONTENT BADGE
   =========================== */
.badge-sponsored {
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.3);
}

/* ===========================
   PREMIUM CARD
   =========================== */
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #000;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.news-card.premium-locked {
  position: relative;
  overflow: hidden;
}

.news-card.premium-locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--card) 100%);
  pointer-events: none;
}

.premium-gate {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  text-align: center;
  z-index: 2;
}

.premium-gate-btn {
  padding: 10px 20px;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #000;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
  width: 100%;
}

.premium-gate-btn:hover { transform: scale(1.02); }

/* ===========================
   WATCHLIST WIDGET
   =========================== */
.watchlist-widget-empty {
  text-align: center;
  padding: 24px 16px;
  color: var(--text3);
  font-size: 13px;
  line-height: 1.6;
}

.watchlist-widget-empty .empty-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

.watchlist-widget-empty a {
  color: var(--accent);
  font-weight: 600;
}

.watchlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px;
  border-radius: 8px;
  transition: background 0.15s;
}

.watchlist-item:hover { background: var(--bg3); }

.watchlist-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.watchlist-remove-btn {
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text3);
  font-size: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  opacity: 0;
}

.watchlist-item:hover .watchlist-remove-btn { opacity: 1; }
.watchlist-remove-btn:hover { background: rgba(239,68,68,0.15); color: var(--red); }

/* ===========================
   COIN PAGE HERO
   =========================== */
.coin-hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.coin-hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.coin-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  flex-shrink: 0;
}

.coin-hero-title { flex: 1; }

.coin-hero-title h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.coin-hero-title .coin-ticker-full {
  font-size: 14px;
  color: var(--text3);
  font-weight: 600;
}

.coin-rank-badge {
  padding: 4px 10px;
  background: var(--bg3);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
}

.coin-hero-price {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.coin-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.coin-stat-item {
  background: var(--bg3);
  border-radius: 10px;
  padding: 12px;
}

.coin-stat-item .label {
  font-size: 11px;
  color: var(--text3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.coin-stat-item .value {
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 600px) {
  .coin-hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ===========================
   INFINITE SCROLL SENTINEL
   =========================== */
.scroll-sentinel {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-loader {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

.scroll-loader.visible { opacity: 1; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===========================
   ALERT PRICE INPUT
   =========================== */
.price-alert-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.price-alert-input {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.price-alert-input:focus { border-color: var(--accent); }

.price-alert-btn {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.price-alert-btn:hover { background: var(--accent2); }

/* ===========================
   READING HISTORY ITEM
   =========================== */
.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 8px;
  transition: background 0.15s;
  text-decoration: none;
}

.history-item:hover { background: var(--bg3); }

.history-icon {
  width: 36px;
  height: 36px;
  background: var(--bg3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.history-body { flex: 1; min-width: 0; }

.history-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.history-time { font-size: 11px; color: var(--text3); }

/* ===========================
   PROFILE DROPDOWN
   =========================== */
.profile-menu {
  position: relative;
}

.profile-avatar-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.profile-avatar-btn:hover { transform: scale(1.05); }

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 1000;
  display: none;
}

.profile-dropdown.open { display: block; }

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: background 0.15s;
  cursor: pointer;
  text-decoration: none;
}

.profile-dropdown-item:hover { background: var(--bg3); color: var(--text); }

.profile-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* ===========================
   ADMIN DASHBOARD CHIP
   =========================== */
.admin-fab {
  position: fixed;
  bottom: 84px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #7c3aed, var(--accent));
  color: #fff;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
  text-decoration: none;
  transition: all 0.2s;
  z-index: 600;
}

.admin-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124,58,237,0.5);
  color: #fff;
}

@media (max-width: 768px) {
  .admin-fab { display: none; }
}

/* ===========================
   SHARE ACTIONS (article)
   =========================== */
.share-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 20px 0;
}

.share-action-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text3);
  margin-right: 4px;
}

.share-btn-lg {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
}

.share-btn-lg:hover { background: var(--card-hover); border-color: var(--border2); color: var(--text); }
.share-btn-lg.twitter:hover { background: rgba(29,161,242,0.1); border-color: rgba(29,161,242,0.4); color: #1da1f2; }
.share-btn-lg.telegram:hover { background: rgba(0,136,204,0.1); border-color: rgba(0,136,204,0.4); color: #0088cc; }
.share-btn-lg.copy:hover { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.4); color: var(--green); }

/* ===========================
   MOBILE SWIPE CARDS (touch hint)
   =========================== */
@media (max-width: 640px) {
  .news-grid {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 12px;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-padding-left: 16px;
  }

  .news-grid::-webkit-scrollbar { display: none; }

  .news-grid .news-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }
}

/* ===========================
   LIVE DOT INDICATOR
   =========================== */
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: livePulse 1.8s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ===========================
   ARTICLE TAGS / RELATED
   =========================== */
.article-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.article-tag {
  padding: 5px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  transition: all 0.2s;
}

.article-tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===========================
   ESTIMATED READING TIME (article)
   =========================== */
.reading-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text3);
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 12px 0 20px;
  flex-wrap: wrap;
}

.reading-stat {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===========================
   DONATE / TIP JAR
   =========================== */
.tip-bar {
  background: linear-gradient(135deg, rgba(247,147,26,0.1), rgba(247,147,26,0.05));
  border: 1px solid rgba(247,147,26,0.25);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.tip-bar-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text2);
}

.tip-bar-text span { color: #f7931a; }

.tip-bar-btn {
  padding: 8px 18px;
  background: rgba(247,147,26,0.15);
  color: #f7931a;
  border: 1px solid rgba(247,147,26,0.35);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tip-bar-btn:hover { background: rgba(247,147,26,0.25); }
