:root {
    color-scheme: dark;
    --bg: #08153dc9;           
    --panel: #131a2a;
    --panel-light: #1b2436;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --text: #e8f0ff;
    --text-muted: #8fa3c4;
    --accent1: #4b73ff;
    --accent2: #19d4ff;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow: 0 5px 25px rgba(0, 0, 0, 0.45);
    --dock-h: 72px;
}


body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;

    background: 
        radial-gradient(circle at 20% 80%, rgba(8, 30, 90, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(0, 80, 180, 0.12) 0%, transparent 45%),
        #08153dc9;
    background-attachment: fixed;
}

body {
    background: #08153dc9;
    background: radial-gradient(ellipse at top left,     rgba(10, 35, 100, 0.3) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(0, 100, 200, 0.15) 0%, transparent 50%),
                #08153dc9;
    background-attachment: fixed;
}

/* Global Reset */
* { margin:0; padding:0; box-sizing:border-box; }
a { text-decoration:none; color:inherit; }
img { display:block; }

.page { max-width: 1180px; margin: auto; padding: 1rem;   padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom) + 24px);
 }

.fadeIn { animation: fadeIn 0.6s ease forwards; }
@keyframes fadeIn {
  from {opacity:0; transform: translateY(10px);}
  to {opacity:1; transform:none;}
}
.hidden { display:none !important; }

/* ------------------------------------------------------- */
/* Topbar responsive                 */
/* ------------------------------------------------------- */

.topbar-ken-style {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 18, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 1rem 0;
  border-bottom: none;
}

.solana-gradient-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right,
    transparent 0%,
    #14F195 15%,   /* Vert Solana vif */
    #03E1FF 50%,   /* Cyan électrique au centre */
    #9945FF 85%,   /* Violet Solana */
    transparent 100%
  );
  opacity: 0.75; /* Légèrement réduite pour plus de douceur */
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(20, 241, 149, 0.3), 
              0 0 12px rgba(153, 69, 255, 0.3);
  pointer-events: none; /* Pour ne pas interférer avec les clics */
  z-index: 2;
}

/* Ligne de séparation en dégradé Solana vif, pleine largeur, avec fondu doux */
.topbar-ken-style::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px; /* Épaisseur fine mais visible */
  background: linear-gradient(to right,
    transparent 0%,
    #14F195 15%,   /* Vert Solana vif au début */
    #03E1FF 50%,   /* Cyan moderne au centre pour plus de vibrance */
    #9945FF 85%,   /* Violet Solana à la fin */
    transparent 100%
  );
  opacity: 0.7; /* Opacité réduite pour douceur */
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(20, 241, 149, 0.3), 
              0 0 12px rgba(153, 69, 255, 0.3);
  z-index: 1;
}


.topbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 600;
  transition: opacity 0.3s ease;
  z-index: 101;
}

.logo:hover { opacity: 0.9; }

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
}

/* Menu desktop */
.desktop-menu {
  display: flex;
  gap: 2.5rem;
}

.desktop-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #d0d0d8;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.desktop-menu a i { font-size: 1.1rem; }

.desktop-menu a:hover,
.desktop-menu a.active { color: #00e5d0; }

.desktop-menu a::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #00e5d0;
  transition: width 0.35s ease, left 0.35s ease;
  border-radius: 1px;
}

.desktop-menu a:hover::after,
.desktop-menu a.active::after {
  width: 100%;
  left: 0;
}

/* Bouton Connect desktop */
.desktop-cta {
  padding: 0.75rem 1.8rem;
  background: #ffffff;
  color: #00a390;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.35s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.desktop-cta:hover {
  background: #00e5d0;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 229, 208, 0.35);
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(8, 10, 18, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 100;
}

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

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
  padding: 2rem;
}

.mobile-menu a {
  color: #e0e0e0;
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: color 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: #00e5d0;
}

.mobile-menu a i {
  font-size: 1.6rem;
}

.mobile-cta {
  margin-top: 1.5rem;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
  .desktop-menu { gap: 1.8rem; }
  .desktop-menu a { font-size: 0.95rem; }
}

@media (max-width: 900px) {
  .desktop-menu,
  .desktop-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .topbar-container {
    padding: 0 1.5rem;
  }
}
/* ------------------------------------------------------- */
/* Buttons                                                 */
/* ------------------------------------------------------- */

.btn { padding: 0.55rem 1rem; border-radius: var(--radius); cursor:pointer; font-weight:600; border: none; transition:0.15s; font-size:0.9rem; }
.btn.primary { background: linear-gradient(90deg, var(--accent1), var(--accent2)); color:#07101d; }
.btn.primary:hover { opacity:0.85; }
.btn.ghost { border:1px solid var(--border); background: transparent; color: var(--text); }
.btn.ghost:hover { background: var(--glass); }
.btn.xl { padding:0.7rem 1.4rem; font-size:1rem; }
.section-title { font-size:1.6rem; font-weight:600; margin-bottom:0.6rem; }
.lead { color:var(--text-muted); }
.center { text-align:center; }

/* Hero, cards, tableaux, etc. → tout le reste de ton CSS original (inchangé) */
.hero-pro { display:flex; justify-content:space-between; align-items:center; margin-top:2rem; margin-bottom:3rem; gap:2rem; }
.hero-left { max-width:500px; }
.hero-title { font-size:2.4rem; font-weight:700; line-height:1.25; }
.gradient { background: linear-gradient(90deg, var(--accent1), var(--accent2)); -webkit-background-clip: text; color: transparent; }
.hero-sub { color: var(--text-muted); font-size:1rem; margin-top:0.6rem; line-height:1.5; }
.hero-cta-row { display:flex; gap:1rem; margin-top:1.4rem; }
.hero-stats-row { display:flex; gap:1.2rem; margin-top:1.6rem; }
.stat-box { background: var(--panel); padding: 0.8rem 1rem; border-radius: var(--radius); border:1px solid var(--border); text-align:center; }
.stat-value { font-size:1.25rem; font-weight:600; }
.stat-label { font-size:0.75rem; color:var(--text-muted); }
.hero-right { flex:1; display:flex; justify-content:center; }
.dashboard-preview { width:420px; height:260px; background: var(--panel-light); border-radius: var(--radius-lg); border:1px solid var(--border); box-shadow: var(--shadow); overflow:hidden; display:flex; flex-direction:column; }
.preview-header { padding:0.6rem 1rem; border-bottom:1px solid var(--border); font-size:0.85rem; color:var(--text-muted); }
.preview-body { flex:1; background: repeating-linear-gradient(to bottom, var(--bg-light), var(--bg-light) 24px, var(--panel) 25px); opacity:0.4; }


/* ------------------------------------------------------- */
/* Value proposition cards                                 */
/* ------------------------------------------------------- */

.value-pro { margin:3rem 0; }

.value-grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap:1.2rem;
}

