/* =========================================================
   OpenDoor Auction Pro — UI SUPER Premium
   ========================================================= */

:root {
  --oda-green: #10b981;
  --oda-green-dark: #059669;
  --oda-green-deep: #047857;
  --oda-red: #ef4444;
  --oda-red-dark: #dc2626;
  --oda-blue: #3b82f6;
  --oda-blue-dark: #2563eb;
  --oda-ink: #0f172a;
  --oda-muted: #64748b;
  --oda-line: #e2e8f0;
  --oda-soft: #f8fafc;
  --oda-radius: 16px;
  --oda-shadow: 0 12px 40px rgba(15, 23, 42, .12);
  --oda-shadow-lg: 0 24px 60px rgba(15, 23, 42, .18);
}

.oda-wrap {
  width: 100%;
  font-family: inherit;
  color: var(--oda-ink);
  -webkit-font-smoothing: antialiased;
}
.oda-wrap *, .oda-wrap *::before, .oda-wrap *::after { box-sizing: border-box; }

/* ---------- HERO ---------- */
.oda-hero {
  position: relative;
  margin: 0 0 28px;
  padding: 36px 36px 32px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(16, 185, 129, .28), transparent 55%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(59, 130, 246, .12), transparent 50%),
    linear-gradient(145deg, #020617 0%, #0f172a 50%, #1e293b 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
}
.oda-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 20% 30%, black 15%, transparent 70%);
  pointer-events: none;
}
.oda-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: center;
}
.oda-hero-copy { max-width: 520px; }
.oda-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(16, 185, 129, .18);
  border: 1px solid rgba(16, 185, 129, .4);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #6ee7b7;
  text-transform: uppercase;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}
.oda-hero-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .55);
  animation: odaPulse 1.8s infinite;
}
.oda-hero-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
}
.oda-hero-title span {
  background: linear-gradient(90deg, #6ee7b7, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.oda-hero-sub {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  line-height: 1.55;
  max-width: 440px;
}
.oda-hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.oda-hero-stats > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.oda-hero-stats strong {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.02em;
}
.oda-hero-stats span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .5);
}

/* Foto auto in hero */
.oda-hero-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 110px;
  gap: 10px;
  max-height: 340px;
  overflow: hidden;
}
.oda-hero-photo {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none !important;
}
.oda-hero-photo:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 32px rgba(16, 185, 129, .25);
  z-index: 2;
}
.oda-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.oda-hero-photo:hover img { transform: scale(1.08); }
.oda-hero-photo-0 { grid-row: span 2; min-height: 230px; }
.oda-hero-photo-1 { min-height: 110px; }
.oda-hero-photo-2 { min-height: 110px; }
.oda-hero-photo-3 { grid-column: span 1; }
.oda-hero-photo-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0;
  transition: opacity .2s ease;
}
.oda-hero-photo:hover .oda-hero-photo-cap { opacity: 1; }
.oda-hero-photos-empty {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  min-height: 160px;
}
.oda-hero-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(255,255,255,.15);
  font-size: 32px;
  min-height: 120px;
}

@media (max-width: 900px) {
  .oda-hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .oda-hero-photos { grid-auto-rows: 90px; max-height: 220px; }
  .oda-hero-photo-0 { grid-row: span 1; min-height: 90px; }
}
@media (max-width: 700px) {
  .oda-hero { padding: 24px 18px; border-radius: 18px; }
  .oda-hero-title { font-size: 24px; }
  .oda-hero-stats { gap: 18px; }
  .oda-hero-stats strong { font-size: 20px; }
  .oda-hero-photos { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ---------- TOOLBAR (restyle) ---------- */
/* ---------- TOOLBAR ---------- */
.oda-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.oda-tabs {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 12px;
}
.oda-tab {
  padding: 9px 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
}
.oda-tab:hover { color: var(--oda-ink); }
.oda-tab.is-active {
  background: #fff;
  color: var(--oda-ink);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}
.oda-search { flex: 1 1 200px; min-width: 160px; }
.oda-search input {
  width: 100%;
  padding: 11px 16px;
  min-height: 44px;
  border: 1.5px solid var(--oda-line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.oda-search input:focus {
  outline: none;
  border-color: var(--oda-green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .12);
}

/* ---------- GRID ---------- */
.oda-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ---------- CARD (pagina aste) ---------- */
.oda-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--oda-line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 23, 42, .06);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1), box-shadow .25s ease, border-color .25s ease;
}
.oda-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--oda-shadow-lg);
  border-color: #cbd5e1;
}
.oda-card.is-ended { opacity: .88; filter: saturate(.75); }
.oda-card-single {
  max-width: 520px;
  margin: 0 0 28px;
  border: 2px solid var(--oda-green);
  box-shadow: 0 16px 48px rgba(16, 185, 129, .15);
}

