/* ============================================
   ALTAIR — Design System & Styles
   Dark Space Theme · Mobile First · v1.0
   ============================================ */

/* ---- GOOGLE FONTS FALLBACK ---- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  --bg:          #070b1a;
  --bg2:         #0d1229;
  --bg3:         #111836;
  --card:        rgba(13, 18, 45, 0.82);
  --card-hover:  rgba(18, 26, 65, 0.92);
  --card-border: rgba(79, 141, 255, 0.28);
  --card-border-hover: rgba(79, 141, 255, 0.5);

  --blue:        #4f8dff;
  --blue-dim:    rgba(79, 141, 255, 0.18);
  --purple:      #7c5dfa;
  --purple-dim:  rgba(124, 93, 250, 0.18);
  --teal:        #22d3a8;
  --teal-dim:    rgba(34, 211, 168, 0.18);
  --gold:        #f5a623;
  --gold-dim:    rgba(245, 166, 35, 0.18);
  --red:         #ff5c72;
  --red-dim:     rgba(255, 92, 114, 0.18);
  --green:       #2ecc71;
  --green-dim:   rgba(46, 204, 113, 0.18);

  --text:        #e8eeff;
  --text-2:      #b8c3dc;
  --text-3:      #7c88a8;
  --text-4:      #4a5470;

  --nav-h:       72px;
  --header-h:    58px;
  --radius:      18px;
  --radius-sm:   10px;
  --radius-xs:   6px;

  --shadow:      0 8px 40px rgba(0,0,0,0.5);
  --shadow-sm:   0 4px 16px rgba(0,0,0,0.3);
  --glow-blue:   0 0 24px rgba(79,141,255,0.35);
  --glow-purple: 0 0 24px rgba(124,93,250,0.35);
  --glow-gold:   0 0 24px rgba(245,166,35,0.35);
  --glow-teal:   0 0 24px rgba(34,211,168,0.35);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --spring:     0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .hero-title, .logo-text {
  font-family: 'Outfit', sans-serif;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }
img { max-width: 100%; display: block; }
input, select { font-family: inherit; }

/* ---- STAR CANVAS ---- */
#stars-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- APP LAYOUT ---- */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(7, 11, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(79, 141, 255, 0.08);
  z-index: 100;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-star {
  font-size: 22px;
  color: var(--blue);
  animation: starPulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px var(--blue));
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: var(--text-2);
  transition: var(--transition);
  max-width: 180px;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-4);
  flex-shrink: 0;
  transition: var(--transition);
}

.header-badge.badge-ok { border-color: rgba(34,211,168,0.2); }
.header-badge.badge-ok .badge-dot { background: var(--teal); box-shadow: 0 0 6px var(--teal); animation: pulseDot 2s infinite; }
.header-badge.badge-error { border-color: rgba(255,92,114,0.2); }
.header-badge.badge-error .badge-dot { background: var(--red); }
.header-badge.badge-loading .badge-dot { background: var(--gold); animation: pulseDot 1s infinite; }

.app-main {
  position: fixed;
  top: var(--header-h);
  bottom: var(--nav-h);
  left: 0; right: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  z-index: 1;
}

/* ---- VIEWS ---- */
.view {
  display: none;
  padding: 20px 16px;
  padding-bottom: 24px;
  animation: viewFadeIn 0.3s ease;
  min-height: 100%;
}
.view.active { display: block; }

@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- BOTTOM NAV ---- */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(8, 12, 28, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(79, 141, 255, 0.1);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-3);
  transition: var(--transition);
  position: relative;
  min-width: 52px;
}

.nav-item:hover, .nav-item:focus { color: var(--text-2); }

.nav-item.active {
  color: var(--blue);
}

.nav-item.active .nav-icon-wrap svg {
  filter: drop-shadow(0 0 6px rgba(79, 141, 255, 0.6));
}

.nav-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.nav-icon-wrap { position: relative; }

/* Center action button */
.nav-center-item {
  margin-top: -16px;
}

.nav-center-ring {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-blue);
  transition: var(--spring);
  color: white;
}

.nav-center-item.active .nav-center-ring,
.nav-center-item:hover .nav-center-ring {
  transform: scale(1.08);
  box-shadow: 0 0 32px rgba(79,141,255,0.55);
}