.value-card {
  background: var(--panel);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:1.2rem;
  transition:0.15s;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.value-card i {
  font-size:1.4rem;
  color: var(--accent2);
  margin-bottom:0.6rem;
}
.value-card h3 {
  font-size:1rem;
  margin-bottom:0.3rem;
}

/* ------------------------------------------------------- */
/* Podium Pro (Home + Board)                               */
/* ------------------------------------------------------- */

.podium-pro-row {
  display:flex;
  justify-content:center;
  gap:1.4rem;
  margin-top:0.6rem;
}

.podium-pro-card {
  width:180px;
  text-align:center;
  background: var(--panel);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:1rem;
  transition:0.15s;
}
.podium-pro-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.podium-rank {
  font-size:1.6rem;
  margin-bottom:0.4rem;
}

.podium-avatar {
  width:68px;
  height:68px;
  border-radius:50%;
  margin:auto;
  object-fit:cover;
  border:2px solid var(--border);
}

.podium-name {
  margin-top:0.4rem;
  font-weight:600;
}

.podium-pnl {
  margin-top:0.25rem;
  font-size:0.85rem;
  color:var(--accent2);
}

/* ------------------------------------------------------- */
/* Table (Home preview / Board base)                       */
/* ------------------------------------------------------- */

.saas-table-wrap {
  margin-top: 1rem;
  background: var(--panel-light);
  padding: 1rem;
  border-radius: var(--radius-lg);
  border:1px solid var(--border);
  box-shadow: var(--shadow);
}

.saas-table {
  width:100%;
  border-collapse:collapse;
  font-size:0.85rem;
}

.saas-table th {
  text-align:left;
  padding:0.6rem;
  color:var(--text-muted);
  font-size:0.75rem;
  border-bottom:1px solid var(--border);
  cursor:pointer;
}
.saas-table th[data-sort]:hover {
  color:var(--accent2);
}

.saas-table td {
  padding:0.6rem;
  border-bottom:1px solid rgba(255,255,255,0.05);
}

.kol-cell {
  display:flex;
  align-items:center;
  gap:0.5rem;
}
.kol-sm {
  width:32px;
  height:32px;
  border-radius:50%;
  object-fit:cover;
}
.kol-twitter {
  width:22px;
  height:22px;
  border-radius:50%;
}

/* Compact rows */
.saas-table.compact td {
  padding:0.4rem 0.45rem;
  font-size:0.8rem;
}
.saas-table.compact th {
  padding:0.4rem 0.45rem;
}

/* ------------------------------------------------------- */
/* Latest / Guides / Newsletter / FAQ / Footer             */
/* (Home)                                                  */
/* ------------------------------------------------------- */

.latest-pro { margin:3rem 0; }
.latest-pro-grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap:1rem;
}
.latest-pro-card {
  background: var(--panel);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:0.9rem;
  display:flex;
  gap:0.8rem;
  position:relative;
  transition:0.15s;
}
.latest-pro-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
/* --- Badges HOT / NEW / UPDATED --- */
.latest-tag {
  position: absolute;
  top: 0.55rem;
  right: 0.75rem;
  z-index: 3; /* au-dessus du glow doré et du contenu */

  padding: 0.20rem 0.55rem;
  border-radius: 999px;

  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;

  background: linear-gradient(135deg, #f5c76a, #ffdfaa);
  color: #1a1200;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);

  pointer-events: none; /* évite de gêner le hover de la card */
}

.latest-avatar {
  width:50px;
  height:50px;
  border-radius:50%;
  object-fit:cover;
}
.latest-info { flex:1; }
.latest-title { font-weight:600; }
.latest-meta {
  font-size:0.8rem;
  color:var(--text-muted);
}
.latest-tag {
  position:absolute;
  right:10px;
  top:10px;
  background:linear-gradient(90deg,var(--accent1),var(--accent2));
  font-size:0.7rem;
  padding:3px 6px;
  border-radius:6px;
  color:#07101d;
}

.guides-pro-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(240px,1fr));
  gap:1rem;
  margin-top:1rem;
}
.guide-card-pro {
  background: var(--panel);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:1.2rem;
  transition:0.15s;
}
.guide-card-pro:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.guide-card-pro h3 { margin-bottom:0.4rem; }

.newsletter-pro {
  margin:3rem 0;
  background: var(--panel-light);
  padding:2rem;
  border-radius: var(--radius-lg);
  text-align:center;
  border:1px solid var(--border);
}
.newsletter-pro-form {
  margin-top:1rem;
  display:flex;
  gap:0.6rem;
  justify-content:center;
}
.newsletter-pro-form input {
  padding:0.6rem 1rem;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:var(--panel);
  color:var(--text);
}

.faq-pro-list {
  max-width:700px;
  margin:auto;
}
.faq-pro-list details {
  background: var(--panel);
  border:1px solid var(--border);
  padding:0.8rem 1rem;
  border-radius:var(--radius);
  margin-bottom:0.8rem;
  cursor:pointer;
}
.faq-pro-list summary {
  font-weight:600;
  font-size:0.95rem;
}

.footer-pro {
  text-align:center;
  padding:2rem 0;
  margin-top:3rem;
  border-top:1px solid var(--border);
  color:var(--text-muted);
  padding-bottom: calc(2rem + var(--dock-h) + env(safe-area-inset-bottom));
}
.footer-icons i {
  margin:0 0.35rem;
  font-size:1.15rem;
  color:var(--text-muted);
  transition:0.15s;
}
.footer-icons i:hover { color:var(--accent2); }

/* ------------------------------------------------------- */
/* PROFILE PAGE - Arkham / Wallet Intelligence style       */
/* ------------------------------------------------------- */

.profile-page { margin-top: 1.5rem; }

/* Header strip */
.profile-header {
  display:flex;
  justify-content:space-between;
  gap:1.5rem;
  padding:1.2rem 1.4rem;
  background: var(--panel-light);
  border-radius: var(--radius-lg);
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom:1.5rem;
}

/* --- Profile prev/next navigation (desktop only) --- */
.profile-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.6rem 0 0.5rem;
}

.profile-nav-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(5, 7, 18, 0.85);
  cursor: pointer;
  transition: 0.15s;
}

.profile-nav-link:hover {
  color: var(--accent2);
  border-color: var(--accent2);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .profile-nav {
    display: none;
  }
}

/* --- Latest trades toolbar --- */
.latest-trades-toolbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
}

.latest-trades-toolbar .filter-chip.small {
  padding: 0.18rem 0.55rem;
}


.profile-header-left {
  display:flex;
  gap:1rem;
  align-items:center;
}

.profile-avatar-wrap {
  width:72px;
  height:72px;
  border-radius:50%;
  border:2px solid var(--border);
  overflow:hidden;
}
.profile-avatar-lg {
  width:100%;
  height:100%;
  object-fit:cover;
}