.oda-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0f172a;
  overflow: hidden;
}
.oda-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .9, .3, 1);
}
.oda-card:hover .oda-card-image img { transform: scale(1.06); }

.oda-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}
.oda-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .25);
}
.oda-badge-live {
  background: rgba(16, 185, 129, .95);
  color: #fff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, .4);
  writing-mode: horizontal-tb !important;
  white-space: nowrap !important;
  flex-direction: row !important;
}
.oda-badge-bids {
  background: rgba(15, 23, 42, .75);
  color: #fff;
}
.oda-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: odaBlink 1.2s ease-in-out infinite;
}
@keyframes odaBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

/* ---------- TIMER (in card aste) ---------- */
.oda-timer {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: linear-gradient(105deg, rgba(16, 185, 129, .97), rgba(5, 150, 105, .97));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(16, 185, 129, .35);
  backdrop-filter: blur(12px);
  overflow: hidden;
  z-index: 2;
}
.oda-timer-label {
  font-size: 10px;
  opacity: .9;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.oda-timer-value {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 15px;
  letter-spacing: .04em;
  font-weight: 800;
}
.oda-timer-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, .2);
}
.oda-timer-bar span {
  display: block;
  height: 100%;
  background: #fff;
  width: 100%;
  transition: width .9s linear;
}
.oda-timer.is-ended {
  background: rgba(100, 116, 139, .95);
  box-shadow: none;
}
.oda-timer.is-urgent {
  background: linear-gradient(105deg, #ef4444, #dc2626) !important;
  box-shadow: 0 8px 28px rgba(239, 68, 68, .45);
  animation: odaUrgentPulse 1.3s ease-in-out infinite;
}
@keyframes odaUrgentPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(239, 68, 68, .4); }
  50% { box-shadow: 0 8px 32px rgba(239, 68, 68, .6), 0 0 0 4px rgba(239, 68, 68, .15); }
}

/* ---------- BODY ---------- */
.oda-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  flex: 1 1 auto;
}
.oda-card-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.015em;
}
.oda-card-title a {
  color: var(--oda-ink);
  text-decoration: none;
  transition: color .15s ease;
}
.oda-card-title a:hover { color: var(--oda-green-dark); }

/* ---------- PREZZI ---------- */
.oda-prices {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  border: 1px solid #a7f3d0;
  border-radius: 14px;
}
.oda-price-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.oda-price-value {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: var(--oda-green-deep);
  line-height: 1;
  letter-spacing: -.03em;
}
.oda-price-side strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--oda-ink);
}
.oda-price-side > div + div { margin-top: 8px; }

/* ---------- STORICO ---------- */
.oda-history {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--oda-line);
  border-radius: 12px;
}
.oda-history-head {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.oda-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.oda-history-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #475569;
  background: #f8fafc;
}
.oda-history-list li.is-top {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 700;
}
.oda-history-list li.is-top .oda-h-amount { color: var(--oda-green-deep); }
.oda-h-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oda-h-amount { font-weight: 800; color: var(--oda-ink); }
.oda-h-when { font-size: 11px; color: #94a3b8; }

/* ---------- FORM ---------- */
.oda-bid-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.oda-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}
.oda-field label {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.oda-field input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  color: var(--oda-ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.oda-field input:focus {
  outline: none;
  border-color: var(--oda-green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .12);
}
.oda-field-error {
  font-size: 11px;
  color: #dc2626;
  font-weight: 700;
  min-height: 14px;
}
.oda-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.oda-quick {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.oda-quick button,
.oda-rilancia {
  flex: 1 1 auto;
  min-height: 38px;
  padding: 6px 12px;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all .15s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .3);
}
.oda-quick button:hover,
.oda-rilancia:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, .4);
}

