:root {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  color: #0b1021;
  background: #0b1021;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.12), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.18), transparent 28%),
    #0b1021;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(99, 102, 241, 0.08));
  filter: blur(60px);
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  color: #e2e8f0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #e2e8f0;
  font-weight: 500;
  font-size: 13px;
  transition: all 150ms ease;
  text-decoration: none;
  cursor: pointer;
}

.chip-group {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip.tertiary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #1f2937;
  color: #e2e8f0;
  padding: 10px 14px;
}

.chip.tertiary.active {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.chip.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: #334155;
}

.chip.gradient {
  background: linear-gradient(135deg, #63e6ff, #7c3aed);
  border: none;
  color: #0b1021;
}

/* Logout button - sutil */
.chip.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-weight: 500;
  font-size: 12px;
  padding: 8px 12px;
}

.chip.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  color: #e2e8f0;
}

/* Upgrade chip - destaque mas sem ser agressivo */
.chip.upgrade-chip {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  padding: 8px 14px;
}

.chip.upgrade-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  filter: brightness(1.1);
}

/* Admin chip - discreto */
.chip.admin-chip {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #a78bfa;
  font-weight: 500;
  font-size: 12px;
  padding: 8px 12px;
}

.chip.admin-chip:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.5);
}

/* User chip - estilo clean como RD Station */
.chip.user-chip {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-weight: 500;
  font-size: 13px;
  padding: 8px 16px;
  gap: 6px;
}

.chip.user-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.chip.user-chip .plan-label {
  color: #67e8f9;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  background: rgba(103, 232, 249, 0.15);
  border-radius: 4px;
  margin-left: 4px;
}

/* Trial badge - estilo sutil e profissional */
.chip.trial-chip {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  font-weight: 500;
  font-size: 12px;
  padding: 6px 12px;
}

.chip.trial-chip:hover {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.5);
}