.profile-title {
  font-size:1.5rem;
  font-weight:600;
}

.profile-tags-row {
  display:flex;
  flex-wrap:wrap;
  gap:0.4rem;
  margin-top:0.35rem;
}

.profile-tag {
  font-size:0.75rem;
  padding:0.15rem 0.5rem;
  border-radius:999px;
  background: var(--panel);
  border:1px solid var(--border);
}
.profile-tag.positive { border-color:#19ff73; }
.profile-tag.badge {
  background:rgba(25, 212, 255, 0.06);
  border-color:var(--accent2);
}

.profile-social-row {
  display:flex;
  flex-wrap:wrap;
  gap:0.4rem;
  margin-top:0.4rem;
}
.social-pill {
  display:flex;
  align-items:center;
  gap:0.35rem;
  font-size:0.8rem;
  padding:0.25rem 0.6rem;
  border-radius:999px;
  background:var(--panel);
  border:1px solid var(--border);
  color:var(--text-muted);
}
.social-pill i { font-size:0.9rem; }

.profile-header-right {
  display:flex;
  gap:1rem;
  align-items:center;
}
.header-metric { min-width:90px; text-align:right; }

.metric-label {
  font-size:0.75rem;
  color:var(--text-muted);
}
.metric-value {
  font-size:1.05rem;
  font-weight:600;
}
.metric-value.pos { color:#19ff73; }
.metric-value.neg { color:#ff4b4b; }

/* Layout grid */
.profile-grid {
  display:grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr);
  gap:1.4rem;
}

.profile-col-left,
.profile-col-right {
  display:flex;
  flex-direction:column;
  gap:1.1rem;
}

/* Panels */
.panel.profile-panel {
  background:var(--panel);
  border-radius:var(--radius);
  border:1px solid var(--border);
  box-shadow: var(--shadow);
}

.panel-header {
  padding:0.75rem 1rem;
  border-bottom:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.panel-header h2 { font-size:0.95rem; }

.panel-header .panel-sub {
  font-size:0.75rem;
  color:var(--text-muted);
}

.panel-body {
  padding:0.8rem 1rem 1rem;
}

/* Wallet + Actions */
.wallet-row { margin-bottom:0.8rem; }
.wallet-label { font-size:0.8rem; color:var(--text-muted); }

.wallet-inline {
  margin-top:0.3rem;
  display:flex;
  align-items:center;
  gap:0.45rem;
}
.wallet-text {
  font-family:monospace;
  background:var(--panel-light);
  border-radius:var(--radius);
  padding:0.3rem 0.5rem;
  font-size:0.8rem;
  max-width:100%;
  word-break:break-all;
}
.wallet-copy {
  background:transparent;
  border:1px solid var(--border);
  color:var(--text-muted);
  font-size:0.8rem;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0.3rem 0.6rem;
  cursor:pointer;
}

.profile-actions-row {
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
  margin-top:0.6rem;
}

.watch-toggle {
  display:flex;
  align-items:center;
  gap:0.4rem;
  background:transparent;
  border:1px solid var(--border);
  color:var(--text-muted);
}
.watch-toggle.active {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color:#07101d;
  border-color:transparent;
}
.share-btn {
  display:flex;
  align-items:center;
  gap:0.4rem;
}

/* Rating row (emojis) */
.rating-row { margin-top:0.9rem; }
.rating-label {
  font-size:0.8rem;
  color:var(--text-muted);
  margin-bottom:0.3rem;
}
.rating { display:flex; flex-direction:column; gap:0.25rem; }
.emojis {
  display:flex;
  gap:0.25rem;
}
.emoji {
  background:transparent;
  border:none;
  font-size:1.35rem;
  cursor:pointer;
  filter: grayscale(40%);
  transition: transform 0.12s, filter 0.12s;
}
.emoji:hover {
  transform:scale(1.15);
  filter:none;
}
.emoji.active {
  transform:scale(1.2);
  filter:none;
}
.rating-msg {
  font-size:0.8rem;
  color:var(--text-muted);
}

/* Description */
.desc-text {
  font-size:0.9rem;
  color:var(--text-muted);
  line-height:1.5;
}
.desc-placeholder { font-style:italic; }

/* Trades */
.trade-grid {
  display:flex;
  flex-direction:column;
  gap:0.6rem;
}
.trade-pill {
  display:flex;
  align-items:center;
  gap:0.6rem;
  padding:0.6rem 0.7rem;
  border-radius:var(--radius);
  background:var(--panel-light);
  border:1px solid var(--border);
  font-size:0.85rem;
}
.trade-logo {
  width:28px;
  height:28px;
  border-radius:8px;
  background:linear-gradient(135deg,var(--accent1),var(--accent2));
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0.8rem;
  font-weight:700;
  color:#07101d;
}
.trade-title { font-weight:600; }
.trade-sub {
  font-size:0.75rem;
  color:var(--text-muted);
}

/* PnL Panel */
.pnl-header-stats {
  display:flex;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:0.7rem;
}
.pnl-chart-wrap {
  padding:0.4rem 0.2rem 0;
}

/* Similar KOLs */
.similar-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Carte générique (Latest trades, Similar KOLs, best/worst token) */
.similar-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border-radius: 18px;
  background: radial-gradient(circle at 0% 0%, #141929, #0b0f1c);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
}

.similar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(0,0,0,0.8);
  background: radial-gradient(circle at 0% 0%, #171f33, #0b0f1c);
}

.similar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.similar-info {
  flex: 1;
  min-width: 0;
}

/* Ligne titre + badge temps */
.similar-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.1rem;
}

.similar-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f9fbff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.similar-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* How to use */
.profile-howto-list {
  list-style:none;
  padding-left:0;
}
.profile-howto-list li {
  display:flex;
  align-items:flex-start;
  gap:0.45rem;
  font-size:0.85rem;
  margin-bottom:0.4rem;
  color:var(--text-muted);
}
.profile-howto-list li span {
  font-size:1rem;
}

/* ------------------------------------------------------- */
/* WATCHLIST PAGE — SaaS Pro                               */
/* ------------------------------------------------------- */

.watchlist-page { margin-top: 1.5rem; }
.watchlist-header { margin-bottom: 1.2rem; }

.watchlist-lead {
  max-width: 620px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Stats panel */
.watchlist-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.stat-box-sm {
  flex: 1 0 130px;
  background: var(--panel-light);
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
}
.stat-box-sm .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.stat-box-sm .stat-value {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

/* Filters */
.watchlist-filters-panel .filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.watchlist-filters-panel select,
.watchlist-filters-panel input[type="number"] {
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel-light);
  color: var(--text);
  font-size: 0.85rem;
}

.filter-clear i {
  margin-right: 0.3rem;
}

/* Cards */
.watchlist-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.watchlist-card {
  background: var(--panel-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: var(--shadow);
  transition: 0.15s;
}
.watchlist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
}

.watchlist-main {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.watchlist-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.watchlist-info { flex: 1; }

.watchlist-name {
  font-size: 0.95rem;
  font-weight: 600;
}
.watchlist-twitter {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.watchlist-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
}
.watchlist-metrics span {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.watchlist-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.watchlist-actions {
  display: flex;
  gap: 0.4rem;
}
.watchlist-view-btn,
.watchlist-remove-btn {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  cursor: pointer;
}
.watchlist-view-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}
.watchlist-remove-btn {
  border: 1px solid rgba(255,80,80,0.5);
  background: transparent;
  color: #ff8080;
}

.watchlist-empty {
  text-align: center;
  color: var(--text-muted);
  margin-top: 1.4rem;
  font-size: 0.9rem;
}

/* ------------------------------------------------------- */
/* BOARD / LEADERBOARD — SaaS Pro Arkham x GMGN            */
/* ------------------------------------------------------- */

/* Sticky filter bar */
.filters-bar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  padding:0.5rem 1rem;
  margin-top:0.6rem;
  margin-bottom:0.6rem;
  background: linear-gradient(90deg, rgba(14,18,35,0.96), rgba(12,20,40,0.96));
  border-radius: var(--radius-lg);
  border:1px solid var(--border);
}
.filters-bar.sticky {
  position:sticky;
  top:56px; /* sous la topbar */
  z-index:90;
}

.filters-left,
.filters-right {
  display:flex;
  align-items:center;
  gap:0.5rem;
  flex-wrap:wrap;
}

.filter-input {
  padding:0.35rem 0.6rem;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:var(--panel-light);
  color:var(--text);
  font-size:0.8rem;
  width:120px;
}

.filter-select {
  padding:0.35rem 0.6rem;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:var(--panel-light);
  color:var(--text);
  font-size:0.8rem;
}

.filter-chip {
  padding:0.32rem 0.7rem;
  border-radius:999px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text-muted);
  font-size:0.8rem;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:0.35rem;
}
.filter-chip.small { padding:0.25rem 0.6rem; }
.filter-chip.active {
  background:linear-gradient(90deg,var(--accent1),var(--accent2));
  color:#07101d;
  border-color:transparent;
}

.filter-reset {
  padding:0.32rem 0.7rem;
  border-radius:999px;
  border:none;
  background:transparent;
  color:var(--text-muted);
  font-size:0.8rem;
  cursor:pointer;
}
.filter-reset:hover { color:var(--accent2); }

.view-btn {
  width:32px;
  height:32px;
  border-radius:999px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text-muted);
  font-size:0.85rem;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.view-btn.active {
  background:var(--panel-light);
  color:var(--accent2);
}

/* Board header */
.board-header {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin-top:0.4rem;
}
.board-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.sort-chip {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(5, 7, 18, 0.96);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  opacity: 0.9;
}

.board-counter {
  font-size:0.85rem;
  color:var(--text-muted);
}

/* Cards view */
.cards-grid {
  margin-top:1rem;
}
#cardsContainer {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap:0.9rem;
}

.board-card {
  background: var(--panel-light);
  border-radius:var(--radius);
  border:1px solid var(--border);
  padding:0.75rem 0.85rem;
  display:flex;
  flex-direction:column;
  gap:0.45rem;
  box-shadow: var(--shadow);
  transition:0.15s;
  font-size:0.82rem;
}
.board-card:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 28px rgba(0,0,0,0.65);
}