/* ---------- BUTTONS ---------- */
.oda-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 13px 18px;
  border: 0;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  overflow: hidden;
}
.oda-btn-primary {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(16, 185, 129, .4);
}
.oda-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669, #047857) !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(16, 185, 129, .5);
}
.oda-btn-primary:disabled { opacity: .7; cursor: progress; }
.oda-btn-buynow {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(16, 185, 129, .4);
}
.oda-btn-buynow:hover {
  background: linear-gradient(135deg, #059669, #047857) !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(16, 185, 129, .5);
}
.oda-btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: odaSpin .7s linear infinite;
}
.oda-btn.is-loading .oda-btn-label { opacity: .85; }
.oda-btn.is-loading .oda-btn-spinner { display: inline-block; }
@keyframes odaSpin { to { transform: rotate(360deg); } }

.oda-legal {
  margin: 0;
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.4;
}

/* ---------- WINNER ---------- */
.oda-winner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #6ee7b7;
  border-radius: 14px;
}
.oda-winner-icon { font-size: 28px; line-height: 1; }
.oda-winner strong { display: block; color: #065f46; font-size: 14px; }
.oda-winner span { color: #047857; font-size: 12px; }

/* ---------- EMPTY ---------- */
.oda-empty {
  padding: 56px 24px;
  text-align: center;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
}
.oda-empty-icon { font-size: 48px; margin-bottom: 12px; }
.oda-empty h3 { margin: 0 0 8px; font-size: 20px; color: var(--oda-ink); }
.oda-empty p { margin: 0; color: #64748b; }
.oda-empty a { color: var(--oda-green-dark); font-weight: 700; text-decoration: none; }
.oda-empty a:hover { text-decoration: underline; }

/* ---------- BADGE PAGINA DETTAGLIO ---------- */
.oda-detail-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 22px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #10b981, #047857);
  color: #fff;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 12px 32px rgba(16, 185, 129, .35);
  box-sizing: border-box;
}
.oda-detail-badge a {
  color: #fff !important;
  text-decoration: underline;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}
.oda-detail-badge.is-ended {
  background: linear-gradient(135deg, #64748b, #475569);
  box-shadow: none;
}
.oda-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  animation: odaBlink 1.2s infinite;
}

/* =========================================================
   CARD SITO (home / elenco / ricerca) — SUPER
   ========================================================= */
.oda-is-auction.oda-auction-active,
.oda-site-card.oda-auction-active {
  border: 2px solid #10b981 !important;
  box-shadow:
    0 0 0 4px rgba(16, 185, 129, .12),
    0 16px 40px rgba(16, 185, 129, .18) !important;
  position: relative !important;
  overflow: visible !important;
  background: linear-gradient(180deg, #ecfdf5 0%, #fff 35%) !important;
  transition: box-shadow .25s ease, transform .25s ease;
  border-radius: 16px !important;
}
.oda-is-auction.oda-auction-active:hover,
.oda-site-card.oda-auction-active:hover {
  box-shadow:
    0 0 0 5px rgba(16, 185, 129, .18),
    0 20px 48px rgba(16, 185, 129, .22) !important;
  transform: translateY(-3px);
}
.oda-is-auction.oda-auction-ended,
.oda-site-card.oda-auction-ended {
  border-color: #94a3b8 !important;
  opacity: .9;
}

/* Nasconde prezzo originale */
.oda-auction-active .oda-hide-price,
.oda-site-card.oda-auction-active .price,
.oda-site-card.oda-auction-active .listing-price,
.oda-site-card.oda-auction-active .rtcl-price,
.oda-site-card.oda-auction-active .item-price,
.oda-site-card.oda-auction-active .car-price,
.oda-site-card.oda-auction-active .product-price,
.oda-site-card.oda-auction-active [class*="price"]:not(.oda-site-actions):not(.oda-site-timer):not(.oda-site-btn),
.oda-is-auction.oda-auction-active .price,
.oda-is-auction.oda-auction-active .listing-price,
.oda-is-auction.oda-auction-active [class*="price"]:not(.oda-site-actions):not(.oda-site-timer):not(.oda-site-btn) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  font-size: 0 !important;
}

/* Blocco azioni premium */
.oda-site-actions {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 12px 0 10px;
  padding: 12px;
  box-sizing: border-box;
  clear: both;
  background: linear-gradient(160deg, #ecfdf5, #d1fae5);
  border: 1px solid #6ee7b7;
  border-radius: 14px;
  position: relative;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(16, 185, 129, .12);
}
.oda-site-actions-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}
.oda-site-btn {
  flex: 1 1 50% !important;
  width: 50%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  border: 0 !important;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .18s ease, filter .18s ease;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.15;
  white-space: nowrap;
}
.oda-site-btn:hover {
  transform: translateY(-2px);
  text-decoration: none !important;
}
.oda-site-btn-blue {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, .35);
}
.oda-site-btn-blue:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(16, 185, 129, .45);
  color: #fff !important;
}
.oda-site-btn-green {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, .4);
}
.oda-site-btn-green:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(16, 185, 129, .5);
  color: #fff !important;
}

