/* ═══════════════════════════════════════════════════════
   BLOCKBABE — Premium Crypto Platform CSS
   Colors: #0D0D0D | #D4AF37 | #FFFFFF | #1A1A1A
   Font: Inter
═══════════════════════════════════════════════════════ */

/* ─── CSS Variables ───────────────────────────────── */
:root {
  --black:      #0D0D0D;
  --dark:       #1A1A1A;
  --dark-2:     #222222;
  --dark-3:     #2A2A2A;
  --gold:       #D4AF37;
  --gold-light: #E8C84A;
  --gold-dark:  #B8952A;
  --white:      #FFFFFF;
  --grey:       #888888;
  --grey-light: #CCCCCC;
  --green:      #22c55e;
  --red:        #ef4444;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius:     6px;
  --radius-lg:  12px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-gold:0 0 24px rgba(212,175,55,0.15);
  --transition: 0.2s ease;
  --nav-h:      72px;
}

/* ─── Reset & Base ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, select, textarea { font-family: var(--font); }
ul { list-style: none; }

/* ─── Scrollbar ───────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--dark-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ─── Typography ──────────────────────────────────── */
.gold          { color: var(--gold); }
.gold-highlight { color: var(--gold); }
.text-green    { color: var(--green); }
.text-red      { color: var(--red); }
.fire          { font-size: 0.9em; }

/* ─── Container ───────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Buttons ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--black);
  font-weight: 800;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  transition: all var(--transition);
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212,175,55,0.3);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.2);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }
.btn-danger {
  background: #ef4444;
  color: white;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-danger:hover { background: #dc2626; }
.btn-gold-sm {
  display: inline-flex;
  background: var(--gold);
  color: var(--black);
  font-weight: 800;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-gold-sm:hover { background: var(--gold-light); }
.btn-icon-delete {
  background: transparent;
  color: var(--grey);
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all var(--transition);
}
.btn-icon-delete:hover { color: var(--red); background: rgba(239,68,68,0.1); }
.link-gold {
  color: var(--gold);
  font-weight: 600;
  font-size: 15px;
  transition: color var(--transition);
}
.link-gold:hover { color: var(--gold-light); }

/* ─── Navbar ──────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,175,55,0.12);
  transition: all var(--transition);
}
.navbar.scrolled { border-bottom-color: rgba(212,175,55,0.25); }
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon { width: 40px; height: 40px; object-fit: contain; }
.logo-text  { height: 32px; object-fit: contain; }
.logo-text-label {
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.3px;
  line-height: 1;
}
.logo-text-label strong {
  font-weight: 900;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.nav-links a {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 17px;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-nav-primary {
  background: var(--gold);
  color: var(--black);
  font-weight: 800;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-nav-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-nav-secondary {
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--transition);
}
.btn-nav-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-nav-ghost {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-size: 16px;
  padding: 10px 14px;
  transition: color var(--transition);
}
.btn-nav-ghost:hover { color: var(--white); }
.btn-nav-gold {
  background: transparent;
  color: #D4AF37;
  border: 1.5px solid #D4AF37;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 16px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-nav-gold:hover { background: rgba(212,175,55,0.12); color: #D4AF37; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 999;
}

/* ─── Live Dot ────────────────────────────────────── */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 1.5s infinite;
  flex-shrink: 0;
}
.live-dot.green { background: var(--green); }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.3); }
}

/* ─── Section Styles ──────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}
.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ─── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding-top: var(--nav-h);
}
#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}
.markets-countdown-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.countdown-ring {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.countdown-ring svg {
  display: block;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none;
  stroke: rgba(212,175,55,0.15);
  stroke-width: 2.5;
}
.ring-arc {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 87.96;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}
.countdown-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.3px;
  text-align: center;
}
.hero-headline {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero-subline {
  font-size: 20px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-trust {
  display: flex;
  gap: 28px;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.trust-icon { font-size: 14px; }
.trust-icon-img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 8px;
}
.hero-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}
.hero-portrait {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  object-fit: cover;
  filter: drop-shadow(0 0 60px rgba(212,175,55,0.15));
}

/* ─── Coin Cards ──────────────────────────────────── */
.coin-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.coin-card {
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.coin-card:hover {
  border-color: rgba(212,175,55,0.45);
  transform: translateY(-3px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.5), var(--shadow-gold);
  background: var(--dark-3);
}
.coin-card.skeleton {
  height: 160px;
  background: linear-gradient(90deg, var(--dark) 25%, var(--dark-2) 50%, var(--dark) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border: 1px solid var(--dark-3);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.coin-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.coin-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.coin-logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
}
.coin-card-name { font-size: 15px; font-weight: 700; }
.coin-card-symbol { font-size: 12px; color: var(--grey); text-transform: uppercase; }
.coin-card-price {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.coin-card-change {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.change-positive { color: var(--green); }
.change-negative { color: var(--red); }
.coin-sparkline { width: 100%; height: 40px; }

/* Trending card — 1h + 24h badges */
.trending-changes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.trending-change-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 4px 10px;
}
.tch-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tch-val {
  font-size: 13px;
  font-weight: 800;
}

/* ─── Sections ────────────────────────────────────── */
.section-markets {
  padding: 72px 0 60px;
  background: var(--black);
}
.section-trending {
  padding: 60px 0;
  background: var(--black);
  border-top: 1px solid rgba(212,175,55,0.45);
}
.section-binance {
  padding: 96px 0;
  background: var(--dark);
  text-align: center;
  border-top: 1px solid rgba(212,175,55,0.1);
  border-bottom: 1px solid rgba(212,175,55,0.1);
}
.section-blog {
  padding: 96px 0;
  background: var(--black);
}
.section-learn {
  padding: 96px 0;
  background: var(--dark);
}
.section-stats {
  padding: 56px 0;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
  border-top: 1px solid rgba(212,175,55,0.15);
  border-bottom: 1px solid rgba(212,175,55,0.15);
}
.section-getmore {
  padding: 96px 0;
  background: var(--black);
}
.section-about {
  padding: 96px 0;
  background: var(--dark);
  border-top: 1px solid rgba(212,175,55,0.1);
}

/* ─── Binance Section ─────────────────────────────── */
.binance-trust-icons {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 32px;
}
.binance-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 24px;
}
.binance-icon span {
  font-size: 13px;
  color: var(--grey);
  font-weight: 600;
}
.binance-icon-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
}
.binance-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.binance-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.binance-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.binance-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-top: 24px;
}

/* ─── Blog Cards ──────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-grid-full {
  grid-template-columns: repeat(3, 1fr);
}
.blog-card {
  background: var(--dark);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.blog-card:hover {
  border-color: rgba(212,175,55,0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.blog-card-img-link { display: block; }
.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--dark-2);
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  opacity: 0.3;
}
.blog-card-img-placeholder::after { content: '📊'; }
.blog-card-body { padding: 20px; }
.blog-tag {
  display: inline-block;
  background: rgba(212,175,55,0.1);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.blog-card-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.blog-card-title a { color: var(--white); transition: color var(--transition); }
.blog-card-title a:hover { color: var(--gold); }
.blog-card-excerpt {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--dark-3);
}
.blog-date { font-size: 13px; color: var(--grey); }
.post-time-ago { font-size: 13px; color: var(--gold); opacity: 0.8; }
.blog-read-more { font-size: 13px; font-weight: 700; color: var(--gold); }
.blog-read-more:hover { color: var(--gold-light); }
.blog-empty {
  text-align: center;
  padding: 64px;
  color: var(--grey);
  background: var(--dark);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--dark-3);
}

/* ─── Blog Filters ────────────────────────────────── */
.blog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-tag {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--dark-3);
  color: var(--grey);
  transition: all var(--transition);
  cursor: pointer;
}
.filter-tag:hover, .filter-tag.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,175,55,0.08);
}

/* ─── Pagination ──────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}
.pagination-btn {
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--dark-3);
  color: var(--grey);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  background: var(--dark);
}
.pagination-btn:hover, .pagination-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,175,55,0.08);
}

/* ─── Learn Cards ─────────────────────────────────── */
.learn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.learn-card {
  background: var(--dark);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
  display: block;
}
.learn-card:hover {
  border-color: var(--gold);
  background: rgba(212,175,55,0.04);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}
.learn-card-icon { font-size: 36px; margin-bottom: 16px; display: flex; justify-content: center; }
.learn-icon-img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; }
.learn-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.learn-card p { font-size: 14px; color: var(--grey); line-height: 1.6; }

/* ─── Stats Bar ───────────────────────────────────── */
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 24px 56px;
  text-align: center;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--dark-3);
}
.stat-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -1px;
}
.stat-label { font-size: 14px; color: var(--grey); font-weight: 500; }

/* ─── Features Grid ───────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.feature-card {
  background: var(--dark);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: rgba(212,175,55,0.3);
  transform: translateY(-2px);
}
.feature-icon { font-size: 32px; margin-bottom: 16px; display: flex; justify-content: center; }
.feature-icon-img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--grey); line-height: 1.6; }
.getmore-bonus {
  text-align: center;
  padding: 48px 40px;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.08) 0%, var(--dark) 70%);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(212,175,55,0.06), inset 0 1px 0 rgba(212,175,55,0.15);
}
.getmore-bonus::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.07), transparent);
  animation: gb-shimmer 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes gb-shimmer {
  0%   { left: -60%; }
  60%  { left: 120%; }
  100% { left: 120%; }
}
.getmore-bonus p { font-size: 18px; margin-bottom: 28px; color: rgba(255,255,255,0.85); }
.getmore-bonus strong { color: var(--gold); }
.getmore-diamond { color: var(--gold); font-size: 12px; opacity: 0.7; vertical-align: middle; }
.getmore-bonus .btn-primary {
  animation: btn-pulse 2.8s ease-in-out infinite;
}
@keyframes btn-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.45); }
  50%      { box-shadow: 0 0 0 10px rgba(212,175,55,0); }
}

/* ─── About Section ───────────────────────────────── */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  filter: drop-shadow(0 0 40px rgba(212,175,55,0.12));
}
.about-image::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(212,175,55,0.3), transparent 60%);
  z-index: -1;
}
.about-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.about-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.about-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-slogan {
  font-size: 18px;
  font-weight: 800;
  margin: 24px 0 28px;
  letter-spacing: -0.3px;
}
.about-features { margin: 32px 0; display: flex; flex-direction: column; gap: 16px; }
.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.about-feature .feature-icon { font-size: 20px; margin-top: 2px; flex-shrink: 0; }
.about-feature-icon-img { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(212,175,55,0.2)); }
.about-feature strong { font-size: 15px; font-weight: 700; display: block; margin-bottom: 4px; }
.about-feature p { font-size: 14px; color: var(--grey); margin: 0; line-height: 1.5; }

/* ─── Footer ──────────────────────────────────────── */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(212,175,55,0.12);
  padding: 64px 0 32px;
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--dark-3);
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-logo-icon { width: 40px; height: 40px; object-fit: contain; }
.footer-logo-text { height: 32px; object-fit: contain; }
.footer-logo-text-label {
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.3px;
  line-height: 1;
}
.footer-logo-text-label strong {
  font-weight: 900;
  letter-spacing: -0.5px;
}
.footer-slogan { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.8); margin-bottom: 8px; }
.footer-desc { font-size: 13px; color: var(--grey); line-height: 1.6; max-width: 240px; }
.footer-links-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 16px;
}
.footer-links-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links-col a:hover { color: var(--gold); }
.footer-newsletter h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}
.footer-newsletter p { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.newsletter-form {
  display: flex;
  gap: 8px;
}
.newsletter-input {
  flex: 1;
  background: var(--dark);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--white);
  font-size: 14px;
  transition: border-color var(--transition);
}
.newsletter-input:focus { outline: none; border-color: var(--gold); }
.newsletter-btn {
  background: var(--gold);
  color: var(--black);
  font-weight: 800;
  font-size: 16px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.newsletter-btn:hover { background: var(--gold-light); }
.telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--black);
  font-weight: 800;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  margin-top: 4px;
}
.telegram-btn:hover { background: var(--gold-light); color: var(--black); transform: translateY(-1px); }
.telegram-btn-signup {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.telegram-btn-signup:hover { background: var(--gold); color: var(--black); }
.footer-bottom { }
.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-legal a {
  font-size: 13px;
  color: var(--grey);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--gold); }
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 8px;
}
.footer-copy a { color: var(--gold); }
.footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  max-width: 600px;
}

/* ─── Markets Page ────────────────────────────────── */
.page-main { padding-top: var(--nav-h); min-height: 100vh; }
.markets-page { padding: 64px 0 96px; }
.markets-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 24px;
  flex-wrap: wrap;
}
.markets-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.markets-tab {
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid var(--dark-3);
  background: var(--dark);
  color: var(--grey);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}
.markets-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.markets-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}
.page-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.page-sub { font-size: 16px; color: var(--grey); }
.markets-search { position: relative; width: 320px; }
.search-input {
  width: 100%;
  background: var(--dark);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--white);
  font-size: 15px;
  transition: border-color var(--transition);
}
.search-input:focus { outline: none; border-color: var(--gold); }
.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--dark);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius);
  z-index: 200;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--dark-3);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--dark-2); }
.search-item-symbol { font-weight: 800; font-size: 14px; }
.search-item-name { font-size: 13px; color: var(--grey); }
.markets-table-wrapper { overflow-x: auto; }
.markets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.markets-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--dark-3);
  white-space: nowrap;
}
.sort-th {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
  min-width: 90px;
  padding-right: 20px;
}
.sort-th:hover { color: #fff; }
.sort-th.sort-active { color: var(--gold); }
.sort-arr {
  font-size: 18px;
  opacity: 0.75;
  margin-left: 5px;
  transition: color 0.15s, opacity 0.15s;
  display: inline-block;
  vertical-align: middle;
}
.sort-th:hover .sort-arr { opacity: 1; }
.sort-th.sort-active .sort-arr { opacity: 1; }
.markets-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  white-space: nowrap;
}
.markets-table tr:hover td { background: rgba(255,255,255,0.02); }
#tab-coins .markets-table th:nth-child(2),
#tab-coins .markets-table td:nth-child(2) { max-width: 140px; min-width: 120px; }
#tab-coins .markets-table th:nth-child(2) div,
#tab-coins .markets-table td:nth-child(2) div { flex-wrap: nowrap; }
#tab-coins .markets-table td:nth-child(2) > div > div > div:first-child { font-size: 13px; }
.coin-actions { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.coin-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--grey);
  transition: all 0.18s ease;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
.coin-act-btn:hover { background: rgba(212,175,55,0.12); border-color: rgba(212,175,55,0.3); color: #D4AF37; }
.coin-act-alert:hover { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #ef4444; }
.coin-act-buy:hover { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: #22c55e; }
.skeleton-row td { padding: 0; }
.skeleton-line {
  height: 52px;
  background: linear-gradient(90deg, var(--dark) 25%, var(--dark-2) 50%, var(--dark) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 1px;
}
.markets-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }

/* ─── Blog Post Page ──────────────────────────────── */
.post-page { }
.post-hero {
  background: var(--dark);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--dark-3);
}
.post-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 16px 0 20px;
  max-width: 860px;
}
.post-meta { display: flex; gap: 20px; align-items: center; font-size: 14px; color: var(--grey); }
.post-featured-img { padding: 0; }
.post-featured-img img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 80px;
  align-items: start;
}
.post-content { max-width: 720px; }
.post-content h2 { font-size: 24px; font-weight: 800; margin: 36px 0 16px; letter-spacing: -0.3px; }
.post-content h3 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.post-content p { font-size: 17px; line-height: 1.8; color: rgba(255,255,255,0.8); margin-bottom: 20px; }
.post-content ul { margin: 0 0 20px 24px; }
.post-content li { font-size: 17px; line-height: 1.8; color: rgba(255,255,255,0.8); margin-bottom: 8px; list-style: disc; }
.post-content strong { color: var(--white); font-weight: 700; }
.post-content code { background: var(--dark-2); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.post-binance-cta {
  background: var(--dark);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 48px;
  text-align: center;
}
.cta-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); margin-bottom: 8px; }
.post-binance-cta h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.post-binance-cta p { font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.cta-disclaimer { font-size: 12px; color: var(--grey); margin-top: 12px; }
.post-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--dark);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.sidebar-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.sidebar-price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--dark-3);
  font-size: 14px;
}
.sidebar-price-item:last-child { border-bottom: none; }
.binance-sidebar { border-color: rgba(212,175,55,0.2); }
.post-related {
  background: var(--dark);
  padding: 64px 0;
  border-top: 1px solid var(--dark-3);
}