.bc-header {
  display:flex;
  align-items:center;
  gap:0.55rem;
}
.bc-avatar {
  width:36px;
  height:36px;
  border-radius:50%;
  object-fit:cover;
}
.bc-header-main { flex:1; }
.bc-name { font-weight:600; font-size:0.9rem; }
.bc-twitter {
  font-size:0.75rem;
  color:var(--text-muted);
}
.bc-tags {
  display:flex;
  flex-wrap:wrap;
  gap:0.25rem;
  margin-top:0.2rem;
}
.bc-tag {
  font-size:0.7rem;
  padding:0.12rem 0.4rem;
  border-radius:999px;
  background:var(--panel);
  border:1px solid var(--border);
}
.bc-tag.main { border-color:var(--accent2); }

.bc-metrics {
  display:flex;
  flex-wrap:wrap;
  gap:0.35rem;
  margin-top:0.4rem;
}
.bc-metrics span {
  font-size:0.75rem;
  padding:0.12rem 0.4rem;
  border-radius:999px;
  background:var(--panel);
  border:1px solid var(--border);
}
.bc-pnl-pos { color:#19ff73; }
.bc-pnl-neg { color:#ff8080; }

.bc-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:0.35rem;
}
.bc-footer-left {
  font-size:0.75rem;
  color:var(--text-muted);
}
.bc-footer-actions {
  display:flex;
  gap:0.3rem;
}
.bc-btn {
  padding:0.25rem 0.6rem;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  font-size:0.75rem;
  cursor:pointer;
}
.bc-btn-primary {
  border:none;
  background:linear-gradient(90deg,var(--accent1),var(--accent2));
  color:#07101d;
}

/* Mini-profile hover */
.mini-profile {
  position:fixed;
  pointer-events:none;
  width:260px;
  background:var(--panel-light);
  border-radius:var(--radius-lg);
  border:1px solid var(--border);
  box-shadow:0 12px 40px rgba(0,0,0,0.8);
  padding:0.7rem 0.8rem 0.85rem;
  font-size:0.8rem;
  z-index:200;
}
.mini-header {
  display:flex;
  align-items:center;
  gap:0.5rem;
}
.mini-avatar {
  width:34px;
  height:34px;
  border-radius:50%;
  object-fit:cover;
}
.mini-name { font-weight:600; }
.mini-twitter {
  font-size:0.7rem;
  color:var(--text-muted);
}
.mini-sparkline {
  width:100%;
  height:60px;
  margin:0.5rem 0;
}
.mini-stats {
  display:flex;
  justify-content:space-between;
  font-size:0.75rem;
}
.mini-stats span {
  color:var(--text-muted);
  display:block;
}
.mini-badges {
  display:flex;
  flex-wrap:wrap;
  gap:0.25rem;
  margin:0.4rem 0;
}
.mini-badges .badge {
  font-size:0.7rem;
  padding:0.12rem 0.4rem;
  border-radius:999px;
  background:var(--panel);
  border:1px solid var(--border);
}
.mini-cta {
  display:inline-block;
  font-size:0.75rem;
  margin-top:0.2rem;
  color:var(--accent2);
}

/* Pagination */
.pagination {
  display:flex;
  gap:0.4rem;
  justify-content:center;
  margin-top:0.8rem;
  font-size:0.8rem;
}
.page-link {
  padding:0.25rem 0.55rem;
  border-radius:999px;
  background:rgba(255,255,255,0.02);
  color:var(--text-muted);
}
.page-link.active {
  background:linear-gradient(90deg,var(--accent1),var(--accent2));
  color:#07101d;
}

/* ------------------------------------------------------- */
/* Search common (home/board)                              */
/* ------------------------------------------------------- */

.search-section { margin-top:1rem; }
.search-row {
  display:flex;
  gap:0.5rem;
  max-width:780px;
  margin:0 auto;
}
#searchInput {
  flex:1;
  padding:0.6rem 0.9rem;
  border-radius:999px;
  background:var(--glass);
  border:1px solid rgba(255,255,255,0.03);
  color:var(--text);
}
.icon-btn {
  background:none;
  border:1px solid var(--border);
  border-radius:999px;
  padding:0.3rem 0.7rem;
  color:var(--text-muted);
  cursor:pointer;
}

