/* ═══════════════════════════════════════════════════
   BitDay Component Styles
   ═══════════════════════════════════════════════════ */

/* ── Price Ticker Bar ── */
.ticker-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ticker-h);
  background: var(--bg-ticker);
  border-bottom: 1px solid var(--border);
  z-index: var(--z-ticker);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  animation: tickerScroll 60s linear infinite;
  width: max-content;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-secondary);
}

.ticker-item img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.ticker-item .ticker-symbol {
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
}

.ticker-item .ticker-price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
}

.ticker-item .ticker-change {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.ticker-change.up {
  color: var(--green);
  background: var(--green-dim);
}

.ticker-change.down {
  color: var(--red);
  background: var(--red-dim);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: var(--ticker-h);
  left: 0;
  right: 0;
  height: var(--navbar-h);
  z-index: var(--z-navbar);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.navbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.navbar-logo .logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text);
  background: var(--orange-dim);
}

.nav-link.active {
  color: var(--orange);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff !important;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  animation: ctaPulse 2s ease-in-out infinite;
  box-shadow: 0 2px 12px rgba(247, 147, 26, 0.3);
  transition: var(--transition);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(247, 147, 26, 0.5);
  color: #fff !important;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-price {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
  padding: 6px 12px;
  background: var(--orange-dim);
  border-radius: var(--radius-full);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--bg-card);
  color: var(--orange);
  border-color: var(--orange);
}

.search-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-toggle:hover {
  background: var(--bg-card);
  color: var(--text);
}

.search-toggle kbd {
  font-size: 10px;
  margin-left: 4px;
  padding: 1px 4px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--font-mono);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-slow);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu .nav-link {
  font-size: 1.3rem;
  padding: 12px 24px;
  color: var(--text);
}

.mobile-menu .nav-cta {
  margin-top: 16px;
  font-size: 1.1rem;
  padding: 12px 32px;
}

@media (max-width: 1024px) {
  .navbar-links { display: none; }
  .hamburger { display: flex; }
  .nav-price { display: none; }
  .search-toggle kbd { display: none; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  box-shadow: 0 2px 12px rgba(247, 147, 26, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(247, 147, 26, 0.4);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--orange);
  color: var(--orange);
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 1px solid var(--orange);
}
.btn-outline:hover {
  background: var(--orange-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 8px 16px;
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-card);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius);
}

