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

:root {
  --primary: #ee4d2d;
  --primary-hover: #d63e1f;
  --primary-light: rgba(238, 77, 45, 0.1);
  --primary-gradient: linear-gradient(135deg, #ee4d2d 0%, #ff6b4a 100%);
  --sidebar-bg: #1a1a2e;
  --sidebar-hover: rgba(255, 255, 255, 0.05);
  --sidebar-active-bg: rgba(238, 77, 45, 0.15);
  --sidebar-width: 240px;
  --sidebar-width-collapsed: 72px;
  --body-bg: #f0f2f5;
  --text-primary: #2d3436;
  --text-muted: #636e72;
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --card-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --font: 'Inter', sans-serif;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--body-bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* ─── LAYOUT ─── */
.dashboard-wrapper { display: flex; min-height: 100vh; }

.main-content {
  flex: 1;
  padding: 28px 32px;
  overflow-x: hidden;
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition);
}

.main-content.fade-in {
  animation: fadeIn 0.4s ease;
}

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

/* ─── SIDEBAR ─── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: transform var(--transition), width var(--transition);
}

.sidebar .brand {
  padding: 22px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar .brand i {
  font-size: 1.4rem;
  color: var(--primary);
}

.sidebar .brand span {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.sidebar nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.sidebar nav::-webkit-scrollbar {
  width: 8px;
}

.sidebar nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
}

.sidebar nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.sidebar .nav-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  margin: 2px 10px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
}

.sidebar .nav-link i {
  width: 20px;
  font-size: 1.05rem;
  text-align: center;
  flex-shrink: 0;
}

.sidebar .nav-link:hover {
  background: var(--sidebar-hover);
  color: rgba(255, 255, 255, 0.9);
}

.sidebar .nav-link.active {
  background: var(--sidebar-active-bg);
  color: var(--primary);
}

.sidebar .nav-link.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
}

.sidebar .nav-link .badge {
  margin-left: auto;
  font-size: 0.65rem;
}

.sidebar hr {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 8px 16px;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-footer .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.sidebar-footer .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-footer .logout-link {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color var(--transition);
}

.sidebar-footer .logout-link:hover {
  color: var(--primary);
}

/* Botão recolher/expandir menu */
.btn-collapse {
  position: fixed;
  top: 66px;
  left: calc(var(--sidebar-width) - 13px);
  z-index: 1051;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sidebar-bg);
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: left var(--transition), color var(--transition),
    background var(--transition), border-color var(--transition);
}

.btn-collapse:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.btn-collapse i {
  transition: transform var(--transition);
}

/* Hamburger */
.hamburger {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1050;
  background: var(--sidebar-bg);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.hamburger:hover { background: var(--primary); }

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1035;
}

/* ─── CARDS ─── */
.card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--card-hover-shadow);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 16px 20px;
  font-weight: 600;
}