.chip.trial-chip.expiring {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.chip.trial-chip.expiring:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Hover genérico removido - cada chip tem seu próprio hover */

.btn-ghost.gradient {
  border: none;
  color: #0b1021;
  background: linear-gradient(135deg, #67e8f9, #6366f1);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.28);
}

.btn-ghost.gradient:hover {
  filter: brightness(1.02);
  box-shadow: 0 16px 34px rgba(99, 102, 241, 0.35);
}

.hero h1 {
  margin: 0;
  font-size: 40px;
  letter-spacing: -0.02em;
}

.lead {
  margin: 8px 0 0;
  max-width: 720px;
  color: #cbd5e1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: #67e8f9;
  margin: 0 0 8px;
}

.badge {
  background: rgba(103, 232, 249, 0.08);
  color: #67e8f9;
  border: 1px solid rgba(103, 232, 249, 0.3);
  border-radius: 999px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  background: #22d3ee;
  border-radius: 50%;
  box-shadow: 0 0 12px #22d3ee;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 18px;
}

.full-row {
  grid-column: 1 / -1;
}

.card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(7, 10, 20, 0.35);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card h2 {
  margin: 4px 0 0;
}

.label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: #475569;
}

.pill {
  background: #0f172a;
  color: #e2e8f0;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid #1e293b;
}

.pill.secondary {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.pill.mini {
  padding: 4px 8px;
  font-size: 12px;
  border-width: 1px;
}

.pill.red {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.pill.amber {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.pill.green {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-field {
  padding: 14px;
  border-radius: 16px;
  border: 2px solid #0ea5e9;
  background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.12), rgba(14, 165, 233, 0.04)),
    #f8fbff;
  box-shadow: 0 18px 45px rgba(14, 165, 233, 0.15), 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.price-field:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(14, 165, 233, 0.25), 0 12px 26px rgba(15, 23, 42, 0.12);
}

.price-field.muted {
  border-color: #cbd5e1;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  box-shadow: inset 0 0 0 1px #e2e8f0, 0 12px 30px rgba(15, 23, 42, 0.08);
}

.price-field.muted .hint {
  color: #475569;
}

.price-field input {
  font-size: 18px;
  font-weight: 700;
  background: #fff;
}

.price-field .hint {
  color: #0ea5e9;
  font-weight: 600;
}

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

.focus-pill {
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  border-color: rgba(14, 165, 233, 0.35);
}

.input-highlight {
  border-color: #67e8f9;
  box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.35);
  background: rgba(103, 232, 249, 0.08);
}

.input-disabled-highlight {
  border-color: #cbd5e1;
  background: #f8fafc;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
}

label {
  font-weight: 600;
  color: #0f172a;
}

input,
select {
  padding: 12px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

button {
  padding: 14px 16px;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

button:hover {
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.hint {
  margin: 0;
  color: #475569;
  font-size: 13px;
}

.results-card {
  min-height: 100%;
}

.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-weight: 600;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #cbd5e1;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 14px;
  padding: 14px 16px;
}

.kpi-label {
  margin: 0;
  color: #475569;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kpi-value {
  margin: 4px 0 2px;
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
}

.kpi-sub {
  margin: 0;
  color: #475569;
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.stat {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  position: relative;
}

.stat-label {
  margin: 0;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.stat-value {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.stat[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translate(-50%, -100%);
  background: #0b1021;
  color: #e2e8f0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.2);
  z-index: 5;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.physical-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}
.physical-wrap .inline {
  margin: 0;
}
.physical-wrap .total-pill {
  justify-self: start;
  margin-top: 4px;
  background: #e0f2fe;
  color: #0f172a;
  font-weight: 700;
}

.advanced-toggle {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0;
}
.advanced {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 10px;
  background: #f8fafc;
  display: none;
}
.advanced.open {
  display: block;
}

.panel {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.panel-title {
  margin: 0 0 8px;
  font-weight: 700;
  color: #0f172a;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

li {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 600;
}

.competitors {
  display: grid;
  gap: 8px;
}

.competitor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.competitor a {
  color: #4338ca;
  text-decoration: none;
  font-weight: 700;
}

.competitor .price {
  font-weight: 700;
  color: #0f172a;
}

.gauge {
  margin: 10px 0 6px;
  position: relative;
}

.gauge-label {
  display: flex;
  justify-content: space-between;
  color: #0f172a;
  align-items: center;
}

.gauge-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gauge-value {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: #0b1021;
}
.inline-target {
  width: 110px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-weight: 700;
  color: #0f172a;
}

.margin-note {
  margin: 6px 0 0;
  color: #475569;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.margin-note.bad {
  color: #b91c1c;
}
.bubble-hint {
  position: absolute;
  top: -14px;
  right: 10px;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ecfeff;
  color: #0f172a;
  border: 1px solid #bae6fd;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.18);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}
.bubble-hint.show {
  opacity: 1;
}

.hidden-field {
  display: none;
}

.gauge-track {
  position: relative;
  margin: 10px 0;
  height: 18px;
  border-radius: 999px;
  overflow: visible;
  background: #e2e8f0;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.1);
  cursor: pointer;
}

.gauge-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 40%, #22c55e 75%, #22c55e 100%);
}

.gauge-indicator {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0f172a;
  box-shadow: 0 0 0 10px rgba(15, 23, 42, 0.12);
  transition: left 160ms ease, transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  animation: pulse 1.8s infinite;
  z-index: 3;
}

.gauge-face {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
}

.gauge-legend {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #475569;
}

.gauge-pop {
  position: absolute;
  top: -52px;
  left: 0;
  transform: translateX(-50%);
  background: #0b1021;
  color: #e2e8f0;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.12);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

.bad {
  color: #b91c1c !important;
}

.bad.gauge-pop {
  background: #fee2e2 !important;
  color: #7f1d1d !important;
}

.bad.gauge-indicator {
  background: #ef4444 !important;
  box-shadow: 0 0 0 6px #fecaca !important;
}

.quick-stats .stat-value {
  font-size: 18px;
}

.cta-simulator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  margin-bottom: 8px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #6366f1;
  color: #6366f1;
  text-decoration: none;
  font-weight: 700;
  background: white;
  transition: all 0.12s ease;
}

.btn-ghost:hover {
  background: #eef2ff;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.15);
}

.btn-ghost.small {
  padding: 6px 10px;
  font-size: 13px;
}

.lead.small {
  margin: 2px 0 0;
  font-size: 14px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

th {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
}

.divider {
  height: 1px;
  background: #e2e8f0;
  margin: 12px 0;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.product-actions .actions-left {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-actions .btn {
  border: none;
  cursor: pointer;
  font-weight: 700;
}

.product-actions .btn.primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #0b1021;
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2);
}

.product-actions .btn.secondary {
  background: #e2e8f0;
  color: #0b1021;
  border-radius: 14px;
  padding: 10px 16px;
}

.product-actions .btn.tertiary {
  background: #f8fafc;
  color: #0b1021;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 8px 12px;
}

.product-actions .btn.tertiary.active {
  border-color: #22c55e;
  background: #dcfce7;
  color: #065f46;
}

/* Analysis Summary - design minimalista com ícones clicáveis */
.analysis-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  margin-top: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.analysis-summary:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
}

.analysis-main {
  display: flex;
  align-items: center;
  gap: 6px;
}

.analysis-avg {
  font-size: 13px;
  font-weight: 700;
  color: #1e40af;
}

.analysis-diff {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
.analysis-diff.above {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}
.analysis-diff.below {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}
.analysis-diff.equal {
  background: rgba(100, 116, 139, 0.15);
  color: #64748b;
}

.analysis-sources {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 8px;
  border-left: 1px solid rgba(59, 130, 246, 0.2);
}

.source-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 28px;
  height: 24px;
  font-size: 14px;
  border-radius: 4px;
  cursor: help;
  transition: all 0.15s ease;
}
.source-icon:hover {
  transform: scale(1.1);
}

.source-icon.ml {
  background: rgba(255, 230, 0, 0.2);
}
.source-icon.competitors {
  background: rgba(34, 211, 238, 0.2);
}
.source-icon.market {
  background: rgba(168, 85, 247, 0.2);
}

.source-count {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: #3b82f6;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-analysis-details {
  background: transparent;
  border: none;
  color: #3b82f6;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.btn-analysis-details:hover {
  background: rgba(59, 130, 246, 0.15);
}

/* Modal de detalhes com abas */
.analysis-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 16px;
}

.analysis-tab {
  padding: 10px 16px;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.analysis-tab:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}
.analysis-tab.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}

.analysis-tab-content {
  display: none;
}
.analysis-tab-content.active {
  display: block;
}

/* Tabela comparativa de fontes */
.sources-comparison {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 13px;
}
.sources-comparison th {
  background: #f1f5f9;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}
.sources-comparison td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
}
.sources-comparison tr:hover td {
  background: #f8fafc;
}
.sources-comparison .source-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sources-comparison .price-highlight {
  font-weight: 700;
  color: #1e40af;
}

.product-actions .hint {
  margin: 0;
}

.product-actions .actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-actions #nfeSearch {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  min-width: 220px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.view-switch {
  display: inline-flex;
  gap: 6px;
}

.nav-switch {
  display: inline-flex;
  gap: 4px;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  background: #fff;
}

.product-table th,
.product-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  vertical-align: middle;
}
.product-table .price-warning {
  color: #b45309;
  font-weight: 700;
}
.product-table .price-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 50%;
  background: #fef3c7;
  color: #b45309;
  font-weight: 800;
  font-size: 12px;
  vertical-align: middle;
}

.product-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
}

.product-table tbody tr:hover {
  background: #f1f5f9;
}
.product-table .name-link {
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
}

.kit-table-wrap {
  max-height: 340px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-top: 10px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.kit-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.kit-actions input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
}

.kit-table input[type='number'] {
  width: 90px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

.kit-actions .btn.tertiary {
  background: #f8fafc;
  color: #0b1021;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 8px 12px;
}

.kit-actions .btn.primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #0b1021;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.25);
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.product-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-weight: 600;
}

.product-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.flow-hint {
  margin: 6px 0 10px;
  color: #475569;
  font-size: 13px;
}
.tab-switch {
  display: inline-flex;
  gap: 6px;
  margin: 10px 0 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
}

.tab-switch .tab {
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-switch .tab.active {
  background: #0b1021;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}
.quick-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.sim-pane {
  flex: 1 1 360px;
}
.chat-inline {
  flex: 1 1 360px;
  min-height: auto;
  display: flex;
  align-self: stretch;
  margin-top: 80px;
  background: transparent;
  border: none;
  box-shadow: none;
}
.chat-inline .inline-chat {
  display: flex !important;
  position: relative;
  width: 100%;
  min-height: 620px;
  height: calc(100vh - 220px);
  max-height: calc(100vh - 220px);
  max-width: none;
  background: #e5ddd5;
  border: 1px solid #d6ccbe;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  flex-direction: column;
  padding: 12px;
  gap: 10px;
}
.chat-body-bg {
  flex: 1;
  background: #e5ddd5;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.inline-chat .chat-body {
  flex: 1;
  max-height: 100%;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px;
  background: transparent;
  border-radius: 12px;
}
.inline-chat .chat-body::-webkit-scrollbar {
  width: 8px;
}
.inline-chat .chat-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 10px;
}
.inline-chat .chat-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08);
}

.typing-bubble {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid #d6d6d6;
  color: #0b1016;
  border-radius: 16px;
  padding: 8px 12px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}
.typing-dot {
  width: 6px;
  height: 6px;
  background: #5f6368;
  border-radius: 50%;
  opacity: 0.3;
  animation: blink 1.4s infinite both;
}
.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes blink {
  0% {
    opacity: 0.2;
  }
  20% {
    opacity: 0.6;
  }
  100% {
    opacity: 0.2;
  }
}
.select-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #0b1021;
  user-select: none;
}
.mini-hint {
  margin: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}
.primary-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
}
.toolbar-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-action {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-actions-secondary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar-right {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, auto));
  gap: 8px;
  align-items: center;
  justify-content: end;
}
.secondary-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ops-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.export-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  display: none;
  min-width: 160px;
  z-index: 30;
  padding: 6px 0;
}
.dropdown.open .dropdown-menu {
  display: block;
}
.dropdown-menu button {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  color: #0b1021;
  font-weight: 600;
}
.dropdown-menu button:hover {
  background: #f8fafc;
}
.flow-dropdown {
  position: relative;
}
.flow-dropdown .dropdown-menu {
  position: absolute;
  top: 105%;
  left: 0;
  min-width: 220px;
  margin-top: 6px;
}
.flow-dropdown.open .dropdown-menu {
  display: block;
}
.flow-dropdown.open .dropdown-menu {
  display: block;
}
.hidden {
  display: none !important;
}
.btn.primary.big {
  padding: 12px 16px;
  font-size: 16px;
  background: linear-gradient(135deg, #00d084, #00a26c);
  color: #0b1021;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.btn.outline {
  border: 1px solid #00a26c;
  color: #0b1021;
  background: #f0fdf4;
}
.btn.outline.small,
.btn.ghost.small {
  padding: 8px 12px;
  font-size: 14px;
}
.btn.ghost {
  border: 1px solid #d9e1ec;
  color: #0b1021;
  background: #fff;
}
.btn.ghost.active {
  background: #0b1021;
  color: #fff;
  border-color: #0b1021;
}
.actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.actions-bar .actions-left,
.actions-bar .actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.actions-left .btn,
.actions-right .btn {
  margin: 0;
}
.search-input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  min-width: 200px;
}
.steps-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.step {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  align-items: center;
}
.step.active {
  border-color: #00a26c;
  box-shadow: 0 8px 18px rgba(0, 162, 108, 0.15);
}
.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0b1021;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.step-title {
  margin: 0;
  font-weight: 800;
  color: #0b1021;
}
.step-sub {
  margin: 0;
  color: #475569;
  font-size: 13px;
}
.workflow {
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 22px;
  background: #f6f8fb;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  max-width: 1320px;
  margin: 0 auto;
}
.flow-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.flow-title {
  margin: 4px 0;
  font-size: 22px;
  color: #0b1021;
  font-weight: 800;
}
.flow-sub {
  margin: 4px 0 0;
  color: #475569;
}
.flow-ctrls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}
.flow-ctrls .ctrl-left,
.flow-ctrls .ctrl-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.flow-ctrls .ctrl-left {
  flex: 1;
  min-width: 260px;
}
.flow-ctrls .ctrl-right {
  justify-content: flex-end;
}
.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin: 18px 0 18px;
}
.flow-steps.three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (min-width: 1280px) {
  .flow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.flow-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 46px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  min-height: 300px;
  position: relative;
}
.flow-chip {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -18px;
  right: -18px;
  font-size: 22px;
  box-shadow: 0 14px 28px rgba(99, 102, 241, 0.28);
}
.flow-chip.dark {
  background: linear-gradient(135deg, #0b1021, #1e293b);
  color: #e8edf7;
}
.action-title {
  margin: 4px 0 4px 0;
  font-weight: 800;
  color: #0b1021;
}
.action-sub {
  margin: 0 0 10px 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
  padding-top: 2px;
}
.flow-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  margin-top: auto;
  width: 100%;
}
.btn.ml {
  background: #ffe600;
  color: #111827;
  border: 1px solid #fcd34d;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(234, 179, 8, 0.25);
}
.btn.ml:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.btn.ml svg {
  transition: transform 0.3s ease;
}

