/* CompraSiti — Stili custom */

[x-cloak] { display: none !important; }

/* Badge Revenue Verificato */
.badge-verificato {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid #bbf7d0;
}
.badge-verificato i { color: #16a34a; }

/* Scrollbar sottile */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }

/* Animazione card hover */
.card-hover {
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* Badge TLD colorati */
.tld-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.tld-com  { background:#dbeafe; color:#1d4ed8; }
.tld-it   { background:#dcfce7; color:#15803d; }
.tld-net  { background:#fef3c7; color:#b45309; }
.tld-org  { background:#f3e8ff; color:#7c3aed; }
.tld-io   { background:#e0f2fe; color:#0369a1; }
.tld-ai   { background:#fce7f3; color:#be185d; }
.tld-other{ background:#f1f5f9; color:#475569; }

/* Countdown */
.countdown { font-variant-numeric: tabular-nums; }

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 50%, #0ea5e9 100%);
}

/* Stat card */
.stat-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.4s infinite;
  border-radius: 4px;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Tab attivo */
.tab-btn.active {
  color: #4f46e5;
  border-bottom-color: #4f46e5;
}

/* Form input focus */
.form-input:focus {
  outline: none;
  ring: 2px solid #6366f1;
  border-color: #6366f1;
}

/* Progress bar */
.progress-bar {
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width .6s ease;
}

/* Chart bars (mini) */
.mini-chart-bar {
  display: inline-block;
  width: 6px;
  border-radius: 3px 3px 0 0;
  background: #6366f1;
  margin: 0 1px;
  vertical-align: bottom;
  transition: height .3s ease;
}

/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

/* Tooltip */
[data-tooltip] { position: relative; cursor: help; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
[data-tooltip]:hover::after { opacity: 1; }

/* Responsive table */
.table-responsive { overflow-x: auto; }

/* Ticker vendite recenti */
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 3rem;
  animation: ticker-scroll 35s linear infinite;
  white-space: nowrap;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Badge revenue verificato */
.badge-verificato {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
}