.search-dropdown {
  margin-top:0.5rem;
  max-width:780px;
  margin-left:auto;
  margin-right:auto;
  background:rgba(7,12,18,0.98);
  border-radius:10px;
  box-shadow:0 12px 30px rgba(0,0,0,0.6);
  overflow:hidden;
  display:none;
}
.search-item {
  display:flex;
  gap:0.6rem;
  padding:0.6rem;
  align-items:center;
  border-bottom:1px solid rgba(255,255,255,0.06);
  cursor:pointer;
}
.search-item:last-child { border-bottom:none; }
.search-item:hover { background:rgba(255,255,255,0.05); }
.search-avatar {
  width:40px;
  height:40px;
  border-radius:50%;
  object-fit:cover;
}
.search-info { display:flex; flex-direction:column; }
.search-name { font-weight:600; font-size:0.9rem; }
.search-profit { color:var(--text-muted); font-size:0.8rem; }
.search-error,
.search-empty {
  padding:0.7rem 0.9rem;
  font-size:0.85rem;
  color:var(--text-muted);
}

/* ------------------------------------------------------- */
/* Mobile Dock                                             */
/* ------------------------------------------------------- */

.mobile-dock {
  position: fixed;
  bottom:0;
  left:0;
  right:0;
  background: var(--panel-light);
  border-top:1px solid var(--border);
  display:flex;
  justify-content:space-around;
  padding:0.6rem 0;
  z-index:99;
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
}

.dock-item {
  color: var(--text-muted);
  text-align:center;
  font-size:0.75rem;
}
.dock-item.active,
.dock-item:hover { color:var(--accent2); }

.dock-item i {
  display:block;
  font-size:1.15rem;
  margin-bottom:2px;
}

/* ---------- Board: code couleur & état ---------- */

/* lignes/carte en gain today */
.board-row.gain-today td {
  background: radial-gradient(circle at 0% 0%, rgba(25, 255, 115, 0.08), transparent 60%);
}
.board-card.gain-today {
  border-color: rgba(25, 255, 115, 0.55);
  box-shadow: 0 10px 30px rgba(10, 80, 30, 0.7);
}

/* lignes/carte en perte today */
.board-row.loss-today td {
  background: radial-gradient(circle at 100% 0%, rgba(255, 75, 75, 0.08), transparent 60%);
}
.board-card.loss-today {
  border-color: rgba(255, 120, 120, 0.65);
  box-shadow: 0 10px 30px rgba(80, 20, 20, 0.7);
}

/* weekly hot (top gainers) */
.board-row.hot-week td {
  box-shadow: inset 2px 0 0 rgba(245, 199, 106, 0.9);
}
.board-card.hot-week {
  border-color: rgba(245, 199, 106, 0.9);
}

/* petit badge visuel pour la rangée "Top weekly" dans le tableau */
.board-row.hot-week .pnl-cell span {
  position: relative;
}
.board-row.hot-week .pnl-cell span::after {
  content: "🔥";
  font-size: 0.7rem;
  margin-left: 4px;
}

/* --------- Board responsive: cartes par défaut sur mobile --------- */

@media (max-width: 900px) {
  #tableView {
    display: none !important;
  }
  #cardsView {
    display: block !important;
  }
}

/* ------------------------------------------------------- */
/* Responsive                                              */
/* ------------------------------------------------------- */

@media(max-width:900px) {
  .hero-pro {
    flex-direction:column;
    text-align:center;
  }
  .hero-right { display:none; }

  .profile-header {
    flex-direction:column;
    align-items:flex-start;
  }
  .profile-header-right {
    width:100%;
    justify-content:space-between;
  }
  .profile-grid {
    grid-template-columns:1fr;
  }
}

@media(max-width:768px) {
  .filters-bar {
    flex-direction:column;
    align-items:flex-start;
  }
  .board-header {
    flex-direction:column;
    align-items:flex-start;
    gap:0.25rem;
  }
  .watchlist-stats-row {
    flex-direction:column;
  }
}

.latest-trades-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trade-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(8, 15, 36, 0.9);
}

.trade-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.trade-token-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.trade-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.trade-token-symbol {
  font-weight: 600;
  font-size: 0.92rem;
}

.trade-token-name {
  font-size: 0.78rem;
  opacity: 0.7;
}

.trade-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  font-size: 0.75rem;
  opacity: 0.8;
}

.trade-date {
  white-space: nowrap;
}

.trade-badge {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.12);
  font-size: 0.72rem;
}

.trade-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
}

.trade-pnl {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.trade-pnl-real {
  font-weight: 600;
}

.trade-pnl-unr {
  opacity: 0.8;
}

.trade-volume {
  opacity: 0.75;
}

.trade-link {
  margin-top: 3px;
  font-size: 0.76rem;
  text-decoration: none;
  color: #8fb5ff;
}

.trade-link:hover {
  text-decoration: underline;
}

/* Mobile : rows un peu plus compactes */
@media (max-width: 768px) {
  .trade-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .trade-right {
    align-items: flex-start;
    text-align: left;
  }
}

.toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 9999;

  background: rgba(20, 20, 28, 0.95);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}
/* --- Golden hover background for cards --- */
.latest-pro-card,
.watchlist-card,
.similar-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease-out, 
              box-shadow 0.18s ease-out, 
              border-color 0.18s ease-out;
}

/* couche “or” en arrière-plan */
.latest-pro-card::before,
.watchlist-card::before,
.similar-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at top left,
      rgba(245, 199, 106, 0.25),
      transparent 55%)
    ,
    radial-gradient(circle at bottom right,
      rgba(255, 215, 160, 0.20),
      transparent 55%);
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  z-index: 0;
  pointer-events: none;
}

/* contenu au-dessus de la couche or */
.latest-pro-card > *,
.watchlist-card > *,
.similar-card > * {
  position: relative;
  z-index: 1;
}

/* léger lift + shadow au hover */
.latest-pro-card:hover,
.watchlist-card:hover,
.similar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