/* ── Cards ── */
.card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition: var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.card-glass {
  background: rgba(18, 18, 28, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.card-glow {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}

.card-glow:hover {
  box-shadow: var(--orange-glow-lg);
  border-color: var(--orange);
}

/* ── Stat Cards ── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  text-align: center;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text);
}

.stat-card .stat-change {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 4px;
}

/* ── Coin Cards ── */
.coin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  cursor: pointer;
  transition: var(--transition);
}

.coin-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.coin-card .coin-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.coin-card .coin-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.coin-card .coin-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.coin-card .coin-symbol {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.coin-card .coin-price {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
}

.coin-card .coin-change {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
}

.coin-sparkline {
  width: 100%;
  height: 40px;
  margin-top: 8px;
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-orange {
  background: var(--orange-dim);
  color: var(--orange);
}

.badge-green {
  background: var(--green-dim);
  color: var(--green);
}

.badge-red {
  background: var(--red-dim);
  color: var(--red);
}

.badge-blue {
  background: var(--blue-dim);
  color: var(--blue);
}

.badge-purple {
  background: var(--purple-dim);
  color: var(--purple);
}

/* ── Alert Banner ── */
.alert-banner {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  padding: 12px var(--space-lg);
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  z-index: 50;
}

.alert-banner a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.alert-banner .alert-dismiss {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

/* ── Countdown ── */
.countdown {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.countdown-item {
  text-align: center;
}

.countdown-value {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange);
}

.countdown-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

.countdown-lg .countdown-value {
  width: 80px;
  height: 80px;
  font-size: 2.2rem;
}

/* ── Market Table ── */
.market-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.market-table th {
  background: var(--bg-secondary);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.market-table th:hover {
  color: var(--text);
}

.market-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.market-table tr {
  transition: var(--transition);
}

.market-table tr:hover {
  background: var(--bg-card-hover);
}

.market-table .coin-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.market-table .coin-cell img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.market-table .price-cell {
  font-family: var(--font-mono);
  font-weight: 600;
}

.market-table .change-cell {
  font-family: var(--font-mono);
  font-weight: 600;
}

.market-table .change-cell.up { color: var(--green); }
.market-table .change-cell.down { color: var(--red); }

.market-table .star-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.market-table .star-btn:hover,
.market-table .star-btn.active {
  color: var(--yellow);
}

.table-ad-row td {
  background: var(--bg-secondary);
  padding: var(--space-md);
}

/* ── Search Modal ── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-box {
  width: 100%;
  max-width: 580px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.search-input-wrap svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1.05rem;
  font-family: var(--font-sans);
}

.search-input::placeholder {
  color: var(--text-dim);
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}

.search-result-item:hover {
  background: var(--bg-card-hover);
}

/* ── Modal Base ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text);
  background: var(--bg-card-hover);
}

.modal-body {
  padding: var(--space-lg);
}

/* ── Input / Form ── */
.input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: var(--transition);
  outline: none;
}

.input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-dim);
}

.input::placeholder {
  color: var(--text-dim);
}

.input-group {
  display: flex;
  gap: 0;
}

.input-group .input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  white-space: nowrap;
}

/* Select */
.select {
  appearance: none;
  padding: 10px 36px 10px 14px;
  background: var(--bg-secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
  cursor: pointer;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

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

.tab.active {
  background: var(--bg-card);
  color: var(--orange);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ── Category Pills ── */
.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.pill:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.pill.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* ── Accordion / FAQ ── */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-card);
  border: none;
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.accordion-header:hover {
  background: var(--bg-card-hover);
}

.accordion-icon {
  font-size: 1.2rem;
  color: var(--orange);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content {
  padding: 0 20px 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Toast Notification ── */
.toast-container {
  position: fixed;
  top: calc(var(--ticker-h) + var(--navbar-h) + 16px);
  right: 16px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  max-width: 420px;
  font-size: 0.9rem;
  animation: slideInRight 0.3s ease;
  color: var(--text);
}

.toast.toast-success { border-left: 3px solid var(--green); }
.toast.toast-error { border-left: 3px solid var(--red); }
.toast.toast-info { border-left: 3px solid var(--blue); }
.toast.toast-warning { border-left: 3px solid var(--orange); }

.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
}

/* ── Cookie Consent ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 16px var(--space-lg);
  z-index: var(--z-overlay);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: none;
}

.cookie-banner .cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(247, 147, 26, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(247, 147, 26, 0.4);
}

/* ── Loading / Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  width: 100%;
}

.skeleton-text.short { width: 60%; }
.skeleton-text.shorter { width: 40%; }

.skeleton-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-card {
  height: 120px;
  border-radius: var(--radius);
}

/* Spinner */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm { width: 18px; height: 18px; border-width: 2px; }
.spinner-lg { width: 48px; height: 48px; border-width: 4px; }

/* ── Error State ── */
.error-state {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
}

.error-state .error-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.error-state .error-message {
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

/* ── Footer ── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-about .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-about .footer-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
}

.footer-about p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--orange);
  border-color: var(--orange);
  background: var(--orange-dim);
}

.footer-column h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-column a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 5px 0;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--orange);
  padding-left: 4px;
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding: 20px var(--space-lg);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-btc-price {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 600;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Newsletter ── */
.newsletter-section {
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.08), rgba(247, 147, 26, 0.02));
  border: 1px solid rgba(247, 147, 26, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
}

.newsletter-section h3 {
  margin-bottom: 8px;
}

.newsletter-section p {
  margin: 0 auto var(--space-lg);
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form .input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.newsletter-form .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  white-space: nowrap;
}

/* ── Progress Bar ── */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* ── News Card ── */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.news-card .news-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-card .news-content {
  padding: var(--space-md);
}

.news-card .news-category {
  display: inline-block;
  margin-bottom: 8px;
}

.news-card .news-headline {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Chat Styles ── */
.chat-message {
  display: flex;
  gap: 12px;
  padding: 10px 16px;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.chat-message:hover {
  background: var(--bg-card);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.chat-msg-content {
  flex: 1;
  min-width: 0;
}

.chat-msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.chat-username {
  font-weight: 600;
  font-size: 0.88rem;
}

.chat-flag {
  font-size: 0.85rem;
}

.chat-time {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.chat-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  word-break: break-word;
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.chat-input-area .input {
  flex: 1;
}

/* ── Wheel ── */
.wheel-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.wheel-canvas {
  width: 100%;
  height: 100%;
}

.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  z-index: 2;
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  z-index: 2;
  box-shadow: 0 0 20px rgba(247, 147, 26, 0.5);
}

/* ── Social Proof ── */
.social-proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  animation: fadeInUp 0.5s ease;
}

/* ── Ad Container ── */
.ad-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-lg) auto;
  max-width: 728px;
}

.ad-container-side {
  margin: var(--space-md) 0;
}

.ad-container-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-dropdown);
  display: flex;
  justify-content: center;
  padding: 8px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

/* ── Leaderboard ── */
.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.leaderboard-rank {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-muted);
  width: 36px;
  text-align: center;
}

.leaderboard-rank.gold { color: #fbbf24; }
.leaderboard-rank.silver { color: #94a3b8; }
.leaderboard-rank.bronze { color: #cd7f32; }

/* ── Chart Placeholder ── */
.chart-area {
  width: 100%;
  height: 200px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* ── Steps ── */
.steps-list {
  counter-reset: step;
}

.step-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.step-number {
  counter-increment: step;
  width: 44px;
  height: 44px;
  background: var(--orange-dim);
  border: 2px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--orange);
  flex-shrink: 0;
}

.step-content h4 {
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Gauge ── */
.gauge-container {
  position: relative;
  width: 220px;
  height: 130px;
  margin: 0 auto;
}

.gauge-bg, .gauge-fill, .gauge-needle {
  position: absolute;
  bottom: 0;
  left: 0;
}

/* ── Horizontal Scroll Wrapper ── */
.hscroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-md);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.hscroll::-webkit-scrollbar {
  height: 4px;
}

.hscroll > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ── Certificate ── */
.certificate {
  border: 3px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  position: relative;
  overflow: hidden;
}

.certificate::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--orange);
  border-radius: var(--radius);
  opacity: 0.3;
}

/* ── AdSense-Safe Ad Wrappers ── */
.ad-wrap {
  margin: 36px 0;
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  clear: both;
  min-height: 120px;
}

.ad-label {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

[data-theme="light"] .ad-wrap {
  border-top-color: rgba(0, 0, 0, 0.08);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .ad-label {
  color: #8b8b8b;
}

/* Prevent accidental clicks near CTAs */
.claim-btn,
.btn-primary.btn-lg,
.nav-cta {
  margin-bottom: 20px;
}

/* Ad spacing from reward/CTA elements */
.ad-wrap + .earn-activities,
.earn-activities + .ad-wrap,
.hero + .ad-wrap,
.ad-wrap + .hero {
  margin-top: 40px;
}

@media (max-width: 768px) {
  .ad-wrap {
    margin: 24px 0;
    padding: 14px 0;
    min-height: 100px;
  }
}

@media (max-width: 480px) {
  .ad-wrap {
    margin: 20px 0;
    padding: 12px 0;
    min-height: 90px;
  }
}

/* ── Intro Content Section (for AdSense quality) ── */
.intro-copy {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--space-lg) 0;
}

.intro-copy h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.intro-copy p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  max-width: none;
}

/* ── Ad Wrappers ── */
.ad-wrap {
  margin: var(--space-xl) auto;
  max-width: var(--container-max);
  text-align: center;
  position: relative;
}

.ad-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-align: center;
}

.ad-container {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-lg) auto;
  overflow: hidden;
}

.ad-container-side {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