.btn.ml:hover svg {
  transform: scale(1.1) rotate(-5deg);
}
.btn.secondary.ghost {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
}
.btn.secondary.ghost:hover {
  filter: brightness(0.97);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  color: #0b1021;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-card h3 {
  margin: 0;
  font-size: 20px;
}
.modal-card .modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}
.modal-card .btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}
.btn.secondary {
  background: #e2e8f0;
  color: #0f172a;
}
.btn.primary.confirm {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #0b1021;
  box-shadow: 0 12px 26px rgba(34, 197, 94, 0.25);
}
.flow-actions {
  grid-column: 2 / span 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  align-content: flex-start;
  margin-top: auto;
  flex-direction: column;
  width: 100%;
}
.flow-actions .wide {
  min-width: 240px;
  width: 100%;
}
.competitors-row {
  display: flex;
  gap: 8px;
  width: 100%;
}
.competitors-row .btn.secondary.wide {
  flex: 1;
}
.btn.icon-btn {
  padding: 10px 12px;
  min-width: auto;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn.icon-btn:hover {
  background: rgba(34, 211, 238, 0.2);
  border-color: rgba(34, 211, 238, 0.5);
  transform: scale(1.05);
}
.flow-dropdown {
  position: relative;
}
.flow-dropdown .dropdown-menu {
  min-width: 240px;
  margin-top: 6px;
}
.flow-dropdown .dropdown-menu button {
  width: 100%;
  text-align: left;
}
.micro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.micro-actions.vertical {
  flex-direction: column;
  align-items: flex-start;
}
.micro-actions .btn.tiny {
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid #d9e1ec;
}
.compact-select,
.compact-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d9e1ec;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
}
.micro-label {
  font-size: 12px;
  color: #334155;
}