/* activation du glow doré */
.latest-pro-card:hover::before,
.watchlist-card:hover::before,
.similar-card:hover::before {
  opacity: 1;
  transform: scale(1);
}
/* --- Search bar container --- */
.search-section.home-search .search-row {
  position: relative;
  max-width: 640px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;

  background: #050712;
  border-radius: 999px;
  padding: 0.35rem 0.6rem 0.35rem 1rem;

  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75);

  transition: border-color 0.2s ease-out,
              box-shadow 0.2s ease-out,
              transform 0.2s ease-out,
              background 0.2s ease-out;
}

/* Glow doré quand le champ est focus */
.search-section.home-search .search-row:focus-within {
  border-color: rgba(245, 199, 106, 0.9);
  background:
    radial-gradient(circle at top left,
      rgba(245, 199, 106, 0.22),
      transparent 60%)
    ,
    #050712;
  box-shadow:
    0 0 0 1px rgba(245, 199, 106, 0.55),
    0 24px 48px rgba(0, 0, 0, 0.9);
  transform: translateY(-1px);
}

/* Champ input */
#searchInput {
  flex: 1;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 0.95rem;
  padding: 0.4rem 0.5rem 0.4rem 0;
  outline: none;
}

#searchInput::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Bouton clear */
#searchClear {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease-out, color 0.15s ease-out, transform 0.1s;
}

#searchClear:hover {
  background: rgba(245, 199, 106, 0.12);
  color: #ffd98a;
  transform: translateY(-0.5px);
}

#searchClear:active {
  transform: translateY(0);
}

/* Dropdown aligné visuellement à la barre */
#searchDropdown {
  max-width: 640px;
  margin: 0.25rem auto 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
/* --- Fix badge HOT / NEW / UPDATED --- */
.latest-tag {
  position: absolute !important;
  top: 0.55rem !important;
  right: 0.75rem !important;
  bottom: auto !important;
  left: auto !important;

  /* taille compacte */
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: auto !important;
  min-height: 0 !important;
  width: auto !important;

  padding: 0.20rem 0.6rem !important;
  border-radius: 999px !important;

  /* typo */
  font-size: 0.65rem !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;

  /* style visuel premium */
  background: linear-gradient(135deg, #f5c76a, #ffdfaa) !important;
  color: #1a1200 !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);

  z-index: 3;
  pointer-events: none;
}
/* ---------- Time badges (last refresh / last trade) ---------- */

.panel-sub-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.time-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  background: radial-gradient(circle at 0% 0%, rgba(245, 199, 106, 0.9), rgba(60, 42, 10, 0.95));
  color: #fffaf0;
  border: 1px solid rgba(255, 215, 128, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.time-pill-trade {
  font-size: 0.65rem;
  padding: 0.1rem 0.55rem;
}

/* Header ligne pour token + badge */
.similar-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
/* Carte de trade : permet de positionner le badge en overlay */
.panel-sub-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* style commun pour les badges de temps (refresh + trades) */
.time-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: radial-gradient(circle at 0% 0%, rgba(245,199,106,0.95), rgba(60,42,10,0.95));
  color: #fffaf0;
  border: 1px solid rgba(255,215,128,0.5);
  box-shadow: 0 4px 12px rgba(0,0,0,0.55);
}

.time-pill i {
  font-size: 0.72rem;
}

.time-pill-trade {
  font-size: 0.65rem;
  padding: 0.1rem 0.55rem;
}

/* --- Terminal preview (home hero) --- */

.dashboard-preview {
  width: 420px;
  height: 260px;
  background: radial-gradient(circle at top left, #111727, #050812);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.preview-header {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* petites pastilles type fenêtre */
.preview-header::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ff5f57;
  box-shadow:
    10px 0 0 #febc2e,
    20px 0 0 #28c840;
}

.preview-body-real {
  flex: 1;
  padding: 0.6rem 0.7rem;
  background:
    radial-gradient(circle at 10% 0%, rgba(25, 212, 255, 0.12), transparent 55%),
    linear-gradient(to bottom, #05070f, #050812);
  opacity: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* table miniature dans le terminal */
.preview-body-real .saas-table {
  font-size: 0.78rem;
}

.preview-body-real .saas-table th {
  border-color: rgba(255, 255, 255, 0.05);
  font-size: 0.70rem;
  padding: 0.35rem 0.4rem;
  color: rgba(200, 214, 255, 0.75);
}

.preview-body-real .saas-table td {
  padding: 0.32rem 0.4rem;
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

/* petites barres lumineuses derrière les chiffres PnL */
.preview-body-real .bc-pnl-pos,
.preview-body-real .bc-pnl-neg {
  position: relative;
  font-weight: 600;
}

.preview-body-real .bc-pnl-pos::before,
.preview-body-real .bc-pnl-neg::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 255, 150, 0.12), transparent);
  opacity: 0.7;
  z-index: -1;
}

.preview-body-real .bc-pnl-neg::before {
  background: linear-gradient(90deg, rgba(255, 90, 90, 0.18), transparent);
}
/* Live 7D PnL counter styling */
#livePnl7d {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(120deg, #f5c76a, #ffe7b8);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.9);
}
/* Section tiles comme "Top traders today", "Latest active" */
.latest-pro .latest-pro-card {
  align-items: center;
}

/* petite icône flamme ou lighting sur le badge TODAY/ACTIVE peut être ajoutée HTML side si tu veux */
.latest-pro .latest-pro-card .latest-meta {
  font-size: 0.78rem;
}

/* légère différence de teinte quand la card a le tag TODAY / ACTIVE */
.latest-pro .latest-pro-card .latest-tag {
  letter-spacing: 0.09em;
}
/* Latest tokens traded (site-wide) look */
.latest-pro .similar-grid .similar-card {
  padding: 0.55rem 0.45rem;
  border-radius: var(--radius);
  background: radial-gradient(circle at 0% 0%, rgba(25, 212, 255, 0.07), transparent 60%),
              var(--panel-light);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.latest-pro .similar-grid .similar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
}

.latest-pro .similar-grid .similar-avatar {
  width: 36px;
  height: 36px;
}

.latest-pro .similar-grid .similar-name {
  font-size: 0.9rem;
}

.latest-pro .similar-grid .similar-meta {
  font-size: 0.78rem;
}
.time-pill {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}

.time-pill-trade {
  opacity: 0.95;
}
/* Board PnL cells align right */
.pnl-cell {
  text-align: right;
}

.pnl-cell .bc-pnl-pos,
.pnl-cell .bc-pnl-neg {
  font-weight: 600;
}
/* ---------- Board: design épuré + code couleur léger ---------- */

.board-counter-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Lignes en situation (gain/perte / hot) */
.board-row.gain-today td {
  background: linear-gradient(90deg, rgba(25, 255, 115, 0.06), transparent);
}
.board-row.loss-today td {
  background: linear-gradient(90deg, rgba(255, 75, 75, 0.06), transparent);
}
.board-row.hot-week td {
  border-left: 2px solid rgba(245,199,106,0.9);
}

/* Cards */
.board-card.gain-today {
  border-color: rgba(25, 255, 115, 0.45);
}
.board-card.loss-today {
  border-color: rgba(255, 120, 120, 0.45);
}
.board-card.hot-week {
  box-shadow: 0 10px 26px rgba(245,199,106,0.25);
}

/* Board search bar */
.board-search-row {
  max-width: 620px;
  margin: 0 auto 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(5,7,18,0.9);
}

#boardSearchInput {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
}