.nav-center-item .nav-label { color: var(--text-3); }
.nav-center-item.active .nav-label { color: var(--blue); }

/* ---- SECTION TITLES ---- */
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.view-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.view-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: var(--spring);
  box-shadow: 0 4px 20px rgba(79,141,255,0.3);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(79,141,255,0.45); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
}

.btn-full { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-link { background: none; color: var(--blue); font-size: 14px; font-weight: 600; padding: 4px 0; cursor: pointer; }

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  color: var(--text-2);
  transition: var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
  border-color: var(--card-border-hover);
}

.back-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--text-2);
  transition: var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}
.back-btn:hover { background: rgba(255,255,255,0.12); color: var(--text); }

/* ---- GRADIENT TEXT ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════
   HOME VIEW
═══════════════════════════════ */
.hero-section {
  text-align: center;
  padding: 24px 8px 32px;
}

.hero-star-wrap {
  display: inline-block;
  width: 80px; height: 80px;
  margin-bottom: 20px;
  animation: heroFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(124,93,250,0.6));
}

.hero-star-svg { width: 100%; height: 100%; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-8px) rotate(3deg); }
}

.hero-title {
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 340px;
  margin: 0 auto 28px;
}

.btn-hero {
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 20px;
}

/* Status cards */
.status-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.status-card {
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.status-card:hover { border-color: var(--card-border-hover); }

.status-emoji { font-size: 26px; flex-shrink: 0; }

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

.status-label {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.status-count {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--text-4);
  flex-shrink: 0;
  transition: var(--transition);
}

.status-dot.ok { background: var(--teal); box-shadow: 0 0 8px var(--teal); animation: pulseDot 2.5s infinite; }
.status-dot.error { background: var(--red); }
.status-dot.loading { background: var(--gold); animation: pulseDot 1s infinite; }

/* Steps */
.how-section { margin-bottom: 28px; }

.steps-list { display: flex; flex-direction: column; gap: 0; }

.step-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: flex-start;
}

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

.step-number {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--blue-dim);
  line-height: 1;
  min-width: 44px;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}

/* Quick explore */
.quick-explore { margin-bottom: 8px; }

.tipo-pills {
  display: flex;
  gap: 10px;
}

.tipo-pill {
  flex: 1;
  padding: 14px 8px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  transition: var(--spring);
  cursor: pointer;
  text-align: center;
}

.tipo-pill:hover, .tipo-pill.active {
  background: var(--blue-dim);
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--glow-blue);
}

/* ═══════════════════════════════
   OFFERTE VIEW
═══════════════════════════════ */
.filter-tabs {
  display: flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 14px;
  gap: 4px;
}

.filter-tab {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  transition: var(--transition);
  cursor: pointer;
}

.filter-tab.active {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 2px 12px rgba(79,141,255,0.3);
}

.filter-search-bar {
  margin-bottom: 14px;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-3);
  pointer-events: none;
}

.search-input-wrap input[type="search"] {
  width: 100%;
  padding: 12px 16px 12px 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.search-input-wrap input[type="search"]:focus {
  border-color: rgba(79, 141, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 10px rgba(79, 141, 255, 0.1);
}

.sort-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sort-label {
  font-size: 13px;
  color: var(--text-3);
  white-space: nowrap;
}

.sort-select {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text);
  font-size: 13px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
}

.sort-select:focus { border-color: var(--blue); }

.update-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(79,141,255,0.07);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--text-3);
}

.update-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}

/* Offer cards */
.offers-list { display: flex; flex-direction: column; gap: 12px; }

.offer-card {
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
}

.offer-card.card-animate-in {
  animation: cardFadeIn 0.4s ease forwards;
}

@keyframes cardFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.offer-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.offer-card-top {
  border-color: rgba(245,166,35,0.3);
  background: linear-gradient(135deg, rgba(245,166,35,0.06), rgba(13,18,45,0.85));
}

.offer-card-top:hover { border-color: rgba(245,166,35,0.5); }

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.3);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.offer-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.offer-venditore {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}