/* Market Details Product Cards */
.market-product-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.market-product-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.market-product-thumbnail {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.market-product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.market-product-thumbnail.no-image {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 10px;
}

.market-product-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.market-product-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.market-product-price {
  font-size: 18px;
  font-weight: 700;
  color: #16a34a;
  margin-top: 2px;
}

.market-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.market-product-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #e0f2fe;
  color: #0369a1;
}

.market-product-badge.free-shipping {
  background: #dcfce7;
  color: #15803d;
}

.market-product-badge.seller {
  background: #f3e8ff;
  color: #7c3aed;
}

.market-product-badge.source {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  letter-spacing: 0.3px;
}

.market-product-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  margin-top: 4px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  width: fit-content;
}

.market-product-link:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.market-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  max-height: 600px;
  overflow-y: auto;
  padding: 4px;
}

.market-details-grid::-webkit-scrollbar {
  width: 8px;
}

.market-details-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.market-details-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.market-details-grid::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
  margin-top: 4px;
}
.apply-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  max-width: 100%;
}
.apply-target-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 120px);
  gap: 10px;
  align-items: end;
  width: 100%;
}
.apply-target-row .compact-select,
.apply-target-row .compact-input {
  height: 44px;
  font-size: 15px;
  min-width: 0;
  width: 100%;
}
.apply-details.open {
  display: flex;
}
.apply-card .apply-main {
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  color: #fff;
  border: none;
}
.apply-card .apply-main:hover {
  filter: brightness(1.03);
}
.apply-card .flow-dropdown .btn.primary.ghost {
  background: #e8edff;
  color: #0b1021;
  border: 1px solid #c7d2fe;
}
.apply-card .flow-dropdown .btn.primary.ghost:hover {
  background: #dbe4ff;
}
.apply-card {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 70%);
}
.apply-card .flow-text {
  margin-bottom: 4px;
}
.apply-card .flow-actions {
  gap: 12px;
}
.flow-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.flow-ctrls .search-input {
  min-width: 220px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
}
.modal-box {
  background: #fff;
  color: #0b1021;
  padding: 18px;
  border-radius: 12px;
  width: min(640px, 90%);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}