.oda-site-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  background: linear-gradient(105deg, #10b981, #059669);
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  border-radius: 10px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: .03em;
  box-shadow: 0 4px 14px rgba(16, 185, 129, .3);
  transition: background .3s ease, box-shadow .3s ease;
}
.oda-site-timer.is-urgent {
  background: linear-gradient(105deg, #ef4444, #dc2626) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .2), 0 6px 20px rgba(239, 68, 68, .4);
  animation: odaUrgentPulse 1.3s ease-in-out infinite;
}
.oda-site-timer-label {
  font-family: inherit;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .95;
  font-weight: 800;
}

.oda-site-badge-live {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 25;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(16, 185, 129, .45);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .25);
  writing-mode: horizontal-tb !important;
  white-space: nowrap !important;
  max-width: none !important;
  width: auto !important;
  height: auto !important;
}
.oda-site-badge-live::before,
.oda-live-dot {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: odaBlink 1.2s ease-in-out infinite;
  vertical-align: middle;
}

.oda-live-label {
  display: none !important; /* sostituito dal badge + box azioni */
}

/* Banner IN ASTA (pagina annuncio al posto del prezzo) */
.oda-title-inasta-banner {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin: 12px 0 16px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #fff !important;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 10px 32px rgba(16, 185, 129, .4);
  animation: odaBannerPulse 2.4s ease-in-out infinite;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .2);
}
.oda-title-inasta-banner .oda-live-dot {
  width: 9px;
  height: 9px;
}
@keyframes odaBannerPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 32px rgba(16, 185, 129, .4);
  }
  50% {
    transform: scale(1.015);
    box-shadow: 0 14px 40px rgba(16, 185, 129, .55);
  }
}

/* Nasconde prezzo tema in singola listing */
body.oda-single-auction .price,
body.oda-single-auction .listing-price,
body.oda-single-auction .rtcl-price,
body.oda-single-auction .item-price,
body.oda-single-auction .car-price,
body.oda-single-auction .product-price,
body.oda-single-auction [class*="price"]:not(.oda-price-value):not(.oda-site-actions):not(.oda-site-timer):not(.oda-site-btn):not(.oda-title-inasta-banner),
body.oda-single-auction .amount {
  display: none !important;
  visibility: hidden !important;
}