.offer-badges {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.offer-nome {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 6px;
  line-height: 1.45;
}

.offer-code-wrap {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
  margin-bottom: 20px;
}

.offer-code {
  font-family: 'Courier New', Courier, monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-2);
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.offer-prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px 30px; /* Più spazio verticale e orizzontale tra le voci */
  align-items: start;
  margin-top: 16px;
}

.offer-price-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.offer-price-total {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  margin-top: 8px;
  grid-column: 1 / -1;  /* Larghezza piena */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offer-price-total .price-label {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text-3);
}

.offer-price-total .price-value {
  font-size: 18px;
  font-weight: 800;
}

.price-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.price-value {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}


/* Badges */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-blue   { background: var(--blue-dim);   color: var(--blue);   border: 1px solid rgba(79,141,255,0.3); }
.badge-purple { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(124,93,250,0.3); }
.badge-green  { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(46,204,113,0.3); }
.badge-gold   { background: var(--gold-dim);   color: var(--gold);   border: 1px solid rgba(245,166,35,0.3); }
.badge-teal   { background: var(--teal-dim);   color: var(--teal);   border: 1px solid rgba(34,211,168,0.3); }
.badge-geo    { background: rgba(255,107,107,0.1); color: #ff7676; border: 1px solid rgba(255,107,107,0.3); }

/* Accent colors */
.accent-blue   { color: var(--blue) !important; }
.accent-purple { color: var(--purple) !important; }
.accent-teal   { color: var(--teal) !important; }
.accent-gold   { color: var(--gold) !important; }
.accent-red    { color: var(--red) !important; }
.accent-green  { color: var(--green) !important; }

/* Skeleton loading */
.skeleton-list { display: flex; flex-direction: column; gap: 12px; }

.skeleton-card {
  height: 140px;
  border-radius: var(--radius);
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Disclaimer prezzi */
.offers-disclaimer-text {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.6;
  padding: 10px 14px;
  margin-top: 4px;
  border-left: 2px solid rgba(79,141,255,0.25);
  background: rgba(79,141,255,0.04);
  border-radius: 0 6px 6px 0;
}

.offers-disclaimer-text strong { color: var(--text-2); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-3);
}

.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-title { font-size: 18px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.empty-desc { font-size: 14px; color: var(--text-3); margin-bottom: 20px; }

/* ═══════════════════════════════
   ANALIZZA VIEW
═══════════════════════════════ */
.api-warning {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.warning-icon { font-size: 22px; flex-shrink: 0; }

.warning-body {
  flex: 1;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
}

.warning-body strong { display: block; color: var(--gold); margin-bottom: 2px; }

/* Upload zone */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 24px;
  border-radius: var(--radius);
  border: 2px dashed rgba(79,141,255,0.3);
  background: rgba(79,141,255,0.04);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--blue);
  background: var(--blue-dim);
  box-shadow: 0 0 32px rgba(79,141,255,0.15);
}

.upload-icon-wrap {
  color: var(--blue);
  opacity: 0.8;
  animation: heroFloat 4s ease-in-out infinite;
}

.upload-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.upload-hint {
  font-size: 13px;
  color: var(--text-3);
}

/* File preview card */
.file-preview-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-file-icon { font-size: 28px; }

.preview-filename {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-filesize { font-size: 12px; color: var(--text-3); }

.preview-img-box {
  position: relative; /* Per posizionare il badge delle pagine */
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(0,0,0,0.3);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-img-box img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.preview-badge-pages {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(79, 141, 255, 0.3);
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.preview-loading, .preview-error {
  font-size: 13px;
  color: var(--text-3);
  padding: 24px;
  text-align: center;
}

/* Tipo radio */
.tipo-select-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tipo-select-label {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
  white-space: nowrap;
}

.tipo-radio-group {
  display: flex;
  gap: 8px;
}

.tipo-radio-label {
  position: relative;
  cursor: pointer;
}

.tipo-radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.tipo-radio-btn {
  display: block;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.04);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.tipo-radio-label input:checked + .tipo-radio-btn {
  background: var(--blue-dim);
  border-color: var(--blue);
  color: var(--blue);
}

.btn-analyze { margin-top: 4px; }

/* Analysis loading */
.analysis-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 60px 24px;
  text-align: center;
}

.ai-spinner {
  position: relative;
  width: 80px; height: 80px;
}

.spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.ring-1 {
  border-top-color: var(--blue);
  border-right-color: var(--blue);
  animation: spinRing 1.2s linear infinite;
}

.ring-2 {
  inset: 8px;
  border-bottom-color: var(--purple);
  border-left-color: var(--purple);
  animation: spinRing 0.8s linear infinite reverse;
}

.spinner-core {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--glow-blue);
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

.loading-stages { display: flex; flex-direction: column; gap: 12px; }

.loading-stage {
  font-size: 14px;
  color: var(--text-4);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: var(--transition);
}

.loading-stage.active {
  color: var(--blue);
  background: var(--blue-dim);
  border-color: rgba(79,141,255,0.2);
}

.loading-stage.done {
  color: var(--teal);
}

/* ═══════════════════════════════
   RISULTATI VIEW
═══════════════════════════════ */
.result-section {
  margin-bottom: 24px;
}

.result-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

/* Summary card */
.summary-card {
  background: linear-gradient(135deg, rgba(79,141,255,0.1), rgba(124,93,250,0.08));
  border: 1px solid rgba(79,141,255,0.2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.summary-tipo {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

.summary-venditore {
  font-size: 13px;
  color: var(--text-3);
}

.summary-periodo {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 16px;
}

.summary-totale { margin-bottom: 16px; }

.summary-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
  margin-bottom: 4px;
}

.summary-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.summary-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}


.stat-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.summary-note {
  margin-top: 18px;
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-2);
}

/* Detailed Billing Breakdown Sections */
.summary-details-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.details-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 12px;
}

/* Band Progress Bar */
.fascia-progress-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fascia-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-3);
  font-family: monospace;
}