.modal-box.small {
  width: min(520px, 90%);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.modal-body {
  max-height: 60vh;
  overflow: auto;
}
.search-list {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px;
  background: #f8fafc;
  margin-top: 10px;
}
.search-list .row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
  padding: 6px 4px;
  border-bottom: 1px solid #e2e8f0;
}
.search-list .row:last-child {
  border-bottom: none;
}
.search-list .name {
  font-weight: 600;
  color: #0b1021;
}
.search-list .meta {
  color: #475569;
  font-size: 12px;
}
.list-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.list-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  background: #f8fafc;
}
.list-card h4 {
  margin: 0 0 6px 0;
}
.list-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.product-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.product-card h4 {
  margin: 0;
  font-size: 16px;
  color: #0b1021;
}

.product-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  font-size: 13px;
  color: #475569;
  margin: 4px 0;
}

.meta-row.price-edit {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}
.meta-row.price-edit label {
  min-width: 140px;
  margin: 0;
}

.product-price-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-weight: 700;
  color: #0b1021;
  font-size: 16px;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.08);
}

.meta-row.price-edit.wide-input .product-price-input {
  font-size: 22px;
  font-weight: 800;
  max-width: 280px;
  text-align: right;
}
.price-prefix {
  font-weight: 800;
  color: #0b1021;
  padding: 6px 6px 6px 0;
}
.input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.product-price {
  font-weight: 800;
  font-size: 22px;
  color: #0b1021;
}