#boardSearchInput::placeholder {
  color: rgba(255,255,255,0.4);
}

/* Pagination */
.pagination {
  display:flex;
  gap:0.4rem;
  justify-content:center;
  margin:1rem 0 0.5rem;
  font-size:0.8rem;
}
.page-link {
  padding:0.25rem 0.6rem;
  border-radius:999px;
  border:none;
  background:rgba(255,255,255,0.04);
  color:var(--text-muted);
  cursor:pointer;
}
.page-link.active {
  background:linear-gradient(90deg,var(--accent1),var(--accent2));
  color:#07101d;
}

/* Mobile: cards par défaut */
@media (max-width: 900px) {
  #tableView {
    display: none !important;
  }
  #cardsView {
    display: block !important;
  }
}

/* ------------------------------- */
/* Token terminal: search + pagination */
/* ------------------------------- */

.terminal-search-row {
  position: relative;
  max-width: 860px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;

  background: rgba(5,7,18,0.92);
  border-radius: 999px;
  padding: 0.35rem 0.6rem 0.35rem 1rem;

  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 32px rgba(0,0,0,0.55);
}

.terminal-search-row:focus-within {
  border-color: rgba(25,212,255,0.55);
  box-shadow: 0 0 0 1px rgba(25,212,255,0.20), 0 16px 42px rgba(0,0,0,0.75);
}

#tokenSearch {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
  padding: 0.35rem 0.2rem 0.35rem 0;
}

#tokenSearch::placeholder { color: rgba(255,255,255,0.40); }

.terminal-search-actions {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.pagination {
  display:flex;
  gap:0.35rem;
  justify-content:center;
  align-items:center;
  flex-wrap: wrap;              /* ✅ wrap propre */
  margin-top: 0.9rem;
}

.page-link {
  padding:0.25rem 0.6rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.03);
  color:var(--text-muted);
  cursor:pointer;
  white-space:nowrap;
}

.page-link.active {
  background:linear-gradient(90deg,var(--accent1),var(--accent2));
  color:#07101d;
  border-color:transparent;
}

.page-link.ellipsis {
  cursor: default;
  opacity: 0.8;
}
/* ------------------------------- */
/* Latest activity cards (token terminal) */
/* ------------------------------- */

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.9rem;
}

.activity-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: radial-gradient(1200px 400px at 10% 0%, rgba(25,212,255,0.10), transparent 60%),
              radial-gradient(1200px 400px at 90% 0%, rgba(75,115,255,0.10), transparent 60%),
              rgba(8, 10, 24, 0.85);
  box-shadow: 0 16px 42px rgba(0,0,0,0.55);
  padding: 0.9rem;
}

.activity-card:hover {
  border-color: rgba(25,212,255,0.35);
  transform: translateY(-1px);
  transition: 160ms ease;
}

.activity-row {
  display:flex;
  align-items:center;
  gap:0.7rem;
}

.activity-logo {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}

.activity-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-sub {
  font-size: 0.78rem;
  color: rgba(143,163,196,.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-right {
  margin-left:auto;
  text-align:right;
}

.activity-kpi {
  display:flex;
  gap:0.5rem;
  flex-wrap:wrap;
  margin-top:0.75rem;
}

.kpi-pill {
  font-size: 0.74rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: rgba(232,240,255,.86);
}

.activity-actions {
  display:flex;
  gap:0.45rem;
  margin-top:0.75rem;
}
/* KOL preview in latest activity */
.activity-kols-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-top:.65rem;}
.activity-kols-preview{display:flex;align-items:center;gap:.15rem;min-width:0;}
.kol-avatar{display:inline-flex;align-items:center;justify-content:center;position:relative;}
.kol-avatar img{
  width:26px;height:26px;border-radius:999px;object-fit:cover;
  border:2px solid rgba(12,16,30,.9);
  background:rgba(255,255,255,.05);
}
.kols-more{
  font-size:.72rem;padding:.12rem .45rem;border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:rgba(232,240,255,.88);
  margin-left:.25rem;
}
.activity-kols-meta{display:flex;flex-direction:column;align-items:flex-end;gap:.15rem;white-space:nowrap;}

/* Hot badge */
.hot-badge{
  display:inline-flex;align-items:center;gap:.35rem;
  font-size:.7rem;padding:.14rem .5rem;border-radius:999px;
  border:1px solid rgba(255,120,0,.22);
  background:rgba(255,120,0,.10);
  color:rgba(255,220,190,.95);
}
.hot-badge i{opacity:.9}

/* Click transition */
body.page-leave main{opacity:0;transform:translateY(6px);filter:blur(1px);}
main{transition:opacity .14s ease, transform .14s ease, filter .14s ease;}

/* Utilise le style Search.php */
.search-section.home-search { position:relative; z-index:10; }
.search-row{
  display:flex; align-items:center; gap:.55rem;
  width:100%;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(16,22,40,.55);
  border-radius: 16px;
  padding: .25rem .25rem;
}
.search-row input{
  flex:1;
  border:0;
  outline:none;
  background:transparent;
  color: rgba(232,240,255,.92);
  font-size: 1.02rem;
  padding: .85rem .85rem;
  min-height: 54px;
}
.icon-btn{
  width:44px;height:44px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(232,240,255,.92);
  cursor:pointer;
}
.icon-btn:hover{ background: rgba(255,255,255,.10); }

.search-dropdown{
  margin-top:.55rem;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(10,14,26,.95);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  overflow:hidden;
  max-height: 360px;
  overflow-y:auto;
}

/* Compat: ton JS construit dd-section + kol-dd-item => on garde ces styles */
.dd-section{padding:.55rem .9rem;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:rgba(170,190,220,.95);border-top:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.03);}
.kol-dd-item{display:flex;align-items:center;gap:.75rem;padding:.75rem .9rem;border-bottom:1px solid rgba(255,255,255,.06);cursor:pointer;}
.kol-dd-item:hover{background: rgba(255,255,255,.06);}
.kol-dd-item img{width:38px;height:38px;border-radius:999px;object-fit:cover;border:1px solid rgba(255,255,255,.12);}

.hero-stats-row.live-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.stat-box {
  text-align: center;
  padding: 1.2rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  transition: .2s;
}

.stat-box:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-4px);
}