.fascia-progress-bar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.bar-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.bar-f1 {
  background: linear-gradient(90deg, #4f8dff, #00c6ff);
}

.bar-f2 {
  background: linear-gradient(90deg, #7c5dfa, #b38dfd);
}

.bar-f3 {
  background: linear-gradient(90deg, #22d3a8, #00f2fe);
}

/* Quota Split Layout */
.quota-split-row {
  display: flex;
  gap: 20px;
}

.quota-split-item {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quota-split-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-3);
  letter-spacing: 0.5px;
}

.quota-split-value {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-2);
}

/* Donut chart */
.donut-chart-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.chart-legend {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-text {
  flex: 1;
  font-size: 13px;
  color: var(--text-2);
}

.legend-value {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.legend-pct {
  font-size: 12px;
  color: var(--text-3);
  min-width: 36px;
  text-align: right;
}

/* Cost items */
#cost-items {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cost-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.cost-item:hover { border-color: var(--card-border-hover); }

.cost-item-icon { font-size: 22px; flex-shrink: 0; }

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

.cost-item-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.cost-item-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
}

.cost-item-value {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

/* Sub-items "di cui" breakdown */
.cost-subitems-group {
  margin-left: 36px;
  margin-bottom: 4px;
  border-left: 2px solid rgba(79, 141, 255, 0.25);
  padding-left: 14px;
}

.cost-subitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 6px 0;
}

.cost-subitem + .cost-subitem {
  border-top: 1px solid rgba(255,255,255,0.04);
}

.cost-subitem-label {
  font-size: 12px;
  color: var(--text-3);
  font-style: italic;
}

.cost-subitem-value {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

/* Recommendation cards */
#recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recommendation-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  transition: var(--transition);
  position: relative;
}

.recommendation-card:hover { border-color: var(--card-border-hover); transform: translateY(-2px); }

.rec-best {
  border-color: rgba(34,211,168,0.3);
  background: linear-gradient(135deg, rgba(34,211,168,0.06), rgba(13,18,45,0.85));
}

.rec-best-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(34,211,168,0.12);
  border: 1px solid rgba(34,211,168,0.3);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.rec-venditore {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.rec-market {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--blue-dim);
  color: var(--blue);
  font-weight: 600;
}

.rec-nome {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 14px;
}

.rec-prices {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.rec-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rec-price-label {
  font-size: 13px;
  color: var(--text-3);
}

.rec-price-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.rec-saving {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.saving-positive {
  background: rgba(46,204,113,0.1);
  border: 1px solid rgba(46,204,113,0.25);
}

.saving-negative {
  background: rgba(255,92,114,0.1);
  border: 1px solid rgba(255,92,114,0.25);
}

.saving-label {
  font-size: 13px;
  color: var(--text-2);
}

.saving-value {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.saving-positive .saving-value { color: var(--green); }
.saving-negative .saving-value { color: var(--red); }

.rec-total {
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
}

.rec-total strong { color: var(--text); }

.result-actions { margin-top: 24px; }

/* ═══════════════════════════════
   SETTINGS VIEW
═══════════════════════════════ */
.settings-group { margin-bottom: 28px; }

.settings-group-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.settings-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}

.settings-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.settings-desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
}

.settings-link { color: var(--blue); }

.settings-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.settings-input:focus {
  border-color: var(--blue);
  background: rgba(79,141,255,0.05);
}

.api-key-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.api-key-wrap .settings-input { flex: 1; }

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.info-card { gap: 8px; }

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 14px;
}

.info-row:last-child { border-bottom: none; }

.info-key { color: var(--text-3); }
.info-val { color: var(--text); font-weight: 500; }

/* ═══════════════════════════════
   TOASTS
═══════════════════════════════ */
#toast-container {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 400px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(16, 22, 50, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  box-shadow: var(--shadow);
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: auto;
  width: 100%;
}

.toast.toast-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast-success { border-color: rgba(46,204,113,0.3); }
.toast-error   { border-color: rgba(255,92,114,0.3); }
.toast-warning { border-color: rgba(245,166,35,0.3); }

.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-message { flex: 1; line-height: 1.4; }

/* ═══════════════════════════════
   ANIMATIONS
═══════════════════════════════ */
@keyframes starPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.1); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (min-width: 420px) {
  .offer-prices { grid-template-columns: repeat(auto-fit, minmax(85px, 1fr)); }
}