/* ─── Learn Pages ─────────────────────────────────── */
.learn-page { padding: 64px 0 96px; }
.learn-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.learn-module-card {
  background: #161a24;
  border: 0.5px solid #1e2230;
  border-left: 3px solid #2e3242;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.learn-module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
/* Completed card */
.learn-module-card--complete {
  border-left: 3px solid #D4AF37;
}
.learn-module-card--complete:hover {
  border-color: rgba(212,175,55,0.3);
  border-left-color: #D4AF37;
}
/* Incomplete card */
.learn-module-card--incomplete h3 { color: #aaa; }
.learn-module-card--incomplete .learn-module-meta span:first-child { color: #555; }
.learn-module-card--incomplete:hover { border-left-color: #D4AF37; }
.learn-module-card--incomplete:hover h3 { color: #fff; }
.learn-module-icon {
  order: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.learn-module-body {
  order: 1;
  flex: 1;
  min-width: 0;
}
.learn-mod-icon-img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border: none;
  background: none;
  box-shadow: none;
}
.learn-module-body h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.learn-module-body p { font-size: 14px; color: var(--grey); line-height: 1.6; margin-bottom: 12px; }
.learn-module-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--grey); }
/* Hero progress banner */
/* ── Learn Progress Banner ── */
.learn-progress-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #161a24;
  border: 0.5px solid #1e2230;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.lpb-left { flex-shrink: 0; }
.lpb-title  { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.lpb-subtitle { font-size: 11px; color: #666; }

.lpb-center { text-align: center; flex-shrink: 0; }
.lpb-pct    { font-size: 32px; font-weight: 800; color: #D4AF37; line-height: 1; }
.lpb-lessons { font-size: 11px; color: #666; margin-top: 4px; }

.lpb-right  { flex-shrink: 0; min-width: 200px; }
.lpb-bar-track {
  width: 200px;
  height: 8px;
  background: #2e3242;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.lpb-bar-fill {
  height: 100%;
  background: #D4AF37;
  border-radius: 4px;
  transition: width 0.4s ease;
}
.lpb-counts { font-size: 10px; color: #666; }

/* learn-module-card variants — handled at base definition above */
.learn-module-title--muted { color: #aaa; }

.learn-module-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #D4AF37;
  background: rgba(212,175,55,0.12);
  border: 0.5px solid rgba(212,175,55,0.25);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 6px;
}

/* Per-card progress bar */
.learn-module-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.learn-module-bar-track {
  flex: 1;
  background: #2e3242;
  border-radius: 2px;
  height: 4px;
  overflow: hidden;
}
.learn-module-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: #2e3242;
  min-width: 0;
  transition: width 0.3s ease;
}
.learn-module-bar-fill--gold { background: #D4AF37; }
.learn-module-pct-label {
  font-size: 10px;
  font-weight: 700;
  color: #555;
  flex-shrink: 0;
  min-width: 28px;
  text-align: right;
}
.learn-module-pct-label--gold { color: #D4AF37; }

.learn-cta-box {
  background: var(--dark);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-top: 48px;
}
.learn-cta-box h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.learn-cta-box p { font-size: 16px; color: var(--grey); margin-bottom: 24px; }
.learn-module-page { padding: 64px 0 96px; }
.learn-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 32px;
}
.learn-breadcrumb a { color: var(--grey); transition: color var(--transition); }
.learn-breadcrumb a:hover { color: var(--gold); }
.learn-module-header { margin-bottom: 48px; }
.learn-progress-bar-wrap {
  height: 4px;
  background: var(--dark-3);
  border-radius: 2px;
  margin-top: 16px;
  overflow: hidden;
}
.learn-progress-bar {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.learn-progress-label { font-size: 13px; color: var(--grey); margin-top: 8px; display: block; }
.learn-blocks { display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }
.learn-block {
  background: var(--dark);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.learn-block.completed { border-color: rgba(34,197,94,0.3); }
.learn-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
}
.learn-block-header:hover { background: rgba(255,255,255,0.02); }
.learn-block-title { display: flex; align-items: center; gap: 16px; }
.block-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.learn-block.completed .block-num { background: var(--green); color: var(--white); }
.learn-block-title h3 { font-size: 16px; font-weight: 700; }
.learn-block-status { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.status-completed { color: var(--green); font-weight: 600; }
.status-pending { color: var(--gold); font-weight: 600; }
.block-chevron { color: var(--grey); transition: transform var(--transition); }
.learn-block-body {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px solid var(--dark-3);
}
.learn-block-body.open { display: block; }
.learn-content { padding: 24px 0; }
.learn-content h2, .learn-content h3 { font-size: 18px; font-weight: 700; margin: 20px 0 12px; }
.learn-content p { font-size: 16px; line-height: 1.8; color: rgba(255,255,255,0.8); margin-bottom: 14px; }
.learn-content strong { color: var(--white); }
.learn-quiz { background: var(--dark-2); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.quiz-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.quiz-question p { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--dark);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius);
  text-align: left;
  font-size: 15px;
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}
.quiz-option:hover:not(:disabled) { border-color: var(--gold); background: rgba(212,175,55,0.05); }
.quiz-option.correct { border-color: var(--green); background: rgba(34,197,94,0.1); color: var(--green); }
.quiz-option.wrong { border-color: var(--red); background: rgba(239,68,68,0.1); color: var(--red); }
.quiz-option.correct-clickable { cursor: pointer; animation: pulse-correct 1.2s ease-in-out infinite; }
@keyframes pulse-correct {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
.quiz-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.quiz-feedback { margin-top: 12px; font-size: 14px; font-weight: 600; }
.quiz-correct-msg { color: var(--green); }
.quiz-wrong-msg { color: var(--red); }
.quiz-guest-prompt { margin-top: 14px; padding: 16px; background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.25); border-radius: 8px; }
.quiz-guest-prompt p { color: var(--text-secondary); font-size: 13px; font-weight: 400; margin: 0 0 12px; }
.quiz-guest-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-ghost-sm { padding: 8px 16px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-secondary); font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s; }
.btn-ghost-sm:hover { border-color: var(--gold); color: var(--gold); }
.btn-primary-sm { padding: 8px 16px; background: var(--gold); border-radius: 6px; color: #000; font-size: 13px; font-weight: 700; text-decoration: none; transition: opacity .2s; }
.btn-primary-sm:hover { opacity: .85; }
.learn-block-actions { margin-top: 20px; }
.learn-nav { display: flex; gap: 16px; margin-top: 24px; }
.progress-bar-mini {
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ─── About Page ──────────────────────────────────── */
.about-page { }
.about-hero {
  background: var(--dark);
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--dark-3);
}
.about-full-section { padding: 96px 0; background: var(--black); }
.about-mission { padding: 64px 0; background: var(--dark); border-top: 1px solid var(--dark-3); }
.mission-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.mission-card h3 { font-size: 28px; font-weight: 800; margin-bottom: 20px; }
.mission-card p { font-size: 17px; color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 12px; }

/* ─── Auth Pages ──────────────────────────────────── */
.auth-main {
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--black);
  padding-bottom: 64px;
}
.auth-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
  width: 100%;
}
.auth-container-sm {
  max-width: 480px;
  grid-template-columns: 1fr;
}
.auth-card {
  background: #252525;
  border: 1px solid #3a3a3a;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.auth-card-center { text-align: center; }
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.auth-logo-icon { width: 40px; height: 40px; }
.auth-brand { font-size: 22px; font-weight: 400; letter-spacing: -0.5px; color: #fff; }
.auth-brand strong { font-weight: 900; }
.auth-icon { font-size: 56px; margin-bottom: 20px; }
.auth-title { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 8px; }
.auth-sub { font-size: 15px; color: var(--grey); margin-bottom: 32px; }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-group input, .form-select {
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--white);
  font-size: 15px;
  transition: border-color var(--transition);
  width: 100%;
}
.form-group input:focus, .form-select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group input::placeholder { color: rgba(255,255,255,0.25); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--grey);
  cursor: pointer;
  font-size: 16px;
  padding: 2px;
  line-height: 1;
}
.forgot-link { font-size: 12px; font-weight: 500; color: var(--gold); }
.forgot-link:hover { color: var(--gold-light); }
.auth-switch { font-size: 14px; color: var(--grey); text-align: center; margin-top: 20px; }
.auth-legal { font-size: 12px; color: rgba(255,255,255,0.3); text-align: center; margin-top: 12px; }
.auth-legal a { color: var(--gold); }
.auth-benefits {
  background: #252525;
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.auth-benefits h3 { font-size: 18px; font-weight: 800; margin-bottom: 20px; }
.auth-benefits ul { display: flex; flex-direction: column; gap: 14px; list-style: none; padding: 0; }
.auth-benefits li { font-size: 15px; color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 12px; }
.benefit-check { width: 22px; height: 22px; flex-shrink: 0; object-fit: contain; }
.alert-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fc8181;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 8px;
}
.alert-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #86efac;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 8px;
}
.form-msg { font-size: 13px; margin-top: 8px; font-weight: 600; }
.form-msg.success { color: var(--green); }
.form-msg.error { color: var(--red); }

/* ─── Dashboard ───────────────────────────────────── */
.dashboard-main { padding-top: 0; min-height: 100vh; background: var(--black); }
.dashboard-welcome {
  background: var(--dark);
  border-bottom: 1px solid rgba(212,175,55,0.12);
  padding: 48px 0;
}
.dashboard-welcome-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.dashboard-welcome-text h1 { font-size: 32px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 8px; }
.dashboard-welcome-text p { font-size: 16px; color: var(--grey); margin-bottom: 0; }
.welcome-bonus {
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(212,175,55,0.06);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.welcome-bonus p { font-size: 14px; color: rgba(255,255,255,0.8); margin: 0; }
.disclaimer { font-size: 11px; color: var(--grey); }
.dashboard-portrait { width: 120px; flex-shrink: 0; }
.dashboard-portrait img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(212,175,55,0.3); }
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.dash-pinned-header {
  position: sticky;
  top: 0;
  z-index: 600;
  background: var(--black);
  box-shadow: 0 6px 32px rgba(0,0,0,0.7);
}
.dash-tabs-outer {
  width: 100%;
  padding: 0;
  margin: 0;
  background: #0e0e0e;
  border-bottom: 1px solid rgba(212,175,55,0.18);
}
.dashboard-tabs {
  display: flex;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow-x: auto;
}

/* Brand in dashboard tab bar */
.dash-brand-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 0 16px 0 4px;
  flex-shrink: 0;
}
.dash-brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.dash-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.dash-tab-divider {
  width: 1px;
  background: rgba(212,175,55,0.2);
  margin: 10px 8px;
  flex-shrink: 0;
}

/* Spacer + right-side action items in dash tab bar */
.dash-tab-spacer { flex: 1; }

.dash-pro-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  align-self: center;
  padding: 6px 16px;
  border-radius: 6px;
  background: transparent;
  border: 1.5px solid #D4AF37;
  color: #D4AF37;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s;
  flex-shrink: 0;
}
.dash-pro-btn:hover { background: rgba(212,175,55,0.12); color: #D4AF37; }

.dash-pro-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  align-self: center;
  padding: 5px 13px;
  border-radius: 8px;
  background: rgba(212,175,55,0.12);
  border: 1.5px solid rgba(212,175,55,0.35);
  color: #D4AF37;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.dash-pro-bolt { font-style: normal; }

.dash-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  color: var(--grey);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 7px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  transition: color 0.18s, background 0.18s, border-color 0.18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.dash-logout-btn:hover { color: #fff; background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.22); }
.dash-logout-btn svg { flex-shrink: 0; }

/* Right side of welcome bar */
.dash-welcome-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Override tab-btn for new top-bar style */
.dashboard-tabs .tab-btn {
  padding: 22px 18px;
  border-radius: 0;
  font-size: 15px;
  border-bottom: 3px solid transparent;
  box-shadow: none !important;
}
.dashboard-tabs .tab-btn:hover { background: rgba(212,175,55,0.05); color: #D4AF37; }
.dashboard-tabs .tab-btn.active { background: transparent; color: #D4AF37; border-bottom-color: #D4AF37; }
/* Ensure <a> tab links look identical to <button> tab buttons */
.dashboard-tabs a.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
}
/* Pro button highlighted when on the pro page */
.dash-pro-btn.active { background: rgba(212,175,55,0.15); }
.tab-btn {
  padding: 10px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--grey);
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}
.tab-btn:hover { color: #D4AF37; background: rgba(212,175,55,0.06); }
.tab-btn.active { background: rgba(212,175,55,0.12); color: #D4AF37; box-shadow: inset 0 -3px 0 #D4AF37; }
.tab-panel { }
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.panel-header h2 { font-size: 22px; font-weight: 800; }
.panel-sub { font-size: 14px; color: var(--grey); margin-bottom: 24px; margin-top: -12px; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dash-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--dark-3);
  white-space: nowrap;
}
.dash-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.dash-table tr:hover td { background: rgba(255,255,255,0.02); }
.coin-table-wrap { overflow-x: auto; }
.coin-name-cell { display: flex; align-items: center; gap: 10px; }
.coin-icon-sm { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; }
.coin-name-sub { font-size: 12px; color: var(--grey); margin-left: 2px; }
.price-cell { font-weight: 700; }
.change-cell { font-weight: 700; }
.watchlist-search-wrap { position: relative; width: 280px; }
.wl-add-btn {
  display: inline-flex; align-items: center;
  background: #D4AF37; color: #111; font-weight: 800;
  border: 2px solid #D4AF37; border-radius: 6px; padding: 10px 20px;
  font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: all 0.2s; letter-spacing: 0.2px;
}
.wl-add-btn:hover {
  background: #E8C84A; border-color: #E8C84A;
  transform: translateY(-1px); box-shadow: 0 8px 24px rgba(212,175,55,0.3);
}

/* ── Watchlist Rebuild ────────────────────────────────── */
.wl-page-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.wl-page-title { font-size: 22px; font-weight: 800; color: #fff; margin: 0; }
.wl-search-input {
  width: 280px; background: #161a24; border: 0.5px solid #2e3242;
  border-radius: 10px; padding: 10px 16px; color: #888;
  font-size: 13px; outline: none; font-family: inherit;
  transition: border-color .15s;
}
.wl-search-input:focus { border-color: rgba(212,175,55,.4); }
.wl-search-input::placeholder { color: #555; }

/* Mini stats */
.wl-stats-row {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 10px;
  margin-bottom: 22px;
}
.wl-stat-card {
  background: #161a24; border: 0.5px solid #1e2230;
  border-radius: 10px; padding: 12px 14px;
}
.wl-stat-lbl {
  font-size: 9px; color: #D4AF37; text-transform: uppercase;
  letter-spacing: .07em; font-weight: 600; margin-bottom: 4px;
}
.wl-stat-val { font-size: 13px; font-weight: 700; color: #fff; }

/* Section header */
.wl-section-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.wl-count-lbl { font-size: 10px; color: #D4AF37; text-transform: uppercase; letter-spacing: .05em; }
.wl-live-badge { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #555; }
.wl-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #4caf7d;
  animation: wlPulse 2s ease-in-out infinite;
}
@keyframes wlPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.4); }
}

/* Column headers */
.wl-col-hdr {
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px 8px; box-sizing: border-box;
}
.wl-col-h {
  font-size: 9px; color: #D4AF37; text-transform: uppercase;
  letter-spacing: .07em; font-weight: 600;
}

/* Coin card */
.wl-card {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px; box-sizing: border-box;
  background: #161a24; border: 0.5px solid #1e2230;
  border-radius: 12px; margin-bottom: 6px;
  transition: border-color .15s;
}
.wl-card:hover { border-color: rgba(212,175,55,.25); }

/* Logo */
.wl-card-logo-wrap {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden; background: #1e2230;
  display: flex; align-items: center; justify-content: center;
}
.wl-card-logo { width: 40px; height: 40px; object-fit: cover; display: block; }
.wl-card-logo-fb {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: #fff;
}

/* Coin info */
.wl-card-info { flex: 1.8; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wl-card-sym  { font-size: 14px; font-weight: 700; color: #fff; }
.wl-card-name { font-size: 10px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Price */
.wl-card-price { flex: 1.2; font-size: 15px; font-weight: 700; color: #fff; }

/* 24h Change */
.wl-card-chg  { flex: 1; font-size: 13px; font-weight: 700; }
.wl-chg-pos   { color: #4caf7d; }
.wl-chg-neg   { color: #e05c5c; }

/* Sparkline */
.wl-card-spark { flex: 1.2; }
.wl-spark-svg  { width: 100%; height: 28px; display: block; }

/* Market cap */
.wl-card-mcap { flex: 1; font-size: 11px; color: #888; }

/* Alert button */
.wl-card-alert-wrap { width: 80px; flex-shrink: 0; }
.wl-alert-btn {
  background: rgba(212,175,55,.08); border: 0.5px solid rgba(212,175,55,.25);
  color: #D4AF37; border-radius: 6px; font-size: 10px; font-weight: 600;
  padding: 5px 10px; cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.wl-alert-btn:hover { background: rgba(212,175,55,.18); }

/* Remove */
.wl-card-remove-wrap { width: 60px; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; }
.wl-rm-btn {
  background: none; border: none; color: #333; font-size: 14px; font-weight: 700;
  cursor: pointer; padding: 4px 6px; border-radius: 4px;
  transition: color .15s;
}
.wl-rm-btn:hover { color: #e05c5c; }
.wl-rm-confirm {
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
}
.wl-rm-txt    { font-size: 8px; color: #e05c5c; white-space: nowrap; }
.wl-rm-cancel {
  background: #1e2230; color: #888; border: none; border-radius: 3px;
  font-size: 8px; font-weight: 600; padding: 2px 6px; cursor: pointer;
}
.wl-rm-cancel:hover { color: #ccc; }
.wl-rm-ok {
  background: rgba(224,92,92,.18); color: #e05c5c; border: none; border-radius: 3px;
  font-size: 8px; font-weight: 700; padding: 2px 6px; cursor: pointer;
}
.wl-rm-ok:hover { background: rgba(224,92,92,.35); }
.portfolio-summary {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  margin-bottom: 32px;
}
.summary-card {
  background: var(--dark);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.summary-card.chart-card { flex-direction: column; justify-content: center; align-items: center; padding: 14px 12px; }
.summary-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--grey); }
.summary-value { font-size: 28px; font-weight: 900; letter-spacing: -1px; }
.amount-input {
  background: transparent;
  border: 1px solid var(--dark-3);
  border-radius: var(--radius);
  padding: 6px 10px;
  color: var(--white);
  font-size: 14px;
  width: 100px;
  transition: border-color var(--transition);
}
.amount-input:focus { outline: none; border-color: var(--gold); }
.buy-price-input {
  background: transparent;
  border: 1px solid var(--dark-3);
  border-radius: var(--radius);
  padding: 6px 10px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  width: 110px;
  transition: border-color var(--transition);
}
.buy-price-input::placeholder { color: #555; }
.buy-price-input:focus { outline: none; border-color: var(--gold); color: var(--white); }
.pie-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  justify-content: center;
  margin-top: 6px;
}
.pie-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.pie-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.alerts-list { display: flex; flex-direction: column; gap: 12px; }
.alert-item {
  background: var(--dark);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.alert-info { display: flex; align-items: center; gap: 14px; }
.alert-condition { font-size: 13px; color: var(--grey); margin-top: 4px; }

/* ── New Alerts Page ── */
.al-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.al-title  { font-size:22px; font-weight:800; color:#fff; margin:0; }

.al-stats-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.al-stat-card {
  background: #161a24;
  border: 0.5px solid #1e2230;
  border-radius: 10px;
  padding: 12px 14px;
}
.al-stat-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #D4AF37;
  margin-bottom: 6px;
}
.al-stat-val { font-size: 15px; font-weight: 700; color: #fff; }
.al-stat-val.gold { color: #D4AF37; }

.al-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 4px;
}
.al-section-count { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:0.07em; color:#D4AF37; }
.al-live-badge { display:flex; align-items:center; gap:6px; font-size:11px; color:#ffffff; }

.al-col-headers {
  display: grid;
  grid-template-columns: 44px 1.6fr 1.1fr 1.1fr 0.9fr 1fr 1fr 60px;
  gap: 0 16px;
  padding: 0 16px 8px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #D4AF37;
}

.al-card {
  display: grid;
  grid-template-columns: 44px 1.6fr 1.1fr 1.1fr 0.9fr 1fr 1fr 60px;
  gap: 0 16px;
  align-items: center;
  padding: 12px 16px;
  background: #161a24;
  border: 0.5px solid #1e2230;
  border-radius: 12px;
  margin-bottom: 6px;
  transition: border-color 0.2s;
}
.al-card:hover { border-color: rgba(212,175,55,0.25); }

.al-card-logo-wrap {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.al-card-logo { width:40px; height:40px; border-radius:50%; object-fit:cover; }
.al-card-logo-fb {
  width:40px; height:40px; border-radius:50%;
  background: #2a2a3a;
  display: none;
  align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #D4AF37;
}

.al-card-coin { display:flex; flex-direction:column; gap:2px; }
.al-card-sym  { font-size:14px; font-weight:700; color:#fff; }
.al-card-name { font-size:10px; color:#666; }

.al-card-col  { display:flex; flex-direction:column; gap:2px; }
.al-card-price  { font-size:14px; font-weight:700; color:#fff; }
.al-card-target { font-size:14px; font-weight:700; color:#fff; }
.al-card-dist   { font-size:13px; font-weight:600; color:#888; transition:color 0.3s; }
.al-card-status { font-size:12px; color:#888; display:flex; align-items:center; gap:6px; }

.al-pill {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
  padding: 4px 8px; border-radius: 20px;
}
.al-pill-above {
  background: rgba(76,175,61,0.12);
  border: 0.5px solid rgba(76,175,61,0.3);
  color: #4caf7d;
}
.al-pill-below {
  background: rgba(224,92,92,0.12);
  border: 0.5px solid rgba(224,92,92,0.3);
  color: #e05c5c;
}

.al-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.al-dot-grey { background: #888; }
.al-dot-gold {
  background: #D4AF37;
  box-shadow: 0 0 0 0 rgba(212,175,55,0.6);
  animation: alPulse 1.4s ease-in-out infinite;
}
@keyframes alPulse {
  0%   { box-shadow: 0 0 0 0   rgba(212,175,55,0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(212,175,55,0); }
  100% { box-shadow: 0 0 0 0   rgba(212,175,55,0); }
}

.al-card-remove {
  display: flex; align-items: center; justify-content: flex-end;
  position: relative;
}
.al-remove-btn {
  background: none; border: none; color: #333;
  font-size: 16px; cursor: pointer; padding: 4px 8px;
  transition: color 0.2s; line-height: 1;
}
.al-remove-btn:hover { color: #e05c5c; }
.al-remove-confirm {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #888;
  white-space: nowrap;
}
.al-confirm-yes, .al-confirm-no {
  border: none; border-radius: 6px;
  padding: 3px 8px; font-size: 11px; font-weight: 700;
  cursor: pointer; transition: opacity 0.2s;
}
.al-confirm-yes { background: #e05c5c; color: #fff; }
.al-confirm-no  { background: #2a2a3a; color: #aaa; }
.al-confirm-yes:hover, .al-confirm-no:hover { opacity: 0.8; }

@media (max-width: 900px) {
  .al-stats-row { grid-template-columns: repeat(2,1fr); }
  .al-col-headers { display:none; }
  .al-card {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto;
  }
}
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.settings-card {
  background: var(--dark);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.settings-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 20px; }
.settings-card .form-group { margin-bottom: 16px; }
.settings-danger { border-color: rgba(239,68,68,0.2); }
.settings-danger h3 { color: #ef4444; }
.settings-danger p { font-size: 14px; color: var(--grey); margin-bottom: 20px; }
.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--dark);
  border: 1px dashed var(--dark-3);
  border-radius: var(--radius-lg);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.empty-state p { font-size: 15px; color: var(--grey); margin-bottom: 24px; }
.selected-coin-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--dark-2);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: var(--radius);
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}
.learn-progress-mini {
  height: 3px;
  background: var(--dark-3);
  border-radius: 2px;
  margin: 8px 0;
  overflow: hidden;
}

/* ─── HOME Tab ────────────────────────────────────── */

/* Market Ticker */
.home-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--dark);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  height: 44px;
}
.home-ticker-label {
  padding: 0 14px;
  background: #D4AF37;
  color: #0a0a0a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.home-ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
}
.home-ticker-inner {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
  will-change: transform;
}
.home-ticker-inner:hover { animation-play-state: paused; }
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-coin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  font-weight: 700;
  cursor: default;
}
.ticker-coin-sym { color: rgba(255,255,255,0.9); }
.ticker-coin-price { color: rgba(255,255,255,0.7); font-weight: 600; }
.ticker-coin-change { font-size: 12px; font-weight: 700; }
.ticker-coin-change.up { color: #22c55e; }
.ticker-coin-change.down { color: #ef4444; }
.ticker-loading { padding: 0 20px; font-size: 13px; color: #555; }

/* Quick Stats Row */
/* ─── Home Stat Cards — Premium Redesign ──────────────── */
/* ─── Home Hero Cards Row ──────────────────────────────── */
.home-hero-row {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}
.home-hero-pf {
  flex: 3;
  position: relative;
  background: #1a1e26;
  border-radius: 12px;
  padding: 28px 32px;
  min-height: 160px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  user-select: none;
}
.home-hero-pf:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.home-hero-chart-canvas {
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
  pointer-events: none;
  opacity: 0.35;
}
.home-hero-content { position: relative; z-index: 1; }
.home-hero-learn {
  flex: 1;
  background: #1a1e26;
  border-radius: 12px;
  padding: 26px 24px;
  min-height: 160px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
  user-select: none;
}
.home-hero-learn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.home-hero-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.home-hero-value {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
}
.home-hero-unit {
  font-size: 18px;
  font-weight: 600;
  color: #888;
}
.home-hero-bar-wrap {
  background: #2e3242;
  border-radius: 3px;
  height: 5px;
  width: 100%;
  overflow: hidden;
  margin-top: 4px;
}
.home-hero-bar-fill {
  height: 100%;
  background: #D4AF37;
  border-radius: 3px;
  transition: width 0.6s ease;
}
.home-hero-bar-label { font-size: 11px; color: #666; margin-top: 4px; }
.home-hero-empty   { font-size: 13px; color: #555; }
.home-hero-loading { font-size: 13px; color: #555; font-style: italic; }

.home-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.home-stat-card {
  background: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: box-shadow 0.2s, transform 0.18s;
  min-height: 150px;
  color: #111318;
}
.home-stat-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.hsc-accent-blue, .hsc-accent-gold, .hsc-accent-green { border: none; }
.home-stat-card--link { cursor: pointer; }
.home-stat-card--link:hover { transform: translateY(-3px); }
.home-stat-card--link:active { transform: translateY(0); }

/* Card header: label left, icon right */
.hsc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.home-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666666;
}
/* Big number */
.hsc-big {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  color: #111318;
  margin-bottom: 10px;
}
.hsc-unit {
  font-size: 16px;
  font-weight: 600;
  color: #888888;
  letter-spacing: 0;
}
/* Sub-row */
.hsc-sub {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  min-height: 22px;
}
.hsc-empty  { font-size: 12px; color: #888888; }
.hsc-loading { font-size: 12px; color: #888888; font-style: italic; }
.hsc-cta    { font-size: 12px; color: #D4AF37; font-weight: 700; }
.hsc-done   { font-size: 12px; color: #4caf50; font-weight: 700; }

/* Watchlist mini coin pills */
.hsc-coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.1);
}
.hsc-coin-pill .hsc-sym { color: #333; }
.hsc-coin-pill .hsc-chg { }
.hsc-coin-pill .pos { color: #4caf50; }
.hsc-coin-pill .neg { color: #f44336; }

/* Portfolio 24h badge pill */
.hsc-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
}
.hsc-badge-pill.up   { background: #1d3a1d; color: #4caf7d; border: 1px solid rgba(76,207,125,0.2); }
.hsc-badge-pill.down { background: #3a1d1d; color: #e05c5c; border: 1px solid rgba(224,92,92,0.2); }

/* Alert proximity badge */
.hsc-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
}
.hsc-alert-badge.close  { background: rgba(255,152,0,0.18); color: #ff9800; border: 1px solid rgba(255,152,0,0.35); }
.hsc-alert-badge.far    { background: rgba(76,175,80,0.15); color: #4caf50; border: 1px solid rgba(76,175,80,0.3); }

/* Learning progress bar */
.hsc-learn-track {
  height: 7px;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}
.hsc-learn-fill {
  height: 100%;
  background: linear-gradient(90deg, #D4AF37, #f0c060);
  border-radius: 4px;
  transition: width 0.7s ease;
  min-width: 3px;
}

/* Legacy compat (still referenced nowhere but keep) */
.home-stat-value { font-size: 22px; font-weight: 900; }
.home-stat-unit  { font-size: 13px; font-weight: 600; color: #888; }
.home-stat-sub   { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hs-coin-badge   { background: rgba(212,175,55,0.12); border: 1px solid rgba(212,175,55,0.25); color: #D4AF37; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 10px; }
.home-learn-bar  { height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.home-learn-fill { height: 100%; background: linear-gradient(90deg, #D4AF37, #f0c060); border-radius: 2px; transition: width 0.6s ease; }

/* Telegram Banner */
.home-tg-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(212,175,55,0.1) 0%, rgba(41,182,246,0.06) 100%);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.home-tg-banner-left { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); }
.btn-tg-banner {
  padding: 8px 18px;
  background: linear-gradient(135deg, #D4AF37, #b8862e);
  color: #0a0a0a;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.btn-tg-banner:hover { opacity: 0.88; }
.btn-tg-dismiss { background: none; border: none; color: #555; font-size: 16px; cursor: pointer; padding: 2px 6px; transition: color 0.2s; }
.btn-tg-dismiss:hover { color: #fff; }

/* ─── Binance CTA Banner ────────────────────────────── */
.learn-banners-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: stretch;
  margin-top: 48px;
}
.learn-banners-row .binance-banner {
  flex: 1;
  margin-bottom: 0;
  min-width: 0;
}
@media (max-width: 768px) {
  .learn-banners-row {
    flex-direction: column;
  }
}
.binance-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #161a24;
  border: 2px solid #D4AF37;
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4), inset 0 0 80px rgba(243,186,47,0.03);
  position: relative;
  overflow: hidden;
}
.binance-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(243,186,47,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.binance-banner-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 200px;
}
.binance-banner-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(243,186,47,0.1);
  border: 1px solid rgba(243,186,47,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.binance-banner-text h4 {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 5px;
}
.binance-banner-text p {
  font-size: 13px;
  color: #999;
  margin: 0 0 10px;
  line-height: 1.5;
}
.binance-trust-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 700;
  color: #D4AF37;
}
.binance-dot { color: #444; font-size: 13px; }
.binance-banner-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.binance-btn {
  display: inline-block;
  background: linear-gradient(135deg, #F3BA2F, #D4AF37);
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 900;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.2px;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(243,186,47,0.25);
}
.binance-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.binance-disclaimer {
  font-size: 10px;
  color: #444;
  text-align: right;
  margin: 0;
  max-width: 220px;
  line-height: 1.4;
}

/* Home News Section */
.home-news-section { margin-top: 8px; }
.home-news-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.home-news-header h3 { font-size: 18px; font-weight: 800; }
.home-extra-posts { margin-top: 16px; }

/* Load More Button */
.home-load-more-wrap { text-align: center; margin-top: 24px; }
.btn-load-more {
  padding: 11px 28px;
  background: transparent;
  border: 1px solid rgba(212,175,55,0.35);
  color: #D4AF37;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-load-more:hover { background: rgba(212,175,55,0.08); border-color: rgba(212,175,55,0.6); }

/* ─── Settings Sections ───────────────────────────── */
.settings-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #D4AF37;
  margin: 32px 0 12px;
}
.settings-section-title:first-of-type { margin-top: 0; }
.settings-profile-card {
  background: var(--dark);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  margin-bottom: 4px;
}

/* Avatar Upload */
.avatar-upload-area { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.avatar-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
}
.avatar-preview-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(212,175,55,0.4);
}
.avatar-upload-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
}
.avatar-preview:hover .avatar-upload-overlay { opacity: 1; }
.avatar-upload-hint { flex: 1; }

/* Name row */
.settings-name-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.form-group-btn { padding-bottom: 0; }
.form-group-btn button { width: 100%; }

/* Profile avatar in tab */
.profile-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212,175,55,0.5);
  display: block;
}

/* Notification toggles */
.settings-notif-card { padding: 0 !important; overflow: hidden; }
.notif-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; flex-wrap: wrap; }
.notif-info { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.notif-label { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.notif-sub { font-size: 12px; color: #888; }
.notif-divider { height: 1px; background: var(--dark-3); }

/* Toggle Switch */
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--dark-3);
  border-radius: 13px;
  transition: background 0.2s;
}
.toggle-slider:before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: #D4AF37; }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(22px); }

/* Telegram settings card */
.settings-telegram-card { border-color: rgba(41,182,246,0.2) !important; }
.telegram-connect-row { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.telegram-steps { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--dark-3); }
.telegram-step { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.75); }
.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(41,182,246,0.15);
  border: 1px solid rgba(41,182,246,0.3);
  color: #29B6F6;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── Dashboard Quick Stats Bar ──────────────────── */
.dash-stats-bar {
  background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(26,26,26,0) 60%);
  border-bottom: 1px solid rgba(212,175,55,0.15);
  padding: 28px 0;
}
.dash-welcome-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212,175,55,0.5);
  flex-shrink: 0;
}
.dash-welcome-initials {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4AF37, #f0c040);
  color: #111;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(212,175,55,0.5);
}
.dash-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.dash-welcome-msg {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-stat-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  font-size: 13px;
  color: var(--grey);
  font-weight: 600;
}
.dash-chip svg { color: #D4AF37; }
.dash-chip-gold {
  background: rgba(212,175,55,0.08);
  border-color: rgba(212,175,55,0.25);
  color: rgba(255,255,255,0.85);
}
.chip-link { color: var(--gold); text-decoration: none; font-weight: 700; }
.chip-link:hover { text-decoration: underline; }

/* ─── Generic Tooltip ───────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e1e1e;
  border: 1px solid rgba(212,175,55,0.3);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: normal;
  width: 230px;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(212,175,55,0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 999;
}
[data-tooltip]:hover::after,
[data-tooltip]:hover::before { opacity: 1; }

/* ─── Dashboard Market Insights Bar ─────────────────── */
.dash-market-bar-wrap {
  background: rgba(212,175,55,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.dash-market-bar-wrap .market-stats-bar {
  padding: 14px 0;
}
.dash-stats-bar-inner {
  max-width: 1200px !important;
  padding: 0 24px !important;
}
@media (max-width: 900px) {
  .dash-stats-bar-inner .stat-pill { flex: 0 0 calc(50% - 6px); }
}
@media (max-width: 480px) {
  .dash-stats-bar-inner .stat-pill { flex: 0 0 100%; }
}

/* ─── Graduation Badge ────────────────────────────── */
.grad-badge-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.grad-badge-icon { width: 28px; height: 28px; transition: transform 0.2s; }
.grad-badge-nav:hover .grad-badge-icon { transform: scale(1.15) rotate(-5deg); }
.grad-badge-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  border: 1px solid rgba(212,175,55,0.4);
  color: #D4AF37;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 999;
}
.grad-badge-nav:hover .grad-badge-tip { opacity: 1; }

/* ─── Tab Bar — SVG icons & profile ──────────────── */
.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tab-btn svg { flex-shrink: 0; transition: stroke var(--transition); }
.tab-btn.active svg { stroke: var(--gold); }
.tab-label { white-space: nowrap; }

/* Profile circle tab button */
.tab-profile {
  padding: 0 !important;
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
}
.tab-profile.active { background: transparent !important; }
.profile-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4AF37, #b8862e);
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.tab-profile:hover .profile-initials { box-shadow: 0 0 0 3px rgba(212,175,55,0.35); transform: scale(1.06); }
.tab-profile.active .profile-initials { box-shadow: 0 0 0 3px rgba(212,175,55,0.55); }
.profile-initials-lg {
  width: 52px;
  height: 52px;
  font-size: 18px;
}

/* ─── Premium card upgrades ──────────────────────── */
.summary-card {
  border-color: rgba(212,175,55,0.15) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.summary-card:hover { border-color: rgba(212,175,55,0.35) !important; box-shadow: 0 8px 32px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05); }
.alert-item {
  border-color: rgba(212,175,55,0.1) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.alert-item:hover { border-color: rgba(212,175,55,0.3) !important; }
.settings-card {
  border-color: rgba(212,175,55,0.12) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.settings-danger { border-color: rgba(239,68,68,0.2) !important; }
.coin-table-wrap { border-radius: var(--radius-lg); border: 1px solid rgba(212,175,55,0.12); box-shadow: 0 4px 24px rgba(0,0,0,0.3); overflow: hidden; }
.dash-table th { background: rgba(212,175,55,0.04); }

/* ─── Empty state SVG icons ──────────────────────── */
.empty-icon { display: flex; justify-content: center; margin-bottom: 16px; }

/* ─── Settings user info header ──────────────────── */
.settings-user-info { display: flex; align-items: center; gap: 14px; }

/* ─── Telegram Connect Card ──────────────────────── */
.telegram-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, rgba(41,182,246,0.06) 0%, rgba(17,17,17,0) 80%);
  border: 1px solid rgba(41,182,246,0.2);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-top: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  flex-wrap: wrap;
  gap: 16px;
}
.telegram-card-icon { flex-shrink: 0; }
.telegram-card-body { flex: 1; min-width: 0; }
.telegram-card-body h4 { font-size: 16px; font-weight: 800; margin-bottom: 4px; color: var(--white); }
.telegram-card-body p { font-size: 14px; color: var(--grey); margin: 0; }
.btn-telegram {
  padding: 11px 22px;
  background: linear-gradient(135deg, #D4AF37, #b8862e);
  color: #0a0a0a;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.btn-telegram:hover { opacity: 0.88; transform: translateY(-1px); }

/* ─── Learn complete banner ──────────────────────── */
.learn-complete-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.04));
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px rgba(212,175,55,0.08);
}
.learn-complete-banner h3 { font-size: 18px; font-weight: 900; color: #D4AF37; margin-bottom: 6px; }
.learn-complete-banner p { font-size: 14px; color: rgba(255,255,255,0.7); margin: 0; }
.grad-achievement { display: flex; align-items: center; gap: 10px; color: #D4AF37; font-weight: 700; font-size: 14px; }

/* ─── Dashboard News Feed ────────────────────────── */
.dash-news-section { margin-top: 48px; }
.dash-news-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dash-news-header h3 { font-size: 20px; font-weight: 800; }
.dash-news-all { font-size: 14px; color: var(--gold); text-decoration: none; font-weight: 600; }
.dash-news-all:hover { text-decoration: underline; }
.dash-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dash-news-card {
  display: flex;
  flex-direction: column;
  background: var(--dark);
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.dash-news-card:hover { border-color: rgba(212,175,55,0.4); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.dash-news-img { height: 120px; background-size: cover; background-position: center; flex-shrink: 0; }
.dash-news-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.dash-news-cat { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: #D4AF37; }
.dash-news-body h4 { font-size: 14px; font-weight: 800; line-height: 1.4; margin: 0; }
.dash-news-body p { font-size: 12px; color: var(--grey); line-height: 1.5; margin: 0; flex: 1; }
.dash-news-time { font-size: 11px; color: #555; margin-top: auto; }

/* ─── Modals ──────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
}
.modal-card {
  position: relative;
  z-index: 1;
  background: var(--dark);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  margin: 24px;
}
.modal-title { font-size: 20px; font-weight: 800; margin-bottom: 24px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.form-row-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.label-hint { font-size: 10px; font-weight: 500; color: #666; text-transform: none; letter-spacing: 0; }

/* ─── Portfolio Table Extended ───────────────────────── */
.pf-table th, .pf-table td { font-size: 13px; }
.pf-buyprice { color: rgba(255,255,255,0.55); font-size: 13px; }
.pf-buyprice-empty { color: #444; font-size: 13px; }
#portfolioBody td small { font-size: 11px; display: block; }
@media (max-width: 768px) { .form-row-two { grid-template-columns: 1fr; } }
.form-select {
  appearance: none;
  cursor: pointer;
}

/* ─── Legal Pages ─────────────────────────────────── */
.legal-page { padding: 64px 0 96px; }
.legal-date { font-size: 14px; color: var(--grey); margin: 8px 0 40px; }
.legal-content h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 36px 0 12px;
  color: var(--white);
}
.legal-content h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.legal-content p { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 16px; }
.legal-content a { color: var(--gold); }

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .coin-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .learn-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--dark);
    border-bottom: 1px solid var(--dark-3);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    z-index: 1000;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 20px; border-radius: var(--radius); }
  .nav-actions { display: none; }
  .nav-actions.open { display: flex; flex-direction: column; padding: 0 16px 16px; }
  .hero-container { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { display: none; }
  .hero-headline { font-size: 42px; }
  .hero-ctas { flex-direction: column; }
  .coin-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .learn-grid { grid-template-columns: 1fr; }
  .about-container { grid-template-columns: 1fr; gap: 40px; }
  .about-image { display: none; }
  .auth-container { grid-template-columns: 1fr; }
  .auth-benefits { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { flex-direction: column; gap: 24px; }
  .stat-divider { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .binance-trust-icons { gap: 24px; flex-wrap: wrap; }
  .learn-modules-grid { grid-template-columns: 1fr; }
  .portfolio-summary { grid-template-columns: 1fr 1fr; }
  .post-sidebar { grid-template-columns: 1fr; }
  .dashboard-tabs .tab-btn { padding: 10px 10px; font-size: 12px; }
  .dash-brand-name { font-size: 14px; }
  .dash-brand-logo { width: 22px; height: 22px; }
  .tab-label { display: none; }
  .dash-pro-btn, .dash-pro-badge { font-size: 12px; padding: 6px 12px; }
  .dash-logout-btn { font-size: 12px; padding: 5px 10px; }
  .tab-profile { width: 36px; height: 36px; }
  .markets-header { flex-direction: column; align-items: flex-start; }
  .markets-search { width: 100%; }
  .dashboard-welcome-inner { flex-direction: column; }
  .dash-stats-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dash-news-grid { grid-template-columns: 1fr; }
  .telegram-card { flex-direction: column; align-items: flex-start; }
  .learn-complete-banner { flex-direction: column; text-align: center; }
  .settings-user-info { display: none; }
  .watchlist-search-wrap { width: 100%; }
  .settings-name-row { grid-template-columns: 1fr 1fr; }
  .settings-name-row .form-group-btn { grid-column: span 2; }
  .telegram-connect-row { flex-direction: column; align-items: flex-start; }
  .home-stats-row { grid-template-columns: 1fr 1fr; }
  .home-tg-banner { flex-direction: column; align-items: flex-start; }
  .home-hero-row { flex-direction: column; }
  .home-hero-pf  { min-height: 140px; padding: 22px 24px; }
  .home-hero-learn { min-height: 110px; }
  .home-hero-value { font-size: 28px; }
}

@media (max-width: 480px) {
  .coin-grid { grid-template-columns: 1fr; }
  .stat-item { padding: 16px 24px; }
  .section-title { font-size: 28px; }
  .hero-trust { flex-direction: column; gap: 12px; align-items: flex-start; }
  .portfolio-summary { grid-template-columns: 1fr; }
  .home-stats-row { grid-template-columns: 1fr; }
}

/* ─── Coin Detail Modal ───────────────────────────────── */
.cm-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
}
.cm-overlay.cm-open {
  opacity: 1; pointer-events: all;
}
.cm-box {
  position: relative;
  background: var(--dark-2, #161616);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 16px;
  width: min(580px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  transform: translateY(20px);
  transition: transform 0.22s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,175,55,0.3) transparent;
}
.cm-overlay.cm-open .cm-box {
  transform: translateY(0);
}
.cm-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--grey); font-size: 18px;
  cursor: pointer; line-height: 1; padding: 4px 8px; border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.cm-close:hover { color: #fff; background: rgba(255,255,255,0.08); }

.cm-loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; padding: 48px 0;
  color: var(--grey);
}
.cm-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid rgba(212,175,55,0.15);
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cm-header { display: flex; align-items: center; gap: 0; margin-bottom: 16px; }
.cm-header-left { display: flex; align-items: center; gap: 14px; }
.cm-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.cm-logo-placeholder {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gold); color: #000; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.cm-name { font-size: 22px; font-weight: 800; color: #fff; }
.cm-symbol { font-size: 13px; color: var(--grey); margin-top: 2px; }

.cm-price-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px; padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cm-price { font-size: 30px; font-weight: 800; color: #fff; }
.cm-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.cm-badge {
  font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 20px;
  display: flex; align-items: center; gap: 4px;
}
.cm-badge-label { font-weight: 500; opacity: 0.8; font-size: 11px; }
.cm-pos { background: rgba(0,230,118,0.12); color: #00e676; }
.cm-neg { background: rgba(255,82,82,0.12);  color: #ff5252; }

.cm-chart-tabs {
  display: flex; gap: 6px; margin-bottom: 10px;
}
.cm-tab {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: var(--grey); font-size: 12px; font-weight: 600; padding: 5px 14px;
  border-radius: 20px; cursor: pointer; transition: all 0.15s;
}
.cm-tab:hover { color: #fff; background: rgba(255,255,255,0.1); }
.cm-tab-active {
  background: rgba(212,175,55,0.15) !important;
  border-color: rgba(212,175,55,0.5) !important;
  color: var(--gold) !important;
}

.cm-chart-canvas {
  width: 100%; height: 120px; display: block;
  margin-bottom: 20px; border-radius: 8px;
}

.cm-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 20px;
}
.cm-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 12px 16px;
}
.cm-stat-label { font-size: 11px; color: var(--grey); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.cm-stat-val   { font-size: 15px; font-weight: 700; color: #fff; }

.cm-desc {
  margin-bottom: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cm-desc-title { font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.cm-desc p { font-size: 13px; color: var(--grey-light, #aaa); line-height: 1.65; }

.cm-links { display: flex; gap: 10px; flex-wrap: wrap; }
.cm-link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.25);
  color: var(--gold); text-decoration: none; transition: all 0.15s;
}
.cm-link-btn:hover { background: rgba(212,175,55,0.2); color: #fff; }

/* ─── Global Market Stats Bar ──────────────────────────────────────────────── */
.market-stats-bar {
  padding: 20px 0 24px;
  background: transparent;
}
.stats-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.stat-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
.stat-pill:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(212,175,55,0.25);
}
.stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
}
.stat-skeleton {
  display: inline-block;
  width: 70px;
  height: 18px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  animation: pulse 1.4s ease-in-out infinite;
}
.stat-divider { display: none; }
.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}
.stat-badge.extreme-fear  { background: rgba(220,50,50,0.15);  color: #ff5a5a; border: 1px solid rgba(220,50,50,0.3); }
.stat-badge.fear          { background: rgba(230,120,30,0.15); color: #f09030; border: 1px solid rgba(230,120,30,0.3); }
.stat-badge.neutral       { background: rgba(200,180,50,0.15); color: #d4af37; border: 1px solid rgba(200,180,50,0.3); }
.stat-badge.greed         { background: rgba(50,190,100,0.15); color: #30c060; border: 1px solid rgba(50,190,100,0.3); }
.stat-badge.extreme-greed { background: rgba(30,220,80,0.15);  color: #20e060; border: 1px solid rgba(30,220,80,0.3); }
.stat-badge.btc           { background: rgba(247,147,26,0.15); color: #f7931a; border: 1px solid rgba(247,147,26,0.3); }
.stat-badge.alt           { background: rgba(114,137,218,0.15);color: #7289da; border: 1px solid rgba(114,137,218,0.3); }
.stat-badge.neutral-alt   { background: rgba(200,200,200,0.1); color: #aaa;    border: 1px solid rgba(200,200,200,0.2); }
.stat-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stat-spark {
  display: block;
  flex-shrink: 0;
  opacity: 0.85;
}
@media (max-width: 900px) {
  .stats-bar-inner { flex-wrap: wrap; }
  .stat-pill { flex: 0 0 calc(50% - 6px); }
}
@media (max-width: 480px) {
  .stat-pill { flex: 0 0 100%; }
}

/* ─── Contact Page ─────────────────────────────────── */
.contact-page { padding: 80px 0; }
.contact-hero-img {
  margin: 40px 0;
  border-radius: 16px;
  overflow: hidden;
  height: 400px;
  position: relative;
}
.contact-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: drop-shadow(0 0 40px rgba(212,175,55,0.1));
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--dark);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.contact-item-icon { font-size: 28px; flex-shrink: 0; }
.contact-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.contact-item p { font-size: 14px; color: var(--grey); margin: 0; }
.contact-item a { font-size: 14px; }
.contact-form-box {
  background: var(--dark);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.8px; }
.form-input {
  background: var(--black);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--white);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--transition);
  width: 100%;
}
.form-input:focus { outline: none; border-color: var(--gold); }
.form-textarea { resize: vertical; min-height: 120px; }
.contact-success {
  background: rgba(50,190,100,0.1);
  border: 1px solid rgba(50,190,100,0.3);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: #30c060;
  font-size: 16px;
  font-weight: 600;
}
.contact-error {
  background: rgba(255,80,80,0.08);
  border: 1px solid rgba(255,80,80,0.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: #fca5a5;
  font-size: 0.88rem;
  margin-bottom: 4px;
}
.contact-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-size: 0;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ─── Learn: Next Lesson Button ─────────────────────────────────────── */
.btn-next-lesson {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  margin-left: 16px;
  padding: 10px 22px;
  background: var(--gold);
  color: #000;
  font-weight: 800;
  font-size: 14px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-next-lesson:hover { opacity: 0.88; transform: translateY(-1px); }

/* ─── Dashboard Home Section Divider ────────────────────────────────── */
.home-section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212,175,55,0.5) 20%, rgba(212,175,55,0.5) 80%, transparent);
  margin: 8px 0 32px;
}
.home-section-divider-subtle {
  width: 100%;
  height: 0.5px;
  background: #2e3242;
  margin: 20px 0 20px;
}
.home-section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 14px;
  display: block;
}

/* ─── Slim Binance Banner ─── */
.home-slim-binance {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #1e2230;
  border: 0.5px solid rgba(212,175,55,0.3);
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.home-slim-binance-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.home-slim-binance-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}
.home-slim-binance-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #D4AF37;
  flex: 1;
  flex-wrap: wrap;
}
.home-slim-dot { color: #444; }
.home-slim-binance-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}
.home-slim-binance-btn {
  display: inline-block;
  padding: 7px 16px;
  border: 1.5px solid #D4AF37;
  border-radius: 6px;
  color: #D4AF37;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.home-slim-binance-btn:hover { background: #D4AF37; color: #000; }
.home-slim-binance-disclaimer {
  font-size: 10px;
  color: #555;
}

/* Market Watch fade-out overlay */
.home-mw-col {
  position: relative;
}
.home-mw-col::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, #111318);
  pointer-events: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Binance + Market Watch side-by-side row */
.home-binance-mw-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 8px;
}
.home-slim-binance--col {
  flex: 0 0 40%;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
}
.home-mw-col {
  flex: 0 0 calc(60% - 16px);
  min-width: 0;
  border-left: none;
  max-height: 280px;
}
.home-mw-col .home-mw-insights {
  max-height: 200px;
}
.home-mw-title { font-size: 16px; }
@media (max-width: 800px) {
  .home-binance-mw-row { flex-direction: column; }
  .home-slim-binance--col { flex: none; width: 100%; }
  .home-mw-col { flex: none; width: 100%; max-height: none; }
}

/* ─── Slim full-width CTA bar ───────────────────────── */
.home-cta-bar {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,175,55,0.14);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}
.home-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
}
.home-cta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.home-cta-headline {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.home-cta-sub {
  font-size: 13px;
  color: var(--grey);
}
.home-cta-btn {
  flex-shrink: 0;
  padding: 7px 18px;
  background: transparent;
  border: 1.5px solid #D4AF37;
  color: #D4AF37;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.home-cta-btn:hover { background: #D4AF37; color: #000; }

/* ─── Two-column section ─────────────────────────────── */
.home-two-col {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  margin-bottom: 8px;
  align-items: stretch;
}
.home-right-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 380px;
}
.home-right-col .home-panel {
  flex: 1;
  min-height: 0;
}
.home-right-col .home-panel .home-panel-body {
  flex: 1;
  min-height: 0;
  max-height: none;
}

/* Panels (alerts + watchlist) */
.home-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}
.home-panel-body {
  overflow-y: auto;
  max-height: 118px;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,175,55,0.3) transparent;
}
.home-panel-body::-webkit-scrollbar { width: 3px; }
.home-panel-body::-webkit-scrollbar-track { background: transparent; }
.home-panel-body::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.3); border-radius: 3px; }
.home-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.home-panel-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.home-panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f44;
  flex-shrink: 0;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot { 0%,100%{opacity:1} 50%{opacity:0.4} }
.home-panel-count {
  font-size: 12px;
  font-weight: 700;
  color: #D4AF37;
}
.home-panel-empty {
  font-size: 13px;
  color: var(--grey);
}
.home-panel-empty a { color: #D4AF37; text-decoration: none; }

/* Alert rows */
.home-alert-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
}
.home-alert-coin {
  font-weight: 700;
  color: #fff;
  width: 48px;
  flex-shrink: 0;
}
.home-alert-price {
  flex: 1;
  color: rgba(255,255,255,0.8);
}
.home-alert-dist {
  font-size: 12px;
  color: var(--grey);
  text-align: right;
  flex-shrink: 0;
}

/* Watchlist bar + tags */
.home-wl-bar-wrap {
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  height: 5px;
  margin-bottom: 12px;
  overflow: hidden;
}
.home-wl-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #D4AF37, #f0c84a);
  border-radius: 4px;
}
.home-wl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.home-wl-tag {
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}
.home-wl-more {
  color: #D4AF37;
  border-color: rgba(212,175,55,0.3);
  background: rgba(212,175,55,0.06);
}

@media (max-width: 800px) {
  .home-two-col { grid-template-columns: 1fr; }
  .home-cta-inner { flex-wrap: wrap; gap: 10px; }
}

/* Blog post image fallback */
.dash-news-img--fallback {
  background: linear-gradient(135deg, #1a1e26, #111318);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Featured first blog post */
.dash-featured-card {
  display: flex;
  flex-direction: row;
  gap: 0;
  background: var(--dark);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 16px;
  transition: border-color 0.2s, transform 0.18s, box-shadow 0.2s;
}
.dash-featured-card:hover { border-color: rgba(212,175,55,0.4); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.dash-featured-img {
  flex: 0 0 42%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #1a1e26;
}
.dash-featured-body {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-featured-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  color: var(--text);
}
.dash-featured-excerpt {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.dash-featured-cta {
  font-size: 13px;
  font-weight: 700;
  color: #D4AF37;
  margin-top: 4px;
}
@media (max-width: 700px) {
  .dash-featured-card { flex-direction: column; }
  .dash-featured-img { flex: none; height: 160px; width: 100%; }
}

@media (max-width: 700px) {
  .home-slim-binance { flex-direction: column; align-items: flex-start; }
  .home-slim-binance-right { align-items: flex-start; }
}

/* ─── Dual CTA Banner (Binance + Market Watch) ────────────────────────── */
.home-dual-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.home-dual-card {
  background: var(--dark-1);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 180px;
}
.home-binance-card {
  border-color: rgba(243,186,47,0.25);
  border-left: 3px solid #F3BA2F;
}
.home-dual-card-footer { margin-top: auto; }
.home-dual-card-footer .binance-disclaimer { margin-top: 8px; font-size: 11px; color: var(--grey); }

/* Market Watch card */
.home-mw-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Left card — exact same height as right column (2 panels × 184px + 12px gap) */
.home-two-col .home-mw-card {
  height: 380px;
  box-sizing: border-box;
}
.home-two-col .home-mw-card .home-mw-insights {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}
.home-mw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.home-mw-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.2px;
}
.home-mw-ts {
  font-size: 11px;
  color: var(--grey);
  white-space: nowrap;
}
.home-mw-insights {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,175,55,0.3) transparent;
}
.home-mw-insights::-webkit-scrollbar { width: 4px; }
.home-mw-insights::-webkit-scrollbar-track { background: transparent; }
.home-mw-insights::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.3); border-radius: 4px; }
.mw-insight {
  font-size: 13.5px;
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border-left: 2px solid rgba(212,175,55,0.4);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mw-insight-text { flex: 1; }
.mw-insight-time {
  font-size: 11px;
  color: #555;
  text-align: right;
  font-weight: 500;
}
.mw-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--grey);
  font-size: 13px;
  padding: 10px 0;
}
.mw-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(212,175,55,0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
.mw-error {
  color: var(--grey);
  font-size: 13px;
  padding: 8px 0;
  font-style: italic;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 800px) {
  .home-dual-banner { grid-template-columns: 1fr; }
}

/* ─── Telegram Settings Sections ────────────────────────────────────── */
/* ─── Telegram cards — new layout ───────────────── */
.tg-section-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tg-badge-free { background: rgba(50,190,100,0.15); color: #30c060; border: 1px solid rgba(50,190,100,0.3); }
.tg-badge-pro  { background: rgba(212,175,55,0.15);  color: var(--gold); border: 1px solid rgba(212,175,55,0.3); }

/* Row 1 — two side-by-side cards */
.tg-row-cards {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tg-card-horizontal {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.tg-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tg-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tg-card-title { font-size: 15px; font-weight: 800; color: var(--white); }
.tg-card-desc  { font-size: 13px; color: var(--grey); line-height: 1.5; margin: 0; }
.tg-card-bot   { font-size: 12px; color: #555; font-weight: 600; }
.tg-card-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.tg-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.tg-dot-on  { background: #30c060; box-shadow: 0 0 6px rgba(48,192,96,0.55); }
.tg-dot-off { background: #444; }
.btn-tg-connect {
  display: inline-block;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold);
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.btn-tg-connect:hover { background: rgba(212,175,55,0.12); color: var(--gold); }
.tg-connected-label { color: #30c060; font-size: 13px; font-weight: 700; }

/* Row 2 — Pro card (full width, horizontal) */
.tg-card-pro-new {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 12px;
  border: 1px solid rgba(212,175,55,0.45) !important;
  background: linear-gradient(135deg, rgba(212,175,55,0.05) 0%, rgba(212,175,55,0.01) 100%) !important;
}
.tg-pro-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  flex-shrink: 0;
}
.tg-pro-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  text-align: right;
}
.tg-pro-features {
  list-style: none;
  padding: 0; margin: 8px 0 0;
  display: flex; flex-direction: column; gap: 6px;
}
.tg-pro-features li { font-size: 13px; color: rgba(255,255,255,0.82); }
.tg-pro-features li::marker { display: none; }
.btn-pro-upgrade {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #D4AF37 0%, #b8902a 100%);
  color: #000;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-pro-upgrade:hover { opacity: 0.88; transform: translateY(-1px); color: #000; }
.tg-pro-fine { font-size: 11px; color: var(--grey); margin: 0; }
.pro-active-badge {
  font-size: 0.95rem;
  font-weight: 700;
  color: #4ade80;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.btn-cancel-pro {
  background: transparent;
  border: 1px solid rgba(255,80,80,0.45);
  color: rgba(255,80,80,0.85);
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-cancel-pro:hover { background: rgba(255,80,80,0.12); color: #ff5050; }

.pro-cancel-notice {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 10px;
  font-style: italic;
}
.btn-reactivate-pro {
  background: transparent;
  border: 1px solid rgba(74,222,128,0.45);
  color: rgba(74,222,128,0.9);
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-reactivate-pro:hover { background: rgba(74,222,128,0.1); color: #4ade80; }

.settings-pro-flash {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 18px;
  line-height: 1.5;
}
.settings-pro-flash-info    { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; }
.settings-pro-flash-success { background: rgba(74,222,128,0.1);  border: 1px solid rgba(74,222,128,0.3);  color: #86efac; }
.settings-pro-flash-error   { background: rgba(255,80,80,0.1);   border: 1px solid rgba(255,80,80,0.3);   color: #fca5a5; }
.settings-pro-flash-error a { color: #D4AF37; }

@media (max-width: 768px) {
  .tg-row-cards { flex-direction: column; }
  .tg-card-horizontal { flex-direction: column; align-items: flex-start; }
  .tg-card-cta { flex-direction: row; }
  .tg-card-pro-new { flex-direction: column; align-items: flex-start; }
  .tg-pro-icon { display: none; }
  .tg-pro-cta-wrap { align-items: flex-start; text-align: left; }
}

/* ═══════════════════════════════════════════════════════
   PRO PAGE
═══════════════════════════════════════════════════════ */

/* ─── Hero ─────────────────────────────────────────── */
.pro-hero {
  background: radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.08) 0%, transparent 70%), var(--black);
  border-bottom: 1px solid rgba(212,175,55,0.12);
  padding: 80px 24px 72px;
  text-align: center;
}
.pro-hero-inner { max-width: 640px; margin: 0 auto; }
.pro-badge {
  display: inline-block;
  background: rgba(212,175,55,0.12);
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 40px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  margin-bottom: 20px;
}
.pro-headline {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin: 0 0 16px;
}
.pro-subline {
  font-size: 1.1rem;
  color: var(--grey-light);
  margin: 0 0 36px;
  line-height: 1.6;
}
.pro-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 32px;
}
.pro-price {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.pro-per { font-size: 1.1rem; color: var(--grey); }
.btn-pro-cta {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-weight: 800;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-pro-cta:hover { opacity: 0.88; transform: translateY(-2px); color: #000; }
.pro-fine {
  font-size: 12px;
  color: var(--grey);
  margin: 12px 0 0;
}
.pro-tg-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #2AABEE;
  margin-bottom: 20px;
}
.pro-error-msg {
  color: var(--red);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.pro-already-box {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  font-size: 1rem;
  color: var(--green);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.pro-check { font-size: 1.4rem; }

/* ─── Features ─────────────────────────────────────── */
/* ── Pro Split Section ──────────────────────────── */
.pro-split-section {
  background: #1a1e26;
  padding: 80px 40px;
}
.pro-split-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}
.pro-split-image-col {
  flex: 1 1 0;
  min-width: 0;
}
.pro-split-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.pro-split-text-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.pro-split-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #D4AF37;
  text-transform: uppercase;
}
.pro-split-headline {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}
.pro-split-body {
  font-size: 1rem;
  color: var(--grey-light);
  line-height: 1.75;
  margin: 0;
}
.pro-split-cta {
  margin-top: 4px;
}
@media (max-width: 768px) {
  .pro-split-section { padding: 56px 20px; }
  .pro-split-inner { flex-direction: column; gap: 36px; }
  .pro-split-image-col, .pro-split-text-col { width: 100%; }
}

.pro-features-section, .pro-how-section, .pro-disclaimer-section {
  padding: 72px 24px;
}
.pro-features-section { background: var(--dark); }
.pro-how-section { background: var(--black); }
.pro-disclaimer-section { background: var(--dark); border-top: 1px solid rgba(255,255,255,0.05); }

.pro-section-inner { max-width: 960px; margin: 0 auto; }
.pro-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 48px;
  text-align: center;
}

.pro-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pro-feature-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.pro-feature-icon { font-size: 2rem; margin-bottom: 12px; }
.pro-feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
}
.pro-feature-card p { font-size: 0.88rem; color: var(--grey); margin: 0; line-height: 1.6; }

/* ─── Steps ─────────────────────────────────────────── */
.pro-steps { display: flex; flex-direction: column; gap: 20px; }
.pro-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.pro-step-num {
  min-width: 40px;
  height: 40px;
  background: rgba(212,175,55,0.12);
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}
.pro-step-text { display: flex; flex-direction: column; gap: 4px; }
.pro-step-text strong { color: var(--white); font-size: 0.95rem; }
.pro-step-text span { color: var(--grey); font-size: 0.88rem; }

/* ─── Disclaimer ─────────────────────────────────────── */
.pro-disclaimer {
  color: var(--grey);
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

/* ─── Success Page ───────────────────────────────────── */
.pro-success-box {
  background: var(--dark);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 16px;
  padding: 56px 48px;
  max-width: 520px;
  width: 100%;
  margin: 48px auto;
  text-align: center;
}
.pro-success-icon { font-size: 3.5rem; margin-bottom: 16px; }
.pro-success-headline { font-size: 2.5rem; font-weight: 900; color: var(--white); margin: 0 0 8px; }
.pro-success-sub { color: var(--grey-light); margin: 0 0 36px; }
.pro-success-invite {
  background: rgba(212,175,55,0.07);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}
.pro-success-invite p { color: var(--grey-light); margin: 0 0 16px; font-size: 0.95rem; }
.pro-success-next { text-align: left; margin-bottom: 32px; }
.pro-success-next p { color: var(--grey); font-size: 0.88rem; margin: 0 0 10px; }
.pro-success-next ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pro-success-next li { color: var(--white); font-size: 0.9rem; }
.pro-success-dashboard-link { color: var(--gold); font-size: 0.9rem; text-decoration: none; }
.pro-success-dashboard-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .pro-features-grid { grid-template-columns: 1fr; }
  .pro-success-box { padding: 36px 24px; margin: 24px 16px; }
}

/* ═══════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVE POLISH
═══════════════════════════════════════════════════════ */

/* ── Dashboard tab bar: hide scrollbar, enable iOS swipe ── */
.dashboard-tabs {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dashboard-tabs::-webkit-scrollbar { display: none; }

/* ── Public hero: smaller headline on narrow phones ── */
@media (max-width: 480px) {
  .hero-headline { font-size: 34px; line-height: 1.15; }
  .hero-sub { font-size: 15px; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .section-title { font-size: 24px; }
  .section-sub { font-size: 14px; }
}

/* ── Navbar: tighten on small phones ── */
@media (max-width: 380px) {
  .logo-text { display: none; }
  .logo-icon { width: 30px; height: 30px; }
}

/* ── Dashboard tab bar: hide brand name + logo on very small screens ── */
@media (max-width: 480px) {
  .dash-brand-name { display: none; }
  .dash-brand-tab { padding: 0 8px 0 4px; }
}

/* ── Dashboard welcome bar: compact on mobile ── */
@media (max-width: 768px) {
  .dash-stats-bar { padding: 14px 0; }
  .dash-welcome-avatar { width: 44px; height: 44px; }
  .dash-welcome-initials { width: 44px; height: 44px; font-size: 16px; }
  .dash-welcome-msg { font-size: 15px; gap: 10px; }
  .dash-welcome-right { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 480px) {
  .dash-stats-bar { padding: 10px 0; }
  .dash-welcome-avatar { width: 36px; height: 36px; }
  .dash-welcome-initials { width: 36px; height: 36px; font-size: 13px; }
  .dash-welcome-msg { font-size: 14px; gap: 8px; }
  .dash-stat-chips { display: none; }
}

/* ── Dashboard tab-panel content: reduce horizontal padding on mobile ── */
@media (max-width: 768px) {
  .tab-panel { padding: 20px 16px 32px; }
}
@media (max-width: 480px) {
  .tab-panel { padding: 16px 12px 24px; }
}

/* ── Home stat cards: reduce padding on small screens ── */
@media (max-width: 480px) {
  .home-stat-card { padding: 16px 16px 14px; min-height: 120px; }
  .home-stats-row { gap: 10px; }
}

/* ── Home two-col: reset fixed heights when stacked ── */
@media (max-width: 800px) {
  .home-right-col { height: auto; }
  .home-two-col .home-mw-card { height: auto; }
  .home-right-col .home-panel .home-panel-body { max-height: 140px; }
  .home-two-col .home-mw-card .home-mw-insights { max-height: 220px; overflow-y: auto; }
}

/* ── Home CTA bar: stack on mobile ── */
@media (max-width: 600px) {
  .home-cta-inner { flex-direction: column; align-items: flex-start; }
  .home-cta-btn { align-self: stretch; text-align: center; }
}

/* ── Binance banner: stack right side on mobile ── */
@media (max-width: 600px) {
  .binance-banner { padding: 16px 18px; gap: 16px; }
  .binance-banner-right { align-items: flex-start; width: 100%; }
  .binance-btn { width: 100%; text-align: center; }
  .binance-disclaimer { text-align: left; max-width: 100%; }
}

/* ── Dashboard market bar: allow pills to scroll horizontally on very small screens ── */
@media (max-width: 480px) {
  .market-stats-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .stats-bar-inner { flex-wrap: nowrap; gap: 8px; padding: 0 12px; }
  .stat-pill { flex: 0 0 auto !important; white-space: nowrap; }
}

/* ── Dashboard tables: ensure horizontal scroll on mobile ── */
.markets-table-wrapper,
.coin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 600px) {
  .markets-table th, .markets-table td { font-size: 12px; padding: 10px 8px; }
  .markets-table th:nth-child(n+5),
  .markets-table td:nth-child(n+5) { display: none; }
}

/* ── Alerts tab table: collapse extra columns on mobile ── */
@media (max-width: 480px) {
  .alerts-table th:nth-child(n+4),
  .alerts-table td:nth-child(n+4) { display: none; }
}

/* ── Watchlist & portfolio search/controls: full width on mobile ── */
@media (max-width: 600px) {
  .watchlist-controls, .portfolio-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .watchlist-search-wrap, .portfolio-search-wrap { width: 100%; }
}

/* ── Learn module grid: already 1-col at 768, add card padding fix ── */
@media (max-width: 480px) {
  .learn-module-card { padding: 18px 16px; }
  .learn-block-card { padding: 16px; }
}

/* ── Blog: reduce padding on mobile ── */
@media (max-width: 768px) {
  .blog-post-content { padding: 24px 20px; }
  .blog-card { margin-bottom: 0; }
}
@media (max-width: 480px) {
  .blog-card-body { padding: 16px; }
  .blog-card-title { font-size: 15px; }
  .blog-card-img { height: 160px; }
  .blog-card-img img { height: 160px; }
}

/* ── Auth pages: reduce padding on small phones ── */
@media (max-width: 480px) {
  .auth-box { padding: 28px 20px; }
  .auth-form-inner { padding: 28px 20px; }
}

/* ── Settings: form rows stack on mobile ── */
@media (max-width: 480px) {
  .settings-name-row { grid-template-columns: 1fr; }
  .settings-name-row .form-group-btn { grid-column: span 1; }
}

/* ── Pro page: reduce hero padding on mobile ── */
@media (max-width: 480px) {
  .pro-hero { padding: 48px 20px 40px; }
  .pro-headline { font-size: 2rem; }
  .pro-price { font-size: 2.8rem; }
  .btn-pro-cta { width: 100%; text-align: center; padding: 14px 24px; }
  .pro-split-section { padding: 40px 16px; }
  .pro-features-section, .pro-how-section, .pro-disclaimer-section { padding: 48px 16px; }
}

/* ── Contact page: mobile spacing ── */
@media (max-width: 768px) {
  .contact-page { padding: 48px 0; }
}

/* ── Footer: tighten on very small screens ── */
@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; }
  .footer-top { gap: 24px; }
}

/* ── General: prevent text overflow globally ── */
* { min-width: 0; }
img { max-width: 100%; height: auto; }
.section-container, .container, .inner {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}


/* ═══════════════════════════════════════════════════════════
   SHIMMER ANIMATIONS
═══════════════════════════════════════════════════════════ */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes textShimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* Pro ⚡ button in nav — outline gold, no fill */

/* Gold shimmer text class */
.gold-shimmer {
  background: linear-gradient(105deg,#D4AF37 30%,#f5e070 45%,#fffbe0 50%,#f5e070 55%,#D4AF37 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 4s linear infinite;
}

/* ═══════════════════════════════════════════════════════════
   HOME DASHBOARD — MARKET STRIP (5 cards)
═══════════════════════════════════════════════════════════ */
.hm-strip {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.hm-sc {
  flex: 1;
  background: #161a24;
  border: 0.5px solid #252a38;
  border-radius: 10px;
  padding: 14px 16px 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 90px;
}
.hm-sc-season { border: 1px solid rgba(212,175,55,0.4); }
.hm-sc-head   { display: flex; align-items: center; justify-content: space-between; }
.hm-sc-label  { font-size: 9px; color: #556; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; }
.hm-btc-icon  { width: 18px; height: 18px; background: #f7931a; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 900; color: #fff; }
.hm-sc-value  { font-size: 16px; font-weight: 700; color: #fff; margin-top: 4px; }
.hm-sc-spark  { width: 100%; height: 28px; display: block; margin: 4px 0; }
.hm-sc-sub    { font-size: 10px; color: #556; margin-top: 2px; }
.hm-sc-bar    { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; border-radius: 0 0 10px 10px; }

/* ═══════════════════════════════════════════════════════════
   HOME DASHBOARD — MAIN 3-COLUMN GRID
═══════════════════════════════════════════════════════════ */
.hm-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.9fr;
  align-items: stretch;
  gap: 12px;
  height: 600px;
  margin-bottom: 18px;
}
.hm-col-pf    { height: 100%; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.hm-col-mid   { height: 100%; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.hm-col-right { height: 100%; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }

/* ─── Portfolio Hero Card — two-section layout ─── */
.hm-pf-card {
  flex: 1; display: flex; flex-direction: column;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(212,175,55,0.45);
}
/* Top 2px gradient accent line */
.hm-pf-topline {
  height: 2px; flex-shrink: 0;
  background: linear-gradient(90deg, #D4AF37 0%, #4caf7d 55%, transparent 100%);
}
/* TOP section — dark green-black */
.hm-pf-top {
  background: #0a1500;
  padding: 14px 16px 0;
  flex-shrink: 0;
}
/* Header row */
.hm-pf-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 8px;
  margin-bottom: 8px;
}
.hm-pf-header-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 5px;
}
.hm-pf-label {
  font-size: 9px; color: #D4AF37; text-transform: uppercase;
  letter-spacing: 0.12em; font-weight: 800; margin-bottom: 2px;
}
.hm-pf-val {
  font-size: 38px; font-weight: 800; color: #fff;
  line-height: 1; letter-spacing: -1.5px;
}
/* Live badge */
.hm-pf-live-badge {
  display: flex; align-items: center; gap: 4px;
  background: rgba(76,175,61,0.10); border: 0.5px solid rgba(76,175,61,0.4);
  border-radius: 20px; padding: 3px 8px; font-size: 9px; color: #4caf7d;
}
.hm-pf-live-dot {
  width: 5px; height: 5px; border-radius: 50%; background: #4caf7d;
  animation: pfLivePulse 1.8s ease-in-out infinite;
}
@keyframes pfLivePulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}
/* Change pills */
.hm-pf-pills { display: flex; gap: 6px; }
.hm-pf-pill {
  font-size: 12px; font-weight: 700; padding: 4px 10px;
  border-radius: 20px; white-space: nowrap;
}
.hm-pf-pill.pos { background: rgba(76,175,61,0.15); color: #4caf7d; border: 0.5px solid rgba(76,175,61,0.3); }
.hm-pf-pill.neg { background: rgba(224,92,92,0.15); color: #e05c5c; border: 0.5px solid rgba(224,92,92,0.3); }
/* Underline tabs */
.hm-pf-tabs {
  display: flex; gap: 0;
  border-bottom: 0.5px solid #1e2a10;
  margin: 0 -16px; padding: 0 16px;
}
.hm-pf-tab {
  background: transparent; border: none; border-bottom: 2px solid transparent;
  color: #444; padding: 6px 12px 5px; font-size: 11px; font-weight: 600;
  cursor: pointer; transition: color 0.15s, border-color 0.15s;
  margin-bottom: -0.5px;
}
.hm-pf-tab.active { color: #D4AF37; border-bottom-color: #D4AF37; }
.hm-pf-tab:hover:not(.active) { color: #888; }
/* Chart */
.hm-pf-chart-wrap {
  width: calc(100% + 32px); margin: 0 -16px;
  height: 120px; flex-shrink: 0;
}
.hm-pf-chart-wrap canvas { display: block; width: 100%; height: 100%; }
/* Time labels */
.hm-pf-time-labels {
  display: flex; justify-content: space-between;
  padding: 4px 0 10px;
}
.hm-pf-time-labels span {
  font-size: 9px; color: rgba(212,175,55,0.5);
}
/* BOTTOM section — very dark */
.hm-pf-bottom {
  background: #0d0f14;
  padding: 12px 16px 14px;
  display: flex; flex-direction: column; gap: 0; flex: 1;
}
/* Allocation header */
.hm-pf-alloc-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.hm-pf-alloc-title {
  font-size: 10px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 0.08em;
}
.hm-pf-alloc-sub { font-size: 9px; color: #555; }
/* Allocation rows */
.hm-pf-alloc-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; max-height: 200px; overflow-y: scroll; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #D4AF37 #1e2230; }
.hm-pf-alloc-list::-webkit-scrollbar { width: 4px; }
.hm-pf-alloc-list::-webkit-scrollbar-track { background: #1e2230; border-radius: 4px; }
.hm-pf-alloc-list::-webkit-scrollbar-thumb { background: #D4AF37; border-radius: 4px; }
.hm-pf-alloc-row  { display: flex; align-items: center; gap: 8px; }
.hm-pf-alloc-logo-wrap {
  width: 24px; height: 24px; flex-shrink: 0; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hm-pf-alloc-logo {
  width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: block;
}
.hm-pf-alloc-logo-fb {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 900; color: #fff;
}
.hm-pf-alloc-info { flex: 1; min-width: 0; }
.hm-pf-alloc-names { display: flex; align-items: baseline; gap: 5px; margin-bottom: 3px; }
.hm-pf-alloc-sym  { font-size: 11px; font-weight: 700; color: #fff; }
.hm-pf-alloc-name { font-size: 9px; color: #555; }
.hm-pf-alloc-bar-wrap {
  height: 3px; background: #1e2230; border-radius: 2px; overflow: hidden;
}
.hm-pf-alloc-bar-fill {
  height: 100%; border-radius: 2px; transition: width 0.6s ease;
}
.hm-pf-alloc-pct { font-size: 11px; font-weight: 700; min-width: 40px; text-align: right; flex-shrink: 0; }
/* Skeleton bars */
.hm-pf-alloc-skel { height: 28px; display: flex; align-items: center; }
.hm-pf-alloc-skel-bar {
  height: 10px; border-radius: 4px; width: 100%;
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: pfSkel 1.4s ease infinite;
}
@keyframes pfSkel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
/* Mini stat cards */
.hm-pf-ministats {
  display: flex; gap: 6px; margin-bottom: 14px; flex-shrink: 0;
}
.hm-pf-ministat {
  flex: 1; background: #161a24; border: 0.5px solid #1e2230;
  border-radius: 8px; padding: 8px 10px;
}
.hm-pf-ministat-lbl { font-size: 8px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.hm-pf-ministat-val { font-size: 13px; font-weight: 700; color: #fff; }
.hm-pf-ministat-val.green { color: #4caf7d; }
.hm-pf-ministat-val.gold  { color: #D4AF37; }
.hm-pf-ministat-val.white { color: #fff; }
/* CTA button */
.hm-pf-btn {
  display: block; width: 100%; flex-shrink: 0;
  background: #D4AF37; color: #111;
  border: none; border-radius: 7px; padding: 12px;
  font-size: 12px; font-weight: 700;
  cursor: pointer; text-align: center; transition: opacity 0.2s;
  box-sizing: border-box;
}
.hm-pf-btn:hover { opacity: 0.88; }

/* ─── Panel (Watchlist / Alerts) ─── */
.hm-panel {
  background: #161a24;
  border: 0.5px solid #252a38;
  border-radius: 10px;
  padding: 14px 16px 14px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.hm-ph {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.hm-ph-title { font-size: 12px; font-weight: 700; color: #ddd; }
.hm-ph-badge {
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 10px;
}
.hm-ph-badge-gold { background: rgba(212,175,55,0.15); color: #D4AF37; border: 1px solid rgba(212,175,55,0.3); }
.hm-ph-badge-red  { background: rgba(224,92,92,0.15);  color: #e05c5c; border: 1px solid rgba(224,92,92,0.3); }
.hm-panel-body { display: flex; flex-direction: column; gap: 0; flex: 1; overflow: hidden; }

/* Redesigned coin rows */
.hm-coin-row {
  background: #1e2230;
  border-radius: 8px;
  padding: 7px 10px;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 5px;
  flex-shrink: 0;
}
.hm-coin-row:last-child { margin-bottom: 0; }

/* Logo circle (colored letter) */
.hm-cr-logo {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; color: #fff;
  flex-shrink: 0; letter-spacing: 0;
}
/* Info stack: name + price */
.hm-cr-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hm-cr-name  { font-size: 12px; font-weight: 700; color: #ddd; line-height: 1.2; }
.hm-cr-price { font-size: 11px; color: #666; line-height: 1.2; }
/* Sparkline */
.hm-cr-spark { flex-shrink: 0; display: block; }
/* Change % */
.hm-cr-chg { font-size: 11px; font-weight: 700; flex-shrink: 0; text-align: right; min-width: 46px; }
.hm-cr-chg.pos { color: #4caf7d; }
.hm-cr-chg.neg { color: #e05c5c; }
/* Alert distance */
.hm-cr-dist        { font-size: 11px; font-weight: 700; color: #555; flex-shrink: 0; }
.hm-cr-dist.close  { color: #D4AF37; }
.hm-cr-dist.near   { color: #4caf7d; }

.hm-panel-empty { font-size: 12px; color: #555; padding: 6px 0; }
.hm-panel-empty a { color: #D4AF37; text-decoration: none; }
.hm-btn-outline {
  border: 1.5px solid #D4AF37; color: #D4AF37;
  background: transparent; border-radius: 7px;
  padding: 12px; font-size: 12px; font-weight: 700;
  cursor: pointer; width: 100%; flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
  margin-top: auto;
}
.hm-btn-outline:hover { background: #D4AF37; color: #000; }

/* ─── Market Watch Card ─── */
.hm-mw-card {
  background: #161a24;
  border: 1px solid rgba(212,175,55,0.45);
  border-radius: 10px;
  padding: 12px 14px 12px;
  height: 100%;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}
.hm-mw-title { font-size: 12px; font-weight: 700; color: #D4AF37; }
.hm-mw-insights {
  flex: 1; min-height: 0;
  overflow-y: scroll; overflow-x: hidden;
  margin: 8px 0 0;
  scrollbar-width: thin;
  scrollbar-color: #3a3020 transparent;
}
.hm-mw-card .hm-btn-filled {
  flex-shrink: 0;
  margin-top: 12px;
}
.hm-mw-insights::-webkit-scrollbar { width: 3px; }
.hm-mw-insights::-webkit-scrollbar-thumb { background: #3a3020; border-radius: 3px; }
/* Insight rows with emoji box */
.mw-insight {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
}
.mw-insight:last-child { border-bottom: none; }
.mw-insight-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  background: #2a2000; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; margin-top: 1px;
}
.mw-insight-body { flex: 1; min-width: 0; }
.mw-insight-text { font-size: 11px; color: #ccc; line-height: 1.4; }
.mw-insight-time { font-size: 10px; color: #555; margin-top: 2px; }
.hm-btn-filled {
  background: #D4AF37; color: #000;
  border: none; border-radius: 7px;
  padding: 9px 12px; font-size: 12px; font-weight: 700;
  cursor: pointer; width: 100%; flex-shrink: 0;
  transition: opacity 0.2s; margin-top: auto;
}
.hm-btn-filled:hover { opacity: 0.88; }

/* ─── Learning Card ─── */
.hm-learn-card {
  background: #D4AF37;
  border-radius: 10px;
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
  flex: 0 0 auto;
}
.hm-learn-card:hover { opacity: 0.93; }
.hm-learn-pct  { font-size: 38px; font-weight: 900; color: #111; line-height: 1; }
.hm-learn-sub  { font-size: 11px; color: #444; }
.hm-learn-bar-wrap { background: rgba(0,0,0,0.2); border-radius: 3px; height: 5px; overflow: hidden; }
.hm-learn-bar-fill { height: 100%; background: #111; border-radius: 3px; transition: width 0.6s ease; }
.hm-learn-label { font-size: 11px; color: #333; margin-top: 2px; }
.hm-learn-btn {
  background: #111; color: #D4AF37;
  border: none; border-radius: 7px;
  padding: 12px; font-size: 12px; font-weight: 700;
  cursor: pointer; width: 100%; margin-top: 4px;
  transition: opacity 0.2s;
}
.hm-learn-btn:hover { opacity: 0.85; }

/* ─── Binance Strip (home) ─── */
.hm-binance {
  background: #161a24;
  border: 2px solid #D4AF37;
  border-radius: 10px;
  margin-bottom: 24px;
}
.hm-binance-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 20px; gap: 16px;
}
.hm-binance-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hm-binance-headline { font-size: 14px; font-weight: 700; color: #fff; }
.hm-binance-sub { font-size: 12px; color: #888; }
.hm-binance-btn {
  background: #D4AF37; color: #000;
  border: none; border-radius: 8px;
  padding: 10px 20px; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  text-decoration: none; display: inline-block;
  transition: opacity 0.2s;
}
.hm-binance-btn:hover { opacity: 0.88; color: #000; }

/* ─── Blog section refinement ─── */
.hm-blog-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.hm-blog-label {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: #888;
}
.hm-blog-all { font-size: 13px; color: #D4AF37; text-decoration: none; font-weight: 600; }
.hm-blog-all:hover { text-decoration: underline; }
.hm-blog-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.hm-blog-card {
  background: #161a24;
  border-radius: 10px; overflow: hidden;
  text-decoration: none; display: block;
  transition: transform 0.2s;
}
.hm-blog-card:hover { transform: translateY(-2px); }
.hm-blog-img { width: 100%; height: 130px; object-fit: cover; background-size: cover; background-position: center; }
.hm-blog-body { padding: 12px 14px; }
.hm-blog-cat { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: #D4AF37; margin-bottom: 5px; display: block; }
.hm-blog-title { font-size: 13px; font-weight: 700; color: #eee; line-height: 1.4; margin: 0 0 4px; }
.hm-blog-exc { font-size: 11px; color: #777; margin: 0; line-height: 1.5; }

/* ─── Home responsive ─── */
@media (max-width: 960px) {
  .hm-grid { flex-direction: column; }
  .hm-col-mid, .hm-col-right { flex-direction: row; gap: 12px; }
  .hm-strip { flex-wrap: wrap; }
  .hm-sc { flex: 1 1 calc(33% - 10px); }
  .hm-blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hm-strip { gap: 8px; }
  .hm-sc { flex: 1 1 calc(50% - 8px); }
  .hm-col-mid, .hm-col-right { flex-direction: column; }
  .hm-blog-grid { grid-template-columns: 1fr; }
  .hm-binance-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hm-binance-btn { width: 100%; text-align: center; }
}

/* ─── Compact home overrides (v91) ─── */
.hm-grid { gap: 10px; }
.hm-col-mid, .hm-col-right { gap: 10px; }
.hm-panel { padding: 12px 14px 12px; gap: 8px; }
.hm-coin-row { padding: 7px 10px; }
.hm-mw-card { padding: 12px 14px; }
.hm-learn-card { padding: 13px 14px; }
.hm-learn-pct { font-size: 36px; margin-bottom: 2px; }
.hm-binance { margin: 0 0 12px; }
.hm-binance-inner { padding: 12px 16px; }
.hm-pf-card { min-height: 0; }
.hm-pf-btn { padding: 12px; font-size: 12px; margin-top: 0; flex-shrink: 0; }

/* ─── Scrollable inner containers ─── */
.hm-panel-body {
  max-height: 175px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #2a3040 transparent;
}
.hm-panel-body::-webkit-scrollbar { width: 4px; }
.hm-panel-body::-webkit-scrollbar-thumb { background: #2a3040; border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════
   PORTFOLIO TAB — REBUILT LAYOUT
═══════════════════════════════════════════════════════════ */

/* Page header */
.pft-page-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.pft-page-title { font-size: 22px; font-weight: 800; color: #fff; margin: 0; }
.pft-add-btn {
  display: inline-flex; align-items: center;
  background: #D4AF37; color: #111; font-weight: 800;
  border: 2px solid #D4AF37; border-radius: 6px; padding: 10px 20px;
  font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: all 0.2s; letter-spacing: 0.2px;
}
.pft-add-btn:hover {
  background: #E8C84A; border-color: #E8C84A;
  transform: translateY(-1px); box-shadow: 0 8px 24px rgba(212,175,55,0.3);
}

/* Hero grid */
.pft-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

/* Left hero card */
.pft-hero-left { display: flex; flex-direction: column; }
.pft-hero-card {
  flex: 1;
  background: #080f00;
  border: 0.5px solid #1a3000;
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.pft-hero-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 180px; pointer-events: none;
  background: radial-gradient(ellipse at 10% 0%, rgba(34,197,94,.07) 0%, transparent 60%);
}
.pft-hero-card::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 160px; height: 160px; pointer-events: none;
  background: radial-gradient(ellipse at 90% 100%, rgba(212,175,55,.06) 0%, transparent 60%);
}
.pft-hero-inner {
  padding: 14px 16px 12px;
  display: flex; flex-direction: column; flex: 1; position: relative; z-index: 1;
}
.pft-hero-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 10px;
}
.pft-hero-hdr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pft-hero-label { font-size: 9px; font-weight: 700; color: #D4AF37; letter-spacing: .08em; text-transform: uppercase; }
.pft-hero-val { font-size: 36px; font-weight: 800; color: #fff; letter-spacing: -.5px; line-height: 1.1; margin-top: 2px; }
.pft-hero-pills { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }

/* Right: Allocation card */
.pft-hero-right { display: flex; flex-direction: column; }
.pft-alloc-card {
  flex: 1;
  background: #0d0f14;
  border: 0.5px solid #1e2230;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.pft-alloc-hdr { display: flex; align-items: center; justify-content: space-between; }
.pft-alloc-title { font-size: 10px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .07em; }
.pft-alloc-sub { font-size: 9px; color: #555; }
.pft-alloc-list { display: flex; flex-direction: column; gap: 6px; flex: 1; }

/* Mini stats inside allocation card */
.pft-ministats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 4px; }
.pft-ministat {
  background: #111318; border: 0.5px solid #1e2230; border-radius: 8px;
  padding: 8px 10px; display: flex; flex-direction: column; gap: 3px;
}
.pft-ministat-lbl { font-size: 8px; color: #D4AF37; text-transform: uppercase; font-weight: 600; letter-spacing: .05em; }
.pft-ministat-val { font-size: 11px; font-weight: 700; }

/* Holdings section */
.pft-holdings-wrap { margin-bottom: 32px; }
.pft-holdings-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.pft-holdings-title { font-size: 11px; font-weight: 700; color: #D4AF37; text-transform: uppercase; letter-spacing: .07em; }
.pft-holdings-sort { font-size: 9px; color: #D4AF37; }

/* Column header row */
.pft-col-hdr {
  display: grid;
  grid-template-columns: 56px 1.5fr 1fr 1fr 1fr 80px 100px;
  gap: 0 14px;
  padding: 0 16px 8px;
}
.pft-col-hdr-lbl {
  font-size: 9px; color: #D4AF37; text-transform: uppercase;
  letter-spacing: .07em; font-weight: 600;
}

/* Individual holding card */
.pft-hcard {
  background: #161a24;
  border: 0.5px solid #1e2230;
  border-radius: 12px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 56px 1.5fr 1fr 1fr 1fr 80px 100px;
  gap: 0 14px;
  align-items: center;
  margin-bottom: 8px;
  transition: border-color .15s;
}
.pft-hcard:hover { border-color: rgba(212,175,55,.3); }

/* Coin logo */
.pft-hcard-logo-wrap {
  width: 40px; height: 40px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: #1e2230;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.pft-hcard-logo { width: 40px; height: 40px; object-fit: cover; display: block; }
.pft-hcard-logo-fb {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; color: #fff;
  background: #2a3040; border-radius: 50%;
}

/* S2: Name + Holdings */
.pft-hcard-s2 { flex: 1.5; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pft-hcard-s2-top { display: flex; align-items: baseline; gap: 6px; }
.pft-hcard-sym  { font-size: 15px; font-weight: 700; color: #fff; }
.pft-hcard-name { font-size: 11px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pft-hcard-amount { font-size: 13px; font-weight: 700; color: #aaa; line-height: 1.2; }

/* S3 + S4: Price columns (center-aligned) */
.pft-hcard-s3 { text-align: center; }
.pft-hcard-s4 { text-align: center; }
.pft-hcard-col-val { font-size: 14px; font-weight: 600; color: #fff; }
.pft-col-empty     { color: #555 !important; font-weight: 400; }

/* S5: Value + P&L stacked, right-aligned */
.pft-hcard-s5 {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  text-align: right;
}
.pft-hcard-value { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.2; }
.pft-hcard-pnl   { font-size: 10px; line-height: 1.2; }
.pft-chg-pos     { color: #4caf7d; }
.pft-chg-neg     { color: #e05c5c; }

/* S6: 24h Change, right-aligned */
.pft-hcard-s6 { text-align: right; }
.pft-hcard-chg { font-size: 12px; font-weight: 700; line-height: 1.2; }

/* Actions column, right-aligned */
.pft-hcard-actions { display: flex; flex-direction: row; gap: 5px; align-items: center; justify-content: flex-end; }
.pft-btn-edit {
  background: #1e2230; color: #888; border: none; border-radius: 4px;
  font-size: 9px; font-weight: 600; padding: 3px 10px; cursor: pointer;
  transition: color .15s, background .15s;
}
.pft-btn-edit:hover { background: #252b3a; color: #ccc; }
.pft-btn-del {
  background: transparent; color: #5a1a1a; border: none;
  font-size: 11px; font-weight: 700; padding: 4px 8px; cursor: pointer;
  border-radius: 4px; transition: color .15s, background .15s;
}
.pft-btn-del:hover { background: rgba(224,92,92,.12); color: #e05c5c; }

/* Inline delete confirmation */
.pft-del-confirm {
  display: flex; align-items: center; gap: 5px;
  flex-wrap: wrap;
}
.pft-del-txt   { font-size: 9px; color: #e05c5c; white-space: nowrap; }
.pft-del-cancel {
  background: #1e2230; color: #888; border: none; border-radius: 4px;
  font-size: 8px; font-weight: 600; padding: 3px 7px; cursor: pointer;
}
.pft-del-cancel:hover { color: #ccc; }
.pft-del-ok {
  background: rgba(224,92,92,.18); color: #e05c5c; border: none; border-radius: 4px;
  font-size: 8px; font-weight: 700; padding: 3px 7px; cursor: pointer;
}
.pft-del-ok:hover { background: rgba(224,92,92,.35); }

/* Modal X close button */
.modal-close-x {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; color: #888;
  font-size: 20px; line-height: 1; cursor: pointer;
  padding: 0 4px; border-radius: 4px;
  transition: color .15s;
}
.modal-close-x:hover { color: #ccc; }

.hm-panel-body::-webkit-scrollbar-track { background: transparent; }

/* ═══════════════════════════════════════════════════════════════════
   FULL MOBILE RESPONSIVE PASS — v133
   Target: 375px – 430px (iPhone). Desktop layouts unchanged.
   All breakpoints use max-width: 768px (or smaller where noted).
═══════════════════════════════════════════════════════════════════ */

/* ── 1. NAVIGATION ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Always show the top-right action area — but only keep the primary CTA */
  .nav-actions { display: flex !important; gap: 6px; align-items: center; }
  /* Hide less important nav buttons on mobile; keep Pro + Login/Dashboard */
  .btn-nav-ghost  { display: none !important; }
  .btn-nav-primary,
  .btn-nav-secondary,
  .btn-nav-gold   { font-size: 12px; padding: 6px 10px; }
  /* Give the hamburger a fixed touch target */
  .hamburger { min-width: 44px; min-height: 44px; justify-content: center; margin-left: 4px; }
  /* Mobile dropdown: include nav-actions inside when open */
  .nav-actions.open { flex-direction: column; padding: 0 16px 16px; width: 100%; }
}

/* ── 2. HOME DASHBOARD ─────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Market strip → horizontal scroll (single row, no wrap) */
  .hm-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .hm-strip::-webkit-scrollbar { display: none; }
  .hm-sc { flex: 0 0 148px; min-height: 82px; }

  /* Main 3-column grid → single vertical stack */
  .hm-grid {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    gap: 12px;
  }
  .hm-col-pf,
  .hm-col-mid,
  .hm-col-right {
    height: auto !important;
    flex-direction: column !important;
    gap: 10px;
  }
  .hm-pf-card { min-height: 0; }

  /* Shrink the big portfolio value so it fits */
  .hm-pf-val { font-size: 30px; letter-spacing: -1px; }

  /* Blog grid → 1 column */
  .hm-blog-grid { grid-template-columns: 1fr !important; }

  /* Binance strip → stack */
  .hm-binance-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hm-binance-btn   { width: 100%; text-align: center; }

  /* Dual CTA banner → 1 column */
  .home-dual-banner { grid-template-columns: 1fr !important; }
}

/* ── 3. PORTFOLIO ────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Page header: stack title above button */
  .pft-page-hdr { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pft-add-btn  { width: 100%; justify-content: center; }

  /* Hero grid (chart + allocation): stack to 1 column */
  .pft-hero-grid { grid-template-columns: 1fr !important; }

  /* Mini-stats in allocation card: keep 3-col but smaller */
  .pft-ministats { gap: 6px; }

  /* Hide the desktop column header row */
  .pft-col-hdr { display: none; }

  /* Holdings card: collapse 7-col grid → flex wrap rows
     Row 1: logo + name/amount + actions
     Row 2: buy price + current price
     Row 3: value + 24h change                               */
  .pft-hcard {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
  }
  .pft-hcard-logo-wrap { order: 1; width: 36px; height: 36px; flex-shrink: 0; }
  .pft-hcard-logo      { width: 36px; height: 36px; }
  .pft-hcard-logo-fb   { width: 36px; height: 36px; font-size: 13px; }
  .pft-hcard-s2        { order: 1; flex: 1; min-width: 0; }
  .pft-hcard-actions   { order: 1; flex-shrink: 0; margin-left: auto; }
  .pft-hcard-s3        { order: 2; flex: 1; text-align: left; }
  .pft-hcard-s4        { order: 2; flex: 1; text-align: left; }
  .pft-hcard-s5        { order: 3; flex: 1; align-items: flex-start; }
  .pft-hcard-s6        { order: 3; flex: 0 0 auto; text-align: left; }
  .pft-del-confirm     { order: 4; flex: 0 0 100%; margin-top: 4px; }
  .pft-hcard-col-val   { font-size: 13px; }
  .pft-hcard-sym       { font-size: 13px; }
  .pft-hcard-value     { font-size: 13px; }
}

/* ── 4. WATCHLIST ────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Page header: stack search + button below title */
  .wl-page-hdr {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px;
  }
  .wl-page-hdr > div {
    flex-direction: column !important;
    width: 100%;
    gap: 8px !important;
  }
  .watchlist-search-wrap { width: 100%; }
  .wl-search-input       { width: 100%; box-sizing: border-box; }
  .wl-add-btn            { width: 100%; justify-content: center; text-align: center; }

  /* Mini stats: 4-col → 2×2 grid */
  .wl-stats-row { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }

  /* Hide desktop column header row */
  .wl-col-hdr { display: none; }

  /* Coin rows: hide sparkline + market cap (too small to read) */
  .wl-card-spark { display: none !important; }
  .wl-card-mcap  { display: none !important; }

  /* Compact coin rows */
  .wl-card { padding: 10px 12px; gap: 10px; }
  .wl-card-price { font-size: 13px; }
  .wl-card-chg   { font-size: 12px; }
}

/* ── 5. ALERTS ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Page header: stack title above button */
  .al-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .al-header .btn-primary { width: 100%; text-align: center; }

  /* Mini stats: 4-col → 2×2 grid */
  .al-stats-row { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }

  /* Hide desktop column header row */
  .al-col-headers { display: none !important; }

  /* Alert card: remap to 3-col × 2-row mobile grid
     Row 1: [logo] [coin name]          [× remove]
     Row 2: [curr] [target price]       [▲/▼ pill]
     Hidden: distance (col 6), status (col 7)          */
  .al-card {
    grid-template-columns: 40px 1fr auto !important;
    grid-template-rows: auto auto !important;
    gap: 6px 10px !important;
    padding: 10px 12px !important;
  }
  .al-card > *:nth-child(1) { grid-column: 1; grid-row: 1; }
  .al-card > *:nth-child(2) { grid-column: 2; grid-row: 1; }
  .al-card > *:nth-child(3) { grid-column: 1; grid-row: 2; font-size: 12px; }
  .al-card > *:nth-child(4) { grid-column: 2; grid-row: 2; font-size: 12px; }
  .al-card > *:nth-child(5) { grid-column: 3; grid-row: 2; }
  .al-card > *:nth-child(6) { display: none !important; }
  .al-card > *:nth-child(7) { display: none !important; }
  .al-card > *:nth-child(8) { grid-column: 3; grid-row: 1; }

  /* Smaller logos inside alert cards */
  .al-card-logo-wrap { width: 36px; height: 36px; }
  .al-card-logo      { width: 36px; height: 36px; }
  .al-card-logo-fb   { width: 36px; height: 36px; font-size: 12px; }
  .al-card-sym       { font-size: 13px; }
  .al-card-name      { font-size: 9px; }

  /* Telegram banner inside Alerts: stack vertically */
  .telegram-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .btn-telegram { width: 100%; text-align: center; display: block; }
}

/* ── 6. LEARN PAGE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Progress banner: stack vertically */
  .learn-progress-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }
  .lpb-right { min-width: 0; width: 100%; }
  .lpb-bar-track { width: 100%; }

  /* Module cards: already 1-col via learn-modules-grid @768px */

  /* Binance + Ledger banners: stack button below text */
  .binance-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px 18px !important;
    gap: 12px !important;
  }
  .binance-banner-right { align-items: flex-start !important; width: 100%; }
  .binance-btn { width: 100%; text-align: center; }
}

/* ── 7. COINS / MARKETS PAGE ─────────────────────────────────── */
@media (max-width: 768px) {
  /* Make sure table container scrolls horizontally */
  .coin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Markets page header: stack search below title */
  .markets-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .markets-search { width: 100%; box-sizing: border-box; }

  /* Coin detail modal: comfortable padding on small screens */
  .cm-box    { padding: 20px 16px; width: min(95vw, 480px); }
  .cm-price  { font-size: 24px; }
  .cm-name   { font-size: 18px; }
  .cm-logo, .cm-logo-placeholder { width: 40px; height: 40px; font-size: 18px; }
  .cm-stats  { gap: 8px; }
  .cm-stat   { padding: 10px 12px; }
  .cm-stat-val { font-size: 13px; }
}

/* ── 8. SETTINGS PAGE ───────────────────────────────────────── */
@media (max-width: 768px) {
  /* Settings card grid: 3-col → 1-col */
  .settings-grid { grid-template-columns: 1fr !important; }

  /* All form inputs: full width */
  .settings-card input,
  .settings-card select,
  .settings-card textarea { width: 100%; box-sizing: border-box; }

  /* Name row: 2-col → 1-col */
  .settings-name-row { grid-template-columns: 1fr !important; }
  .settings-name-row .form-group-btn { grid-column: span 1 !important; }
}

/* ── 9. ALL MODALS / POPUPS ─────────────────────────────────── */
@media (max-width: 768px) {
  /* Generic modal card: fill most of the screen */
  .modal-card {
    max-width: calc(100vw - 32px) !important;
    margin: 16px !important;
    padding: 24px 18px !important;
  }
  .modal-title { font-size: 17px; margin-bottom: 16px; }

  /* Action buttons: full width, stacked */
  .modal-actions { flex-direction: column; gap: 8px; }
  .modal-actions .btn,
  .modal-actions button { width: 100%; text-align: center; }

  /* Two-col form rows → single column */
  .form-row-two { grid-template-columns: 1fr !important; }

  /* Watchlist alert modal */
  .wl-alert-modal-inner { width: calc(100vw - 32px) !important; max-width: 100%; }

  /* Delete confirmation: ensure buttons are large enough */
  .pft-del-cancel,
  .pft-del-ok,
  .wl-rm-cancel,
  .wl-rm-ok,
  .al-confirm-yes,
  .al-confirm-no { min-height: 30px; padding: 5px 10px; font-size: 10px; }
}

/* ── 10. GLOBAL MOBILE QUALITY ──────────────────────────────── */
@media (max-width: 768px) {
  /* Prevent horizontal overflow on every page */
  body { overflow-x: hidden; }
  .tab-panel,
  .dashboard-container,
  .page-main { max-width: 100%; overflow-x: hidden; }

  /* Minimum touch target 36px height for interactive elements */
  .wl-alert-btn,
  .wl-rm-btn,
  .al-remove-btn,
  .pft-btn-edit,
  .pft-btn-del { min-height: 36px; min-width: 36px; }

  /* Pro page features grid: already 1-col at 768px — reinforce */
  .pro-features-grid { grid-template-columns: 1fr !important; }

  /* Blog grid (public page): ensure 1 col */
  .blog-grid { grid-template-columns: 1fr !important; }

  /* Market stats bar: allow horizontal scroll on mobile */
  .dash-market-bar-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .stats-bar-inner { flex-wrap: nowrap; white-space: nowrap; }
  .stat-pill { flex: 0 0 auto; }
}

/* ── 11. EXTRA SMALL SCREENS (≤ 430px iPhone SE/14 Pro) ─────── */
@media (max-width: 430px) {
  /* Market strip cards: even narrower */
  .hm-sc { flex: 0 0 128px; }

  /* Portfolio mini-stats: 2-col when very narrow */
  .pft-ministats { grid-template-columns: 1fr 1fr !important; }

  /* Coin modal: tighter padding */
  .cm-box { padding: 16px 12px; }

  /* Portfolio value on home card */
  .hm-pf-val { font-size: 26px; }

  /* Dashboard tabs: even more compact */
  .dashboard-tabs .tab-btn { padding: 8px 8px; }
  .dash-pro-btn, .dash-pro-badge { font-size: 11px; padding: 5px 8px; }
}


/* ─── Cookie Consent Banner ──────────────────────────── */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1a1a;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}
.cookie-banner-visible {
  display: flex;
  animation: cookieBannerIn 0.3s ease;
}
.cookie-banner-hiding {
  animation: cookieBannerOut 0.35s ease forwards;
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes cookieBannerOut {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; }
}
.cookie-banner-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.cookie-banner-link {
  color: #D4AF37;
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}
.cookie-banner-btn {
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.18s;
}
.cookie-banner-btn:hover { opacity: 0.85; }
.cookie-banner-btn-accept {
  background: #D4AF37;
  color: #0d0d0d;
}
.cookie-banner-btn-learn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
}
@media (max-width: 600px) {
  .cookie-banner { padding: 12px 16px; }
  .cookie-banner-text { font-size: 0.78rem; }
  .cookie-banner-btn { padding: 6px 14px; }
}
