/* ============================================================
   COGNICRAFT MOBILE v4 — GOOGLE PLAY CAROUSEL
   Horizontal scroll cards + compact header
   ============================================================ */

/* ============================================================
   1. HAMBURGER
   ============================================================ */
.mobile-hamburger {
  display: none;
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9998;
  width: 40px;
  height: 40px;
  background: rgba(20, 8, 40, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  color: #06b6d4;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-hamburger svg { width: 20px; height: 20px; }
.mobile-hamburger:active { transform: scale(0.92); background: rgba(168, 85, 247, 0.3); }

/* ============================================================
   2. DRAWER (giữ nguyên từ v3)
   ============================================================ */
.mobile-drawer { display: none; position: fixed; inset: 0; z-index: 99999; }
.mobile-drawer.open { display: block; }

.mobile-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.25s;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.mobile-drawer-panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 82%; max-width: 320px;
  background: linear-gradient(180deg, #1a0a2e 0%, #0a0118 100%);
  border-right: 1px solid rgba(168, 85, 247, 0.3);
  display: flex; flex-direction: column;
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.9);
  animation: slideInLeft 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.mobile-drawer-close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 50%; color: #06b6d4;
  cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
}

.mobile-drawer-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.mobile-drawer-logo { font-size: 24px; filter: drop-shadow(0 0 10px #a855f7); }

.mobile-drawer-brand-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem; font-weight: 900;
  background: linear-gradient(90deg, #06b6d4, #a855f7, #ec4899);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mobile-drawer-brand-sub {
  font-size: 0.6rem; color: #a78bfa;
  letter-spacing: 0.15em; text-transform: uppercase;
}

.mobile-drawer-user {
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.mobile-drawer-avatar {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #fff;
  border: 2px solid rgba(6, 182, 212, 0.6);
  flex-shrink: 0;
}

.mobile-drawer-userinfo { min-width: 0; flex: 1; }

.mobile-drawer-username {
  font-weight: 700; color: #fff; font-size: 0.9rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mobile-drawer-email {
  font-size: 0.7rem; color: #a78bfa;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mobile-drawer-nav { flex: 1; padding: 10px 6px; }

.mobile-drawer-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px;
  color: var(--text, #f0e5ff);
  text-decoration: none; font-size: 0.9rem; font-weight: 600;
  border-radius: 10px; transition: background 0.15s;
  position: relative; font-family: inherit;
  background: none; border: none;
  width: 100%; text-align: left; cursor: pointer;
  margin-bottom: 1px;
}

.mobile-drawer-item:active { background: rgba(168, 85, 247, 0.2); }

.mobile-drawer-item.active {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.25), rgba(168, 85, 247, 0.05));
  color: #06b6d4;
  box-shadow: inset 3px 0 0 #06b6d4;
}

.mobile-drawer-icon { font-size: 1.1rem; width: 24px; text-align: center; flex-shrink: 0; }
.mobile-drawer-label { flex: 1; }
.mobile-drawer-chevron { font-size: 1.3rem; color: rgba(168, 85, 247, 0.4); font-weight: 300; }

.mobile-drawer-badge {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff; padding: 2px 9px;
  border-radius: 999px; font-size: 0.68rem; font-weight: 800;
}

.mobile-drawer-footer {
  padding: 6px 6px 20px;
  border-top: 1px solid rgba(168, 85, 247, 0.15);
  margin-top: auto;
}

.mobile-drawer-logout { color: #ef4444 !important; }

/* ============================================================
   3. HEADER 52px + LOGO RIGHT
   ============================================================ */
@media (max-width: 768px) {
  .mobile-hamburger { display: flex !important; }

  .header, .mk-nav {
    height: 52px !important;
    min-height: 52px !important;
    padding: 6px 12px 6px 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    overflow: hidden !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  }

  .logo, .mk-logo {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    text-align: right !important;
    min-width: 0 !important;
  }

  .logo > div, .mk-logo > div { text-align: right !important; }
  .logo-icon { font-size: 1.35rem !important; order: 2; }

  .logo h1, .header h1, .mk-logo .text {
    font-size: 0.8rem !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 190px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
  }

  .subtitle {
    font-size: 0.5rem !important;
    letter-spacing: 0.08em !important;
    line-height: 1 !important;
  }

  .status-bar > *:not(.theme-switcher) { display: none !important; }
  .mk-nav-links { display: none !important; }

  /* ============================================================
     4. HERO + CONTROLS
     ============================================================ */
  .main { padding: 0.5rem !important; }

  .hero { padding: 0.8rem 0 1rem !important; margin-top: 8px !important; }
  .hero h2 { font-size: 1.3rem !important; margin-bottom: 4px !important; }
  .hero p { font-size: 0.75rem !important; }

  .store-tabs {
    margin: 10px auto 0 !important;
    padding: 3px !important;
    max-width: 280px !important;
  }

  .store-tab {
    padding: 6px 14px !important;
    font-size: 0.7rem !important;
  }

  .controls {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 1rem !important;
  }

  .search-box input,
  .filter-select {
    font-size: 0.8rem !important;
    padding: 0.65rem 0.9rem 0.65rem 2.4rem !important;
    border-radius: 10px !important;
  }

  .filter-select { padding-left: 0.9rem !important; }
  .search-icon { font-size: 0.9rem; left: 0.85rem; }

  .categories {
    gap: 0.35rem !important;
    margin-bottom: 1rem !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .categories::-webkit-scrollbar { display: none; }

  .category-chip {
    padding: 0.35rem 0.7rem !important;
    font-size: 0.68rem !important;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ============================================================
     5. SECTION HEADER + "See all" BUTTON (Google Play style)
     ============================================================ */
  .section {
    margin-bottom: 1.5rem !important;
    position: relative;
  }

  .section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 0.75rem !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    padding: 0 4px !important;
  }

  .section-header h3 {
    font-size: 1rem !important;
    letter-spacing: 0.03em !important;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .count {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.5rem !important;
    background: rgba(168, 85, 247, 0.15) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    border-radius: 999px !important;
    color: #a78bfa !important;
  }

  /* ============================================================
     6. HORIZONTAL SCROLL ROW — PLUGINS + THEMES
     ============================================================ */
  .plugins-grid,
  .mk-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 4px 4px 12px 4px !important;
    margin: 0 !important;
  }

  .plugins-grid::-webkit-scrollbar,
  .mk-grid::-webkit-scrollbar {
    display: none !important;
  }

  /* Card width cố định + scroll snap */
  .plugin-card,
  .theme-card {
    flex: 0 0 160px !important;
    width: 160px !important;
    scroll-snap-align: start !important;
    border-radius: 12px !important;
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    animation: none !important;
    transform: none !important;
    transition: transform 0.2s !important;
  }

  .plugin-card:active,
  .theme-card:active {
    transform: scale(0.96) !important;
  }

  /* ============================================================
     7. PLUGIN CARD — HORIZONTAL (160px wide, ~200px tall)
     ============================================================ */
  .plugin-card {
    height: 210px !important;
  }

  .plugin-icon {
    font-size: 2rem !important;
    margin: 0 auto 8px auto !important;
    width: 100% !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(6, 182, 212, 0.08)) !important;
    border: 1px solid rgba(168, 85, 247, 0.2) !important;
    border-radius: 10px !important;
    flex-shrink: 0;
  }

  .plugin-name {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin: 0 0 2px 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center;
  }

  .plugin-author {
    font-size: 0.62rem !important;
    margin: 0 0 6px 0 !important;
    opacity: 0.7;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center;
  }

  .plugin-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 0.65rem !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
    flex: 1;
    text-align: center;
  }

  .plugin-meta {
    padding: 0 !important;
    border: none !important;
    margin-top: auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.6rem !important;
    padding-top: 6px !important;
    border-top: 1px solid rgba(168, 85, 247, 0.15) !important;
  }

  .plugin-rating {
    font-size: 0.62rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
  }

  .plugin-rating.no-rating { font-size: 0.55rem !important; }

  .plugin-downloads { font-size: 0.6rem !important; opacity: 0.7; }

  /* Ẩn price row — badge sẽ đè lên góc */
  .plugin-price-row {
    position: absolute !important;
    top: 6px !important;
    left: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 5;
  }

  .plugin-card {
    position: relative !important;
    overflow: hidden !important;
  }

  .plugin-price {
    font-size: 0.55rem !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  }

  /* Badges thu nhỏ */
  .plugin-badge {
    font-size: 0.5rem !important;
    padding: 1px 5px !important;
    top: 4px !important;
    right: 4px !important;
    border-radius: 5px !important;
  }

  .badge-featured {
    top: 18px !important;
    right: 4px !important;
  }

  /* ============================================================
     8. THEME CARD — HORIZONTAL (160px wide)
     ============================================================ */
  .theme-card {
    height: 220px !important;
    min-height: 220px !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .theme-preview {
    height: 90px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
  }

  .theme-preview .mock-ui {
    transform: scale(0.7);
    transform-origin: center;
  }

  .card-info {
    padding: 6px 0 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1;
  }

  .card-name {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center;
  }

  .card-desc {
    font-size: 0.62rem !important;
    -webkit-line-clamp: 1 !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
    text-align: center;
    opacity: 0.8;
  }

  .card-meta {
    margin-top: auto !important;
    padding-top: 6px !important;
    border-top: 1px solid rgba(168, 85, 247, 0.15);
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 4px;
  }

  .card-author {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-width: 0;
    flex: 1;
  }

  .card-author img {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50%;
  }

  .card-author span {
    font-size: 0.58rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-stats {
    display: flex !important;
    gap: 6px !important;
  }

  .card-stats .stat {
    font-size: 0.55rem !important;
  }

  .price-badge {
    top: 6px !important;
    right: 6px !important;
    padding: 2px 8px !important;
    font-size: 0.55rem !important;
    border-radius: 6px !important;
    backdrop-filter: blur(8px);
  }

  /* ============================================================
     9. FEATURED CAROUSEL — 1 big card
     ============================================================ */
  .featured-3d {
    height: auto !important;
    margin-bottom: 1.5rem !important;
  }

  .featured-3d.grid-mode {
    height: auto !important;
    padding: 0 !important;
  }

  .carousel-stage {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    gap: 12px !important;
    padding: 4px !important;
    grid-template-columns: none !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .carousel-stage::-webkit-scrollbar { display: none; }

  .carousel-item,
  .carousel-stage .theme-card {
    flex: 0 0 70% !important;
    width: 70% !important;
    max-width: 260px !important;
    scroll-snap-align: center !important;
    height: 280px !important;
  }

  /* ============================================================
     10. FOOTER
     ============================================================ */
  .legal-footer {
    padding: 1rem 1rem 0.8rem !important;
    margin-top: 1.5rem !important;
  }

  .legal-footer > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin-bottom: 0.6rem !important;
  }

  .legal-footer > div:first-child > *:not(a) { display: none !important; }

  .legal-footer a {
    display: block !important;
    margin: 0 !important;
    font-size: 0.72rem !important;
    padding: 0.4rem 0 !important;
    border-bottom: 1px solid rgba(168, 85, 247, 0.08);
    text-align: center;
    text-decoration: none;
  }

  .legal-footer > div:last-child {
    font-size: 0.65rem !important;
    text-align: center;
    opacity: 0.6;
  }

  /* ============================================================
     11. MARKETPLACE
     ============================================================ */
  .mk-hero {
    min-height: auto !important;
    padding: 30px 12px 20px !important;
  }

  .hero-title {
    font-size: clamp(24px, 7vw, 34px) !important;
    line-height: 1 !important;
  }

  .hero-subtitle { font-size: 0.78rem !important; margin-top: 8px !important; }

  .hero-cta {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .btn-hero {
    width: 100% !important;
    padding: 10px 16px !important;
    font-size: 0.8rem !important;
    border-radius: 10px !important;
  }

  .hero-float-card { display: none !important; }

  .mk-filter-bar {
    padding: 8px 12px !important;
    gap: 6px !important;
  }

  .mk-search {
    font-size: 0.8rem !important;
    padding: 8px 12px !important;
    min-width: 100% !important;
  }

  .mk-select {
    font-size: 0.75rem !important;
    padding: 8px 10px !important;
    flex: 1 !important;
  }

  .tag-chips {
    padding: 6px 12px 12px !important;
    gap: 6px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .tag-chips::-webkit-scrollbar { display: none; }

  .tag-chip {
    padding: 4px 10px !important;
    font-size: 0.65rem !important;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .mk-section { padding: 16px 12px !important; }

  .mk-section-title { font-size: 1.1rem !important; }
  .mk-section-sub { font-size: 0.75rem !important; margin-bottom: 12px !important; }

  #bg-canvas { opacity: 0.4 !important; }
  .cursor-glow { display: none !important; }

  /* Modal mobile */
  .mk-modal-content {
    grid-template-columns: 1fr !important;
    max-height: 92vh !important;
    border-radius: 16px 16px 0 0 !important;
    grid-template-rows: 40vh auto !important;
  }

  .modal-info { padding: 16px !important; max-height: 50vh !important; }
  .modal-title { font-size: 1.2rem !important; }
  .modal-actions { flex-direction: column !important; gap: 6px !important; }
  .btn-modal { padding: 10px !important; font-size: 0.85rem !important; }

  /* ============================================================
     12. SCROLL INDICATOR (dấu → cuối hàng)
     ============================================================ */
  .plugins-grid::after,
  .mk-grid::after {
    content: '';
    flex: 0 0 8px;
  }
}

/* ============================================================
   13. TINY SCREEN < 375px
   ============================================================ */
@media (max-width: 374px) {
  .logo h1, .header h1 {
    font-size: 0.7rem !important;
    max-width: 140px !important;
  }

  .plugin-card, .theme-card {
    flex: 0 0 140px !important;
    width: 140px !important;
  }

  .plugin-card { height: 195px !important; }
  .theme-card { height: 205px !important; }

  .plugin-icon { height: 60px !important; font-size: 1.7rem !important; }
  .plugin-name { font-size: 0.75rem !important; }
  .theme-preview { height: 80px !important; }
}
/* ============================================================
   FIX: Hide decorations on mobile hero
   ============================================================ */
@media (max-width: 768px) {
  /* Hide cyberpunk scene + hero decorations */
  #cyberpunk-scene,
  #sakura-container,
  .grid-bg {
    display: none !important;
  }

  /* Hide theme decoration overlays */
  .hero-title::before,
  .hero-title::after,
  .mk-hero .hero-title::before,
  .mk-hero .hero-title::after {
    display: none !important;
  }

  /* Privacy/Legal pages */
  .legal-hero h1::before,
  .legal-hero h1::after {
    display: none !important;
  }

  /* Marketplace hero */
  .hero-title {
    position: static !important;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5) !important;
  }

  /* Neon City, MẮT overlays */
  [class*="neon"],
  [class*="overlay"],
  .hero h2::before,
  .hero h2::after,
  .mk-hero h2::before,
  .mk-hero h2::after {
    display: none !important;
  }
}
/* ============================================================
   FIX: Dashboard stats numbers
   ============================================================ */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .stat-card {
    padding: 1rem !important;
    min-height: 100px !important;
  }

  .stat-label {
    font-size: 0.7rem !important;
    margin-bottom: 8px !important;
  }

  .stat-value {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    color: #06b6d4 !important;
    line-height: 1 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .stat-sub {
    font-size: 0.65rem !important;
    margin-top: 6px !important;
  }

  /* Dashboard header compact */
  .dashboard-header {
    padding: 1rem !important;
  }

  .dashboard-avatar,
  .user-avatar-large {
    width: 70px !important;
    height: 70px !important;
  }

  .dashboard-name {
    font-size: 1.5rem !important;
  }

  .dashboard-email {
    font-size: 0.8rem !important;
  }
}
/* ============================================================
   FIX v5: Mobile polish — hide ALL decorations + emoji fallback
   ============================================================ */
@media (max-width: 768px) {
  /* Global emoji fallback — fix broken square icons */
  body, html, .font-display, .font-heading,
  .plugin-name, .plugin-desc, .plugin-author,
  .stat-label, .stat-value,
  .card-name, .card-desc,
  .section-header h3, .hero h2, .mk-hero h2,
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', 'JetBrains Mono',
                 'Noto Color Emoji', 'Apple Color Emoji',
                 'Segoe UI Emoji', system-ui, sans-serif !important;
  }

  /* Hide ALL background decorations + scenes */
  #cyberpunk-scene,
  #cyberpunk-scene *,
  #sakura-container,
  #sakura-container *,
  .grid-bg,
  .grid-bg *,
  #bg-canvas,
  canvas#bg-canvas,
  [class*="scene"],
  [class*="neon"],
  [class*="decor"],
  [id*="scene"],
  [id*="neon"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Dashboard stats cards — Google Play style */
  .stat-card {
    background: linear-gradient(135deg, rgba(168,85,247,0.10), rgba(6,182,212,0.06)) !important;
    border: 1px solid rgba(168, 85, 247, 0.30) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    min-height: 100px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.15) !important;
  }

  .stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #a855f7);
  }

  .stat-label {
    font-size: 0.7rem !important;
    color: #a78bfa !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .stat-value {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    color: #06b6d4 !important;
    line-height: 1 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-shadow: 0 0 12px rgba(6, 182, 212, 0.5) !important;
  }

  /* Dashboard profile card — make sure no overlap */
  #dashboard-container > div:first-child {
    position: relative !important;
    z-index: 5 !important;
    background: linear-gradient(135deg, #1a0a2e, #0a0118) !important;
  }

  /* Popular tags fallback */
  #popular-tags {
    min-height: 40px;
  }
}