.product-inline {
  display: contents;
}

.product-body.fancy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  padding: 4px 2px;
}

.product-col {
  display: grid;
  gap: 6px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px 10px;
}

.meta-label {
  font-weight: 600;
  color: #475569;
}

.meta-value {
  font-weight: 700;
  color: #0f172a;
}

.meta-value.debit {
  color: #b91c1c;
}

.meta-value.big {
  font-size: 22px;
}
.meta-block {
  margin-top: 8px;
  padding: 8px;
  border: 1px dashed #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 6px;
}
.meta-grid > div {
  min-width: 180px;
  display: flex;
  flex-direction: column;
}
.meta-block.dre {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.dre-item {
  min-width: 180px;
  display: flex;
  flex-direction: column;
}

.product-margin {
  font-weight: 800;
  color: #16a34a;
  font-size: 18px;
}

.product-margin.bad {
  color: #b91c1c;
}

.select-row {
  display: flex;
  justify-content: flex-end;
}

.product-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.product-compare {
  grid-column: 1 / -1;
  font-size: 13px;
  color: #475569;
  padding-top: 4px;
}

.expert-response pre.expert-short {
  background: #f5f7fb;
  border-radius: 8px;
  padding: 12px;
  white-space: pre-wrap;
  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  margin-bottom: 10px;
}
.expert-bubble {
  background: linear-gradient(135deg, #f5f7fb, #eef2ff);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  margin-bottom: 10px;
}
.bubble-header {
  font-weight: 700;
  color: #0b1021;
  margin-bottom: 6px;
}
.bubble-main {
  margin: 0;
  font-size: 15px;
  color: #0f172a;
}
.bubble-sec {
  margin: 4px 0 0 0;
  color: #334155;
  font-size: 14px;
}
.expert-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.expert-evidence {
  margin-top: 8px;
  padding: 10px;
  background: #f0f4ff;
  border-radius: 8px;
}
.expert-evidence ul {
  margin: 0;
  padding-left: 18px;
}
.expert-evidence li {
  margin-bottom: 4px;
}

.mini-gauge {
  margin-top: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.mini-gauge-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.mini-gauge-value {
  font-weight: 700;
  color: #0b1021;
  font-size: 14px;
}

.mini-gauge-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  overflow: visible;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #22c55e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.mini-gauge-indicator {
  position: absolute;
  top: -10px;
  transform: translateX(-50%);
  cursor: grab;
  user-select: none;
}

.mini-gauge-face {
  font-size: 24px;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.2));
}