/* Prezzo nel box asta: pulse soft */
.oda-price-pulse {
  display: inline-block !important;
  animation: odaPricePulse 2s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
}
@keyframes odaPricePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.oda-card-single .oda-price-value.oda-price-pulse,
.oda-price-value.oda-price-pulse {
  color: var(--oda-green-deep) !important;
  text-shadow: 0 0 20px rgba(16, 185, 129, .35);
}

/* ---------- TOAST ---------- */
.oda-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2147483646;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 40px);
}
.oda-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 260px;
  max-width: 360px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
  transform: translateX(120%);
  opacity: 0;
  transition: transform .3s cubic-bezier(.2, .9, .3, 1), opacity .3s ease;
  pointer-events: auto;
}
.oda-toast.is-show {
  transform: translateX(0);
  opacity: 1;
}
.oda-toast-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 17px;
}
.oda-toast-success .oda-toast-icon { background: #ecfdf5; color: #059669; }
.oda-toast-error .oda-toast-icon { background: #fef2f2; color: #dc2626; }
.oda-toast-info .oda-toast-icon { background: #eff6ff; color: #2563eb; }
.oda-toast-body strong {
  display: block;
  font-size: 13px;
  color: var(--oda-ink);
  margin-bottom: 3px;
}
.oda-toast-body span {
  display: block;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* ---------- CONFETTI ---------- */
.oda-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2147483647;
}
.oda-confetti span {
  position: absolute;
  width: 8px;
  height: 14px;
  animation: odaConfetti 2.6s cubic-bezier(.15, .7, .4, 1) forwards;
  opacity: 0;
}
@keyframes odaConfetti {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1050px) {
  .oda-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

/* Tablet piccolo */
@media (max-width: 700px) {
  .oda-hero { padding: 22px 16px; border-radius: 16px; margin-bottom: 18px; }
  .oda-hero-title { font-size: 22px; margin-bottom: 8px; }
  .oda-hero-sub { font-size: 13px; margin-bottom: 16px; }
  .oda-hero-stats { gap: 16px; }
  .oda-hero-stats strong { font-size: 18px; }
  .oda-hero-stats span { font-size: 9px; }
  .oda-hero-badge { font-size: 10px; padding: 5px 10px; margin-bottom: 10px; }

  .oda-toolbar { gap: 8px; margin-bottom: 14px; }
  .oda-tabs { width: 100%; overflow-x: auto; }
  .oda-tab { padding: 7px 10px; font-size: 11px; flex: 1 1 auto; text-align: center; }
  .oda-search { min-width: 100%; }
  .oda-search input { min-height: 38px; padding: 8px 12px; font-size: 13px; }

  .oda-grid { grid-template-columns: 1fr; gap: 12px; }

  .oda-card { border-radius: 14px; }
  .oda-card-image { aspect-ratio: 16 / 10; }
  .oda-card-body { padding: 12px; gap: 8px; }
  .oda-card-title { font-size: 14px; line-height: 1.25; }
  .oda-card-badges { top: 8px; left: 8px; right: 8px; gap: 6px; }
  .oda-badge { padding: 4px 8px; font-size: 9px; }

  .oda-timer {
    left: 8px; right: 8px; bottom: 8px;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 11px;
  }
  .oda-timer-value { font-size: 13px; }
  .oda-timer-label { font-size: 9px; }

  .oda-prices { padding: 10px 12px; gap: 8px; border-radius: 10px; }
  .oda-price-value { font-size: 20px; }
  .oda-price-label { font-size: 9px; margin-bottom: 2px; }
  .oda-price-side strong { font-size: 13px; }

  .oda-history { padding: 8px 10px; border-radius: 9px; }
  .oda-history-list li { padding: 5px 7px; font-size: 11px; gap: 6px; }

  .oda-bid-form { gap: 7px; }
  .oda-field label { font-size: 10px; }
  .oda-field input { min-height: 40px; padding: 8px 11px; font-size: 13px; border-radius: 10px; }
  .oda-row { grid-template-columns: 1fr 1fr; gap: 7px; }
  .oda-quick button { min-height: 28px; font-size: 10px; padding: 3px 8px; }

  .oda-btn { min-height: 44px; padding: 10px 14px; font-size: 13px; border-radius: 11px; }
  .oda-legal { font-size: 10px; }

  .oda-detail-badge { padding: 11px 14px; font-size: 13px; margin-bottom: 14px; border-radius: 12px; letter-spacing: .08em; }
  .oda-card-single { max-width: 100%; margin-bottom: 18px; }

  .oda-title-inasta-banner { font-size: 13px; padding: 11px 14px; letter-spacing: .08em; margin: 8px 0 12px; border-radius: 11px; }

  /* Card sito (home/elenco) compatte */
  .oda-site-actions { margin: 8px 0 6px; padding: 8px; gap: 7px; border-radius: 11px; }
  .oda-site-timer { padding: 6px 9px; font-size: 11px; border-radius: 8px; }
  .oda-site-timer-label { font-size: 9px; }
  .oda-site-btn { font-size: 11px; min-height: 38px; height: 38px; border-radius: 9px; }
  .oda-site-badge-live { top: 8px; left: 8px; padding: 5px 9px; font-size: 9px; }

  .oda-toast-container { top: 10px; right: 10px; left: 10px; max-width: none; }
  .oda-toast { min-width: 0; max-width: none; padding: 12px; border-radius: 12px; }
}

/* Smartphone stretti */
@media (max-width: 400px) {
  .oda-card-body { padding: 10px; gap: 7px; }
  .oda-card-title { font-size: 13px; }
  .oda-price-value { font-size: 18px; }
  .oda-site-btn { font-size: 10.5px; min-height: 36px; height: 36px; padding: 0 6px; }
  .oda-btn { min-height: 42px; font-size: 12px; }
  .oda-row { grid-template-columns: 1fr; }
  .oda-timer { padding: 6px 8px; }
  .oda-timer-value { font-size: 12px; }
}

/* Protezione: niente badge sito iniettato, ma azioni preview OK */
.oda-wrap .oda-site-badge-live,
.oda-card .oda-site-badge-live {
  display: none !important;
}
.oda-wrap .oda-preview-actions {
  display: flex !important;
}

.oda-wrap .oda-card {
  background: #fff !important;
  border: 1px solid var(--oda-line) !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, .06) !important;
}
.oda-wrap .oda-card:hover {
  box-shadow: var(--oda-shadow-lg) !important;
}
.oda-card-badges {
  flex-direction: row !important;
  writing-mode: horizontal-tb !important;
}
.oda-badge {
  writing-mode: horizontal-tb !important;
  white-space: nowrap !important;
  flex-direction: row !important;
}

/* Card preview compatta (pagina aste = come home) */
.oda-card-preview .oda-card-body-compact {
  padding: 12px 14px 14px;
  gap: 10px;
}
.oda-prices-compact {
  grid-template-columns: 1fr !important;
  padding: 10px 12px !important;
}
.oda-prices-compact .oda-price-value {
  font-size: 22px !important;
}
.oda-preview-actions {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.oda-preview-actions .oda-site-actions-row {
  gap: 8px;
}

/* Evidenzia il box offerta quando arrivi da "Fai offerta" */
.oda-offer-highlight {
  animation: odaOfferFlash 1.8s ease;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .45), 0 16px 48px rgba(16, 185, 129, .25) !important;
}
@keyframes odaOfferFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 16px 48px rgba(16, 185, 129, .15); }
  30% { box-shadow: 0 0 0 6px rgba(16, 185, 129, .4), 0 16px 48px rgba(16, 185, 129, .3); }
}

/* ========== FORM OFFERTA PAGINA ANNUNCIO (sotto slider) ========== */
#oda-offerta.oda-card-single,
#oda-offerta.oda-card-single-offer {
  max-width: 100% !important;
  width: 100% !important;
  margin: 20px 0 28px !important;
  border: 2px solid #10b981 !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 16px 48px rgba(16, 185, 129, .18), 0 4px 16px rgba(15, 23, 42, .06) !important;
  overflow: hidden;
}
.oda-offer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
}
.oda-offer-top-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.oda-offer-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6ee7b7;
}
.oda-offer-heading {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}
#oda-offerta .oda-timer-inline {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  min-width: 140px;
  justify-content: space-between;
}
#oda-offerta .oda-card-body {
  padding: 20px 20px 22px;
  gap: 14px;
}
#oda-offerta .oda-prices {
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  border: 1px solid #6ee7b7;
  border-radius: 14px;
  padding: 16px 18px;
}
#oda-offerta .oda-price-value {
  font-size: 28px;
  color: #047857;
}
#oda-offerta .oda-btn-primary {
  min-height: 52px;
  font-size: 15px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(16, 185, 129, .4);
}
#oda-offerta .oda-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669, #047857) !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(16, 185, 129, .5);
}
#oda-offerta .oda-btn-buynow {
  min-height: 48px;
  font-size: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(16, 185, 129, .4);
}
#oda-offerta .oda-btn-buynow:hover {
  background: linear-gradient(135deg, #059669, #047857) !important;
  box-shadow: 0 14px 36px rgba(16, 185, 129, .5);
}
#oda-offerta .oda-field input {
  min-height: 48px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
}
#oda-offerta .oda-field input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .15);
}
.oda-detail-badge {
  display: none !important; /* sostituito dall'header del form */
}
@media (max-width: 700px) {
  .oda-offer-top { padding: 14px 16px; }
  .oda-offer-heading { font-size: 16px; }
  #oda-offerta .oda-card-body { padding: 14px 14px 16px; }
  #oda-offerta .oda-price-value { font-size: 22px; }
}