@media (max-width: 360px) {
  .offer-prices { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 26px; }
  .tipo-pills { flex-direction: column; }
  .tipo-pill { text-align: center; }
}

/* Safe area for notch phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  }
  .app-main {
    bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  }
}

/* Scrollbar */
.app-main::-webkit-scrollbar { width: 3px; }
.app-main::-webkit-scrollbar-track { background: transparent; }
.app-main::-webkit-scrollbar-thumb { background: rgba(79,141,255,0.3); border-radius: 3px; }

/* ════════════════════════════════════════════
   CUSTOM SUPPLIER COMPARISON & TOOLTIPS
   ════════════════════════════════════════════ */
.section-subtitle {
  font-size: 13px;
  color: var(--text-3);
  margin-top: -6px;
  margin-bottom: 20px;
}

/* ════════════════════════════════════════════
   GUIDA INFORMATIVA ALLA BOLLETTA
   ════════════════════════════════════════════ */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.guide-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.guide-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--blue), var(--purple));
  opacity: 0.7;
}

.guide-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(79, 141, 255, 0.2);
  box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.3);
}

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

.guide-icon {
  font-size: 20px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  margin: 0;
}

.guide-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
}

/* ════════════════════════════════════════════
   CUSTOM SUPPLIER COMPARISON SELECTORS
   ════════════════════════════════════════════ */
.compare-selectors {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 20px;
}

.compare-selector-col {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.compare-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238892b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 14px center;
  background-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 14px 40px 14px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: all 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}

.compare-select:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.05);
}

.compare-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(79,141,255,0.2);
}

.compare-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#compare-result-card-container {
  margin-top: 10px;
}

/* Premium CSS Tooltips */
.tooltip-trigger {
  position: relative;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--text-3);
  font-size: 10px;
  margin-left: 6px;
  font-weight: 700;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.tooltip-trigger:hover {
  background: var(--blue);
  color: #fff;
}

.tooltip-content {
  visibility: hidden;
  width: 260px;
  background: #0d1527;
  border: 1px solid var(--card-border);
  color: var(--text-2);
  text-align: left;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  position: absolute;
  z-index: 100;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
  font-size: 12px;
  line-height: 1.4;
  font-weight: normal;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5);
  pointer-events: none;
  white-space: normal;
}

.tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #0d1527 transparent transparent transparent;
}

.tooltip-trigger:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}