.mini-gauge-legend {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #475569;
  margin-top: 2px;
}

.btn-compare {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #ffea00;
  color: #0b1021;
  background: linear-gradient(135deg, #ffea00, #ffd000);
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn-compare:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.btn-compare:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.badge-sku {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  font-size: 12px;
}

.product-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.pill-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #0f172a;
  color: #e2e8f0;
  font-weight: 800;
  font-size: 16px;
}

.pill-margin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #ecfdf3;
  color: #166534;
  font-weight: 800;
  font-size: 15px;
}

.pill-margin.bad {
  background: #fef2f2;
  color: #991b1b;
}

.product-meta small {
  color: #94a3b8;
}

.promo-grid {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
}

.card-header.small {
  margin-bottom: 8px;
}

.card-header.small h3 {
  margin: 4px 0 0;
}

.chat-launcher {
  display: none;
}

.chat-widget {
  position: fixed;
  bottom: 70px;
  left: 20px;
  width: 340px;
  max-width: calc(100% - 40px);
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  color: #e2e8f0;
  display: none;
  z-index: 20;
}

.chat-widget.open {
  display: block;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 4px;
  background: transparent;
}
.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat-name {
  margin: 0;
  font-weight: 800;
  color: #0b1021;
  font-size: 15px;
}
.chat-status {
  margin: 0;
  color: #0f5132;
  font-size: 12px;
  font-weight: 700;
}

.chat-body {
  flex: 1;
  max-height: none;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  background: linear-gradient(180deg, #0f172a 0%, #0b1223 100%);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.chat-bubble {
  max-width: 86%;
  padding: 10px 12px 8px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.45;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  position: relative;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: #ffffff;
  color: #0b1016;
  border: 1px solid #d6d6d6;
}

.chat-bubble.me {
  align-self: flex-end;
  background: #d9fdd3;
  color: #0b1021;
  border: 1px solid #b0e6b1;
  border-radius: 18px 18px 4px 18px;
}

.chat-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  opacity: 0.7;
  margin-top: 4px;
  color: #5f6368;
}

.chat-meta .ticks {
  color: #53bdeb;
  font-weight: 800;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
}
.chat-extra {
  display: flex;
  gap: 6px;
  align-items: center;
}

.chat-input-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  box-sizing: border-box;
}

.chat-input-row button {
  white-space: nowrap;
}

.btn.tertiary.small {
  padding: 6px 10px;
}

.analyze-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 16, 33, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 200ms ease, visibility 200ms ease;
}
.analyze-overlay.show {
  opacity: 1;
  visibility: visible;
}
.analyze-box {
  background: #0b1021;
  color: #e2e8f0;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid #1f2937;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
}
.analyze-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(226, 232, 240, 0.4);
  border-top-color: #06b6d4;
  animation: spin 1s linear infinite;
}
.analyze-text {
  margin: 0;
  font-weight: 700;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Destaques contextuais do chat */
.pulse-highlight {
  animation: pulseGlow 2.5s ease-in-out 8, pulseScale 1.4s ease-in-out 6;
  outline: 2px solid rgba(54, 198, 240, 0.9);
  outline-offset: 2px;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(54, 198, 240, 0.6); }
  50% { box-shadow: 0 0 0 14px rgba(54, 198, 240, 0); }
  100% { box-shadow: 0 0 0 0 rgba(54, 198, 240, 0); }
}

@keyframes pulseScale {
  0% { transform: scale(1); }
  50% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

/* Campos obrigatórios em destaque */
.required-field {
  position: relative;
  animation: pulseAttention 2s ease-in-out infinite;
}

.required-field.filled {
  animation: none;
}

.required-field select,
.required-field input {
  border: 2px solid rgba(251, 191, 36, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15) !important;
}

.required-field.filled select,
.required-field.filled input {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

.required-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0b1021;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulseBadge 2s ease-in-out infinite;
}

.required-field.filled .required-badge {
  display: none;
}

.required-badge-inline {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0b1021;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulseBadge 2s ease-in-out infinite;
}

.required-field.filled .required-badge-inline {
  display: none;
}

.required-field button {
  border: 2px solid rgba(251, 191, 36, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1) !important;
}

.required-field.filled button {
  border: 1px solid #1b2a4a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

@keyframes pulseAttention {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-2px);
  }
}

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

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .card {
    padding: 16px;
  }
}