/* Force toolbar look (theme may override with red) */
.oda-wrap .oda-tabs {
  background: #f1f5f9 !important;
  padding: 5px !important;
  border-radius: 12px !important;
}
.oda-wrap .oda-tab {
  background: transparent !important;
  color: #64748b !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 9px !important;
  font-weight: 700 !important;
}
.oda-wrap .oda-tab.is-active {
  background: #fff !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08) !important;
}
.oda-wrap .oda-tab:hover { color: #0f172a !important; }

.oda-legal-block {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}
.oda-legal {
  margin: 0 0 8px !important;
  font-size: 11px !important;
  color: #94a3b8 !important;
  text-align: center;
  line-height: 1.4;
}
.oda-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}
.oda-privacy input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: #10b981;
}
.oda-privacy a {
  color: #059669;
  font-weight: 700;
  text-decoration: underline;
}
.oda-privacy a:hover { color: #047857; }
.oda-field-error[data-error="privacy"] {
  display: block;
  text-align: left;
  margin-top: 4px;
}

/* Banner offerta sotto slider */
.oda-bid-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
  border-bottom: 2px solid #6ee7b7;
}
.oda-bid-banner-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.oda-bid-banner-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #047857;
}
.oda-bid-banner-amount {
  font-size: 32px;
  font-weight: 900;
  color: #065f46;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.oda-bid-banner-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.oda-bid-banner-meta {
  font-size: 13px;
  color: #047857;
  font-weight: 600;
}
.oda-bid-banner-meta strong {
  font-weight: 800;
  color: #065f46;
}
.oda-bid-banner .oda-timer-inline {
  position: static !important;
  margin: 0;
}
@media (max-width: 700px) {
  .oda-bid-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }
  .oda-bid-banner-right {
    align-items: flex-start;
    width: 100%;
  }
  .oda-bid-banner-amount { font-size: 26px; }
}

/* Anti-rosso: tab e bottoni tema */
.oda-wrap .oda-tab,
.oda-wrap button.oda-tab {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 0 !important;
}
.oda-wrap .oda-tab.is-active {
  background: #3b82f6 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .3) !important;
}

.oda-rilancia-min {
  flex: 1 1 100% !important;
  min-height: 42px !important;
  font-size: 13px !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .4) !important;
}

.oda-privacy-link {
  color: #059669 !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative;
  z-index: 5;
}
.oda-privacy-link:hover {
  color: #047857 !important;
}