/* ─── STAT CARDS ─── */
.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-card .stat-icon.orange { background: rgba(238, 77, 45, 0.12); color: var(--primary); }
.stat-card .stat-icon.blue { background: rgba(54, 129, 240, 0.12); color: #3681f0; }
.stat-card .stat-icon.green { background: rgba(46, 204, 113, 0.12); color: #2ecc71; }
.stat-card .stat-icon.purple { background: rgba(155, 89, 182, 0.12); color: #9b59b6; }

.stat-card .stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-card > div:last-child {
  flex: 1;
  min-width: 0;
}

/* ─── BUTTONS ─── */
.shopee-btn {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.shopee-btn:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.3);
}

.shopee-btn:active {
  transform: translateY(0);
}

.btn-outline-shopee {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.btn-outline-shopee:hover {
  background: var(--primary);
  color: #fff;
}

/* ─── TABLES ─── */
.table-custom {
  margin-bottom: 0;
}

.table-custom thead th {
  background: var(--sidebar-bg);
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border: none;
  white-space: nowrap;
}

.table-custom thead th:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.table-custom thead th:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.table-custom tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.85rem;
}

.table-custom tbody tr {
  transition: background var(--transition);
}

.table-custom tbody tr:hover {
  background: rgba(238, 77, 45, 0.04);
}

.table-custom tbody tr:last-child td {
  border-bottom: none;
}

/* ─── BADGES ─── */
.badge {
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
}

.badge-ativo { background: linear-gradient(135deg, #2ecc71, #54d98c); color: #fff; }
.badge-inativo { background: linear-gradient(135deg, #e74c3c, #f07a6e); color: #fff; }
.badge-trial { background: linear-gradient(135deg, #3498db, #6ab5e8); color: #fff; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.status-badge.completed { background: rgba(46, 204, 113, 0.12); color: #27ae60; }
.status-badge.pending { background: rgba(238, 77, 45, 0.12); color: var(--primary); }
.status-badge.cancelled { background: rgba(231, 76, 60, 0.12); color: #c0392b; }
.status-badge.unpaid { background: rgba(99, 110, 114, 0.12); color: #636e72; }
.status-badge.fraud { background: rgba(155, 89, 182, 0.12); color: #8e44ad; }

/* ─── TAGS / PILLS ─── */
.pill-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  background: #fff;
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition: all var(--transition);
}

.pill-filter:hover, .pill-filter.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  text-decoration: none;
}

/* ─── NOTIFICATIONS ─── */
.notification-item {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 8px;
  transition: all var(--transition);
  position: relative;
}

.notification-item:hover {
  transform: translateX(4px);
  box-shadow: var(--card-shadow);
}

.notification-item.unread {
  background: rgba(238, 77, 45, 0.04);
  border-left: 3px solid var(--primary);
}

.notification-item .notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.notification-item .notif-icon.down { background: rgba(46, 204, 113, 0.12); }
.notification-item .notif-icon.up { background: rgba(231, 76, 60, 0.12); }

.notification-item .notif-title {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.notification-item .notif-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.notification-item .notif-price {
  font-size: 0.82rem;
  margin-top: 4px;
}

.notification-item .btn-mark-read {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  opacity: 0;
}

.notification-item:hover .btn-mark-read {
  opacity: 1;
}

.notification-item .btn-mark-read:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ─── PAGE HEADERS ─── */
.page-header {
  margin-bottom: 24px;
}

.page-header h4 {
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.page-header .text-muted {
  font-size: 0.85rem;
}

/* ─── FORM ELEMENTS ─── */
.form-control, .form-select {
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 0.875rem;
  transition: all var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.12);
}

.form-select-sm, .form-select[style*="width:auto"] {
  padding-right: 28px;
}

.form-label {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* ─── AUTH PAGES ─── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d5e 40%, #ee4d2d 100%);
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.5s ease;
}

.auth-card .auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-card .auth-logo i {
  font-size: 2.2rem;
  color: var(--primary);
}

.auth-card .auth-logo h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 8px;
  color: var(--text-primary);
}

.auth-card .auth-logo p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 2px 0 0;
}

.auth-card .auth-link {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
}

.auth-card .auth-link a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-card .auth-link a:hover {
  text-decoration: underline;
}

/* ─── PRODUCT CARDS (Converter/Monitoramento) ─── */
.product-card {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.product-card .product-img {
  width: 140px;
  min-height: 140px;
  border-radius: var(--radius-sm);
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.product-card .product-img img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.product-card .product-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
}

.product-card .product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.product-card .product-rating {
  font-size: 0.85rem;
  color: #f39c12;
}

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ─── TOAST CONTAINER ─── */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-container .alert {
  pointer-events: auto;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  animation: slideIn 0.3s ease;
  padding: 14px 40px 14px 18px;
  font-size: 0.85rem;
}

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

/* ─── PRICE TRACKING SPECIFICS ─── */
.countdown-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
  font-size: 0.8rem;
}

.countdown-bar .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ─── HELP SIDEBAR ─── */
.help-sidebar {
  position: sticky;
  top: 1rem;
}

.help-sidebar .nav-link {
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
}

.help-sidebar .nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.help-sidebar .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

/* ─── MENU RECOLHÍVEL (desktop) ─── */
@media (min-width: 768px) {
  body.sidebar-recolhida .sidebar {
    width: var(--sidebar-width-collapsed);
  }

  body.sidebar-recolhida .main-content {
    margin-left: var(--sidebar-width-collapsed);
  }

  body.sidebar-recolhida .btn-collapse {
    left: calc(var(--sidebar-width-collapsed) - 13px);
  }

  body.sidebar-recolhida .btn-collapse i {
    transform: rotate(180deg);
  }

  body.sidebar-recolhida .nav-text,
  body.sidebar-recolhida .nav-link .badge,
  body.sidebar-recolhida .brand span,
  body.sidebar-recolhida .footer-nome,
  body.sidebar-recolhida .logout-texto {
    display: none;
  }

  body.sidebar-recolhida .sidebar .nav-link {
    justify-content: center;
    gap: 0;
    padding: 10px 0;
  }

  body.sidebar-recolhida .sidebar .nav-link i {
    width: auto;
  }

  body.sidebar-recolhida .brand {
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
  }

  body.sidebar-recolhida .sidebar-footer {
    padding: 16px 8px;
  }

  body.sidebar-recolhida .user-info {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  body.sidebar-recolhida .logout-link i {
    margin-right: 0;
  }

  body.sidebar-recolhida .sidebar hr {
    margin: 8px;
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .btn-collapse { display: none; }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.show {
    display: block;
  }

  .main-content {
    margin-left: 0;
    padding: 16px;
    padding-top: 60px;
  }

  .stat-card .stat-value {
    font-size: 1.3rem;
  }

  .product-card {
    flex-direction: column;
  }

  .product-card .product-img {
    width: 100%;
    min-height: 100px;
  }

  .auth-card {
    padding: 28px 20px;
  }

  .notification-item .btn-mark-read {
    opacity: 1;
  }
}

/* ─── RECRIAÇÃO: preview, botões de prompt ─── */
.preview-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.prompt-btn-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.copiar-gemini {
  white-space: nowrap;
}

.copiar-gemini:has(.prompt-btn-label) {
  display: inline-flex;
  align-items: center;
  width: 140px;
  overflow: hidden;
}

.copiar-gemini i {
  flex-shrink: 0;
}

.etapa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.32rem;
  line-height: 1.1;
  font-size: 0.82rem;
}

/* Modal vincular: lista em colunas ocupando a largura */
.prompt-picker {
  max-height: 72vh;
  overflow-y: auto;
}

.prompt-picker .picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 6px;
}

/* Quadros de prompt: todos no tamanho do maior (2 linhas), texto completo */
.prompt-picker .picker-grid .btn {
  min-height: 48px;
  height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.prompt-picker .picker-grid .picker-text {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prompt-picker .picker-grid .btn i {
  flex-shrink: 0;
}

.prompt-picker .picker-grid .picker-icon-check { display: none; }
.prompt-picker .picker-grid .picker-btn.selected .picker-icon-add { display: none; }
.prompt-picker .picker-grid .picker-btn.selected .picker-icon-check { display: inline-block; }

.prompt-picker .picker-grid .picker-btn.selected {
  background-color: #198754;
  border-color: #198754;
  color: #fff;
}

.prompt-picker .picker-grid .picker-btn.selected .text-muted {
  color: rgba(255, 255, 255, 0.85) !important;
}

.prompt-search { max-width: 280px; }

.btn-desvincular-prompt { padding: 0.1rem 0.3rem; line-height: 1; font-size: 0.7rem; }

/* Modal em massa: badges de status */
.massa-status-auto { background: #ffc107; color: #212529; font-size: 0.68rem; }
.massa-status-novo { background: #198754; color: #fff; font-size: 0.68rem; }
.massa-status-ja { background: #0d6efd; color: #fff; font-size: 0.68rem; }
.massa-status-dup { background: #6c757d; color: #fff; font-size: 0.68rem; }
.massa-status-erro { background: #dc3545; color: #fff; font-size: 0.68rem; }

/* ─── RECRIAÇÃO: tabela vira cards abaixo de 768px ─── */
@media (max-width: 767.98px) {
  .table-responsive-cards {
    overflow-x: visible;
    padding: 0 10px 6px;
  }

  .tabela-cards {
    display: block;
    width: 100%;
  }

  .tabela-cards thead {
    display: none;
  }

  .tabela-cards tbody {
    display: block;
  }

  .tabela-cards tbody tr {
    display: block;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow);
    margin-bottom: 10px;
    padding: 10px 12px;
  }

  .tabela-cards tbody tr:hover {
    background: #fff;
  }

  .tabela-cards tbody td {
    display: flex;
    align-items: center;
    width: auto;
    padding: 5px 0 !important;
    border-bottom: none !important;
    font-size: 0.85rem;
    white-space: normal;
  }

  .tabela-cards tbody td::before {
    content: attr(data-label);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    margin-right: 10px;
    min-width: 56px;
    flex-shrink: 0;
  }

  .tabela-cards tbody td.tc-produto {
    width: 100%;
    padding-bottom: 8px !important;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
  }

  .tabela-cards tbody td.tc-produto::before {
    display: none;
  }

  .tabela-cards tbody td.tc-produto a {
    flex: 1;
    min-width: 0;
  }

  .tabela-cards tbody td[data-label="Prompts"] {
    align-items: flex-start;
    padding-top: 8px !important;
  }

  .tabela-cards tbody td[data-label="Prompts"] > div {
    flex: 1;
  }

  .tabela-cards tbody td[data-label="Ações"] {
    width: 100%;
    justify-content: flex-end;
    margin-top: 6px;
    padding-top: 8px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
  }

  .tabela-cards tbody td[data-label="Ações"]::before {
    display: none;
  }

  .preview-img {
    width: 64px;
    height: 64px;
  }
}

/* ─── MISC ─── */
a { color: var(--primary); transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

.cred-ok { color: #27ae60; font-weight: 600; }
.cred-fail { color: #e74c3c; font-weight: 600; }

.tracking-form .input-group {
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* Card hover elevation for product/monitor cards */
.hover-card {
  transition: all var(--transition);
}

.hover-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}

/* ─── SUMMARY CARDS ─── */
.summary-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  transition: all var(--transition);
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
}

.summary-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.summary-icon.blue { background: rgba(54, 129, 240, 0.12); color: #3681f0; }
.summary-icon.green { background: rgba(46, 204, 113, 0.12); color: #2ecc71; }
.summary-icon.orange { background: rgba(238, 77, 45, 0.12); color: var(--primary); }

.summary-text {
  flex: 1;
  min-width: 0;
}

.summary-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.summary-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.summary-card-link {
  color: inherit;
}

.summary-card-link:hover {
  color: inherit;
}

/* ─── STAT CARD BORDERS ─── */
.stat-card .stat-icon.orange { border-top: 3px solid var(--primary); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.stat-card .stat-icon.blue { border-top: 3px solid #3681f0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.stat-card .stat-icon.green { border-top: 3px solid #2ecc71; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.stat-card .stat-icon.purple { border-top: 3px solid #9b59b6; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }

/* ─── PROMO CARDS ─── */
.promo-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.promo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--primary);
}

.promo-discount {
  display: inline-block;
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.promo-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}

.promo-shop {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-prices {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: auto;
}

.promo-old {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.promo-new {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

/* ─── PRODUCT CARDS (Price Tracking) ─── */
.product-card-mini {
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 0 !important;
  position: relative;
}

.product-card-mini:hover {
  box-shadow: 0 4px 16px rgba(238, 77, 45, 0.2) !important;
}

.product-card-mini .card-img-top {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.product-card-mini .card-body {
  position: relative;
}

.product-card-mini .dropdown-toggle::after {
  display: none;
}

.product-card-mini .dropdown-menu {
  z-index: 9999 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.1);
  min-width: 140px;
}