.stat-box.highlight {
  border-color: rgba(25,212,255,.4);
  background: rgba(25,212,255,.06);
}

.stat-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: .6rem;
  display: block;
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  margin: .5rem 0;
}

.stat-label {
  font-size: .85rem;
  color: var(--muted2);
}

/* Animation quand une stat change */
.stat-value {
  transition: all 0.6s ease;
  position: relative;
  display: inline-block;
}

.stat-value.changed-up {
  animation: pulseUp 0.6s ease;
}

.stat-value.changed-down {
  animation: pulseDown 0.6s ease;
}

@keyframes pulseUp {
  0%   { transform: scale(1); color: var(--accent); }
  50%  { transform: scale(1.15); color: #19ff73; }
  100% { transform: scale(1); color: var(--accent); }
}

@keyframes pulseDown {
  0%   { transform: scale(1); color: var(--accent); }
  50%  { transform: scale(1.15); color: #ff8080; }
  100% { transform: scale(1); color: var(--accent); }
}

/* Slide up pour le chiffre qui change */
.stat-value.animate-slide {
  animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
  0%   { transform: translateY(0); opacity: 1; }
  50%  { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.stat-value {
  display: inline-block;
  min-width: 80px; /* évite le saut de layout */
}

/* Slide up rapide */
@keyframes slideUp {
  0%   { transform: translateY(0); opacity: 1; }
  40%  { transform: translateY(-16px); opacity: 0; }
  60%  { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.stat-value.animate-slide {
  animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Pulse plus marqué et rapide */
@keyframes pulseUp {
  0%   { transform: scale(1); color: var(--accent); }
  50%  { transform: scale(1.18); color: #19ff73; text-shadow: 0 0 12px #19ff73; }
  100% { transform: scale(1); color: var(--accent); }
}

@keyframes pulseDown {
  0%   { transform: scale(1); color: var(--accent); }
  50%  { transform: scale(1.18); color: #ff8080; text-shadow: 0 0 12px #ff8080; }
  100% { transform: scale(1); color: var(--accent); }
}

.stat-value.changed-up {
  animation: pulseUp 0.4s ease;
}

.stat-value.changed-down {
  animation: pulseDown 0.4s ease;
}

.preview-table .kol-cell-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.preview-table .kol-xs {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.preview-footer {
  text-align: center;
  margin-top: 1rem;
}
.live-feed {
  max-height: 420px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feed-items {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.feed-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 0.88rem;
  line-height: 1.4;
  opacity: 0.92;
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-item.trade strong {
  color: var(--accent);
}

.feed-item.stat {
  color: var(--muted);
  font-style: italic;
}

.pos { color: #19ff73; }
.neg { color: #ff8080; }

.preview-footer {
  text-align: center;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* ========================= */
/* Board cards — Mobile fix  */
/* ========================= */
@media (max-width: 900px) {

  /* cards full width + spacing propre */
  #cardsContainer {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }

  .board-card {
    border-radius: 18px;
    padding: 0.95rem 0.95rem;
    font-size: 0.86rem;
  }

  .bc-avatar { width: 42px; height: 42px; }
  .bc-name { font-size: 1.02rem; }
  .bc-twitter { font-size: 0.8rem; }

  /* ✅ le vrai fix: metrics en grille 2 colonnes */
  .bc-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin-top: 0.6rem;
  }

  .bc-metrics span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.22rem 0.55rem;
    font-size: 0.78rem;
    border-radius: 999px;
  }

  /* Footer: stack + boutons tactiles */
  .bc-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    margin-top: 0.65rem;
  }

  .bc-footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .bc-btn {
    min-height: 42px;
    border-radius: 14px;
    font-size: 0.82rem;
  }
}

/* ============================================= */
    /* Modal (re-usable)                              */
    /* ============================================= */
    .wl-modal-overlay{
      position: fixed;
      inset: 0;
      background: rgba(2, 6, 23, 0.68);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      z-index: 10000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 18px;
    }
    .wl-modal-overlay[aria-hidden="false"]{ display: flex; }

    .wl-modal{
      width: min(560px, 100%);
      border-radius: 22px;
      border: 1px solid rgba(148, 163, 184, 0.18);
      background:
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)),
        radial-gradient(circle at 20% 0%, rgba(234,179,8,0.08), transparent 45%);
      box-shadow: 0 30px 90px rgba(0,0,0,0.65);
      overflow: hidden;
    }

    .wl-modal-header{
      padding: 16px 18px 12px;
      border-bottom: 1px solid rgba(148, 163, 184, 0.14);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .wl-modal-title{
      font-size: 1.05rem;
      font-weight: 900;
      color: #f8fafc;
      display: flex;
      gap: 10px;
      align-items: center;
    }

    .wl-modal-close{
      height: 40px;
      width: 40px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.18);
      background: rgba(15, 23, 42, 0.35);
      color: rgba(226, 232, 240, 0.9);
      cursor: pointer;
      transition: transform .15s ease, border-color .2s ease, background .2s ease;
    }
    .wl-modal-close:hover{
      transform: translateY(-1px);
      background: rgba(15, 23, 42, 0.55);
      border-color: rgba(234, 179, 8, 0.35);
    }

    .wl-modal-body{
      padding: 16px 18px 6px;
      color: rgba(226, 232, 240, 0.92);
      line-height: 1.45;
    }

    .wl-modal-body p{ margin: 0 0 10px; }
    .wl-modal-hint{ opacity: 0.85; font-size: 0.95rem; }

    .wl-modal-actions{
      padding: 14px 18px 18px;
      display: flex;
      gap: 10px;
      justify-content: flex-end;
      flex-wrap: wrap;
    }

    .wl-btn{
      height: 44px;
      padding: 0 16px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.18);
      background: rgba(15, 23, 42, 0.45);
      color: rgba(226, 232, 240, 0.95);
      font-weight: 900;
      cursor: pointer;
      transition: transform .15s ease, background .2s ease, border-color .2s ease;
      white-space: nowrap;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    .wl-btn:hover{
      transform: translateY(-1px);
      background: rgba(15, 23, 42, 0.65);
      border-color: rgba(234, 179, 8, 0.30);
    }

    .wl-btn-danger{
      border-color: rgba(239, 68, 68, 0.45);
      background: rgba(239, 68, 68, 0.12);
      color: rgba(254, 202, 202, 0.98);
    }
    .wl-btn-danger:hover{
      border-color: rgba(239, 68, 68, 0.65);
      background: rgba(239, 68, 68, 0.18);
    }

    /* Gold CTA buttons inside modal */
    .wl-btn-gold{
      border-color: rgba(234, 179, 8, 0.38);
      background: rgba(234, 179, 8, 0.10);
      color: #fff7dd;
    }
    .wl-btn-gold:hover{
      border-color: rgba(234, 179, 8, 0.55);
      background: rgba(234, 179, 8, 0.16);
    }