/* ===== COMPETITORS MODAL STYLES ===== */
.modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.modal-tab {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.modal-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.modal-tab.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(14, 165, 233, 0.2));
  border-color: rgba(99, 102, 241, 0.5);
  color: #fff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.competitor-result {
  margin-top: 16px;
}

.competitor-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.competitor-thumb {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.competitor-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.competitor-title {
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competitor-store {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 4px;
}

.competitor-price {
  font-size: 18px;
  font-weight: 700;
  color: #22d3ee;
  margin: 0;
}

.competitor-price.unavailable {
  color: #ef4444;
  font-size: 14px;
}

.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.comparison-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 13px;
}

.comparison-item-favicon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.comparison-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.comparison-item-domain {
  font-weight: 600;
  color: #e2e8f0;
  font-size: 13px;
}

.comparison-item-path {
  color: #64748b;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-item-url {
  flex: 1;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-item-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.comparison-item-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  border-radius: 4px;
}

.comparison-result {
  margin-top: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.comparison-header {
  margin-bottom: 16px;
}

.comparison-title {
  font-weight: 600;
  color: #e2e8f0;
  margin: 0;
}

.comparison-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.comparison-stat {
  text-align: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.comparison-stat-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.comparison-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #e2e8f0;
}

.comparison-stat-value.min { color: #22c55e; }
.comparison-stat-value.max { color: #ef4444; }
.comparison-stat-value.avg { color: #eab308; }
.comparison-stat-value.median { color: #22d3ee; }

.comparison-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.comparison-item-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.comparison-item-result .store {
  font-weight: 500;
  color: #e2e8f0;
  min-width: 120px;
}

.comparison-item-result .title {
  flex: 1;
  color: #94a3b8;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-item-result .price {
  font-weight: 700;
  color: #22d3ee;
  font-size: 15px;
}

.comparison-item-result .price.lowest {
  color: #22c55e;
}

.comparison-item-result .price.highest {
  color: #ef4444;
}

.comparison-item-result .price.unavailable {
  color: #64748b;
  font-size: 12px;
}

/* Sites list */
.sites-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.site-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(14, 165, 233, 0.2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.site-info {
  flex: 1;
}

.site-name {
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 2px;
}

.site-domain {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.site-actions {
  display: flex;
  gap: 8px;
}

.site-action {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s;
}

.site-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.site-action.delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.field-row {
  display: flex;
  align-items: flex-end;
}

/* Site Preview */
.site-preview {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.site-preview.valid {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.05);
}

.site-preview.checking {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.05);
}

.site-preview.error {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.05);
}

.site-preview-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-preview-favicon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
}

.site-preview-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-preview-domain {
  font-weight: 600;
  color: #e2e8f0;
  font-size: 14px;
}

.site-preview-status {
  font-size: 12px;
  color: #64748b;
}

.site-preview.valid .site-preview-status {
  color: #22c55e;
}

.site-preview.checking .site-preview-status {
  color: #818cf8;
}

.site-preview.error .site-preview-status {
  color: #ef4444;
}

.site-preview-status .spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(129, 140, 248, 0.3);
  border-top-color: #818cf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

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

/* Site Preview Card com Screenshot */
.site-preview-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.site-screenshot-container {
  position: relative;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 1), rgba(15, 23, 42, 1));
  overflow: hidden;
}

.site-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-screenshot.loaded {
  opacity: 1;
}

.site-screenshot-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
}

.site-screenshot-loading.hidden {
  display: none;
}

.site-screenshot-loading .spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(99, 102, 241, 0.3);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.site-preview-details {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-preview-card .site-preview-favicon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
}

.site-preview-card .site-preview-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-preview-card .site-preview-domain {
  font-weight: 600;
  color: #e2e8f0;
  font-size: 14px;
}

.site-preview-card .site-preview-status {
  font-size: 12px;
  color: #22c55e;
}

.site-preview-card.checking .site-preview-status {
  color: #818cf8;
}

.site-preview-card.error .site-preview-status {
  color: #f59e0b;
}

.site-preview-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.site-preview-actions .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
}
