/* ==========================================================================
   OfertaRelâmpago.io - Ultra-Clean Modern Light Design System
   Professional White/Slate Theme, Apple/Stripe Aesthetic, High Legibility
   ========================================================================== */

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

:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'Inter', sans-serif;

  /* Color Palette - Ultra Clean Light Aesthetic */
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-highlight: #cbd5e1;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --accent-gold: #d97706;
  --accent-gold-glow: rgba(217, 119, 6, 0.12);
  --accent-red: #dc2626;
  --accent-red-glow: rgba(220, 38, 38, 0.12);
  --accent-green: #16a34a;
  --accent-whatsapp: #16a34a;
  --accent-whatsapp-hover: #15803d;
  --accent-purple: #7c3aed;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-glow: 0 10px 25px -5px rgba(217, 119, 6, 0.15);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 16px 32px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 0% 0%, rgba(220, 38, 38, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(217, 119, 6, 0.04) 0%, transparent 50%);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container & Header */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

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

.logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.logo-icon {
  background: linear-gradient(135deg, #dc2626, #ea580c);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-brand:hover .logo-icon {
  transform: rotate(-5deg) scale(1.05);
}

.logo-text span {
  color: var(--accent-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #ea580c, #d97706);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--border-highlight);
}

.geo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: var(--transition);
}

.geo-btn:hover {
  border-color: var(--accent-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.geo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 10px #16a34a;
  display: inline-block;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 16px 28px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.3);
  width: 100%;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.45);
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 40px 0 20px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-full);
  color: #dc2626;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
  line-height: 1.15;
  color: var(--text-main);
}

.hero-title highlight {
  background: linear-gradient(135deg, #dc2626, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 30px auto;
  font-family: var(--font-secondary);
}

/* Filters & Search */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.search-box {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  background: #ffffff;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  padding-top: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
}

.category-chips::-webkit-scrollbar {
  display: none;
}

.sort-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  flex-wrap: nowrap;
}

.sort-tabs::-webkit-scrollbar {
  display: none;
}

.chip {
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.chip.active, .chip:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Grid & Offer Cards */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}

.offer-card:hover {
  transform: translateY(-6px);
  border-color: #cbd5e1;
  box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.12);
}

.offer-card img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.offer-card:hover img {
  transform: scale(1.04);
}

.card-header-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
  z-index: 2;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.store-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding-right: 75px; /* Reserva espaço para a badge de desconto */
}

.store-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  flex-shrink: 0;
}

.store-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0; /* Previne overflow flexbox */
}

.store-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
  overflow-wrap: break-word;
}

.store-location {
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-word;
}

.offer-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.35;
  color: var(--text-main);
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Descrição curta prévia truncada em 1 linha com alinhamento simétrico */
.offer-description-preview {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  height: 1.35em;
}

.pricing-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.price-original {
  font-size: 0.95rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.price-discount {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent-red);
}

.scarcity-box {
  background: var(--bg-subtle);
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #dc2626, #ea580c);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.scarcity-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.timer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: #ffffff;
}

/* Responsividade */
@media (max-width: 768px) {
  .hero-title { font-size: 1.9rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .offers-grid { grid-template-columns: 1fr; }
}

/* ── Sistema de Anúncios / Banners ─────────────────────────────── */

/* Card Nativo de Anúncio no Grid */
.ad-native-card {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 1.5px dashed #f59e0b;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.ad-native-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.15);
  border-style: solid;
}

.ad-native-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
}

.ad-native-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.ad-native-image-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.ad-native-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ad-native-store {
  font-size: 1rem;
  font-weight: 800;
  color: #92400e;
}

.ad-native-slogan {
  font-size: 0.88rem;
  color: #78350f;
  line-height: 1.4;
  flex: 1;
}

.ad-native-cta {
  display: inline-block;
  margin-top: 8px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
}

.ad-native-cta:hover {
  background: #d97706;
}

/* Banner Flutuante Mobile Bottom */
.ad-mobile-float {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 9000;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  overflow: hidden;
  animation: floatSlideUp 0.4s ease;
}

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

@media (max-width: 768px) {
  .ad-mobile-float.visible { display: flex; }
}

.ad-mobile-float-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  flex: 1;
}

.ad-mobile-float-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: #fde68a;
}

.ad-mobile-float-info {
  flex: 1;
  min-width: 0;
}

.ad-mobile-float-badge {
  font-size: 0.6rem;
  font-weight: 800;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.ad-mobile-float-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-mobile-float-slogan {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-mobile-float-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px 8px 0;
}

.ad-mobile-float-cta {
  background: #0f172a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
}

.ad-mobile-float-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  cursor: pointer;
  text-align: center;
  padding: 0;
}

/* Interstitial Overlay */
.ad-interstitial-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ad-interstitial-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  animation: scaleInBox 0.35s ease;
}

@keyframes scaleInBox {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.ad-interstitial-top {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ad-interstitial-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ad-interstitial-countdown {
  font-size: 0.8rem;
  font-weight: 800;
  color: #f59e0b;
}

.ad-interstitial-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.ad-interstitial-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.ad-interstitial-body {
  padding: 20px;
}

.ad-interstitial-store {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.ad-interstitial-slogan {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.ad-interstitial-skip {
  width: 100%;
  padding: 12px;
  background: #f1f5f9;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.ad-interstitial-skip:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.ad-interstitial-skip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Social Proof Toast Widget */
.social-proof-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9990;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 340px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.social-proof-toast.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.social-proof-toast .toast-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.social-proof-toast .toast-content {
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.35;
}

.social-proof-toast .toast-content strong {
  color: #0f172a;
}

.social-proof-toast .toast-content span {
  color: var(--accent-gold);
  font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE & MOBILE HARDENING (OWASP & ULTRA-CLEAN UI)
   ========================================================================== */

/* Ajustes Globais para Telas Médias e Divididas (Tablets / Split Window < 900px) */
@media (max-width: 900px) {
  .header-content {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* Ajustes para Smartphones e Janelas Pequenas (< 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }

  .site-header {
    padding: 10px 0;
  }

  .logo-brand {
    font-size: 1.15rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 6px;
  }

  .nav-actions .btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  /* Grid de Cards de Estatísticas Responsivas */
  main section[style*="grid"] {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
    gap: 10px !important;
  }

  main section[style*="grid"] > div {
    padding: 14px !important;
  }

  main section[style*="grid"] div[id^="stat"] {
    font-size: 1.5rem !important;
  }

  /* Ajuste de Botões de Ações Rápidas */
  div[style*="flex-wrap: wrap"] {
    gap: 8px !important;
  }

  /* Modais e Caixas de Diálogo Responsivas */
  div[style*="position: fixed"],
  div[id$="Modal"] > div {
    max-width: 95vw !important;
    width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    padding: 16px !important;
  }

  /* Toasts Sociais Flutuantes */
  .social-proof-toast {
    bottom: 12px;
    left: 12px;
    max-width: calc(100vw - 24px);
    padding: 10px 14px;
  }
}

/* Ajustes para Celulares Pequenos (< 480px) */
@media (max-width: 480px) {
  .logo-text small {
    display: none;
  }

  .btn {
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  /* Cards de Oferta em Coluna Única */
  div[id$="Grid"] {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   MODAL OVERLAY & POPUP SYSTEM (STUNNING FLOATING MODALS)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-overlay[style*="display: flex"],
.modal-overlay[style*="display: block"] {
  display: flex !important;
}

.modal-card {
  background: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  width: 100% !important;
  max-width: 580px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  padding: 28px !important;
  position: relative !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   2026 EXECUTIVE FORM INPUT DESIGN SYSTEM (IRIS-9 UI/UX ARCHITECTURE)
   ========================================================================== */
.form-input,
input[type="text"].form-input,
input[type="url"].form-input,
input[type="email"].form-input,
input[type="password"].form-input,
input[type="number"].form-input,
input[type="datetime-local"].form-input,
select.form-input,
textarea.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  font-family: var(--font-primary) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.form-input::placeholder {
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

.form-input:hover {
  background: #ffffff !important;
  border-color: #94a3b8 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.form-input:focus {
  background: #ffffff !important;
  border-color: #d97706 !important;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* Custom Styled Select Dropdown */
select.form-input {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px !important;
  padding-right: 42px !important;
  cursor: pointer !important;
}

textarea.form-input {
  height: auto !important;
  min-height: 100px !important;
  padding: 14px 16px !important;
  line-height: 1.5 !important;
  resize: vertical !important;
}

/* ==========================================================================
   EXECUTIVE BENTO GRID & SAAS SYSTEM (IRIS-9 & DAEDALUS LEVEL 100)
   ========================================================================== */

/* Bento Stat Cards */
.bento-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.bento-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}

.bento-stat-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.08);
}

.bento-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.bento-stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 6px;
}

.bento-stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #0f172a;
}

.bento-stat-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Bento Stores Modular Cards Grid (3 em 3 no Desktop / PC) */
.bento-stores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .bento-stores-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .bento-stores-grid {
    grid-template-columns: 1fr;
  }
}

.bento-store-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}

.bento-store-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.09);
}

.bento-store-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.bento-store-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.bento-store-logo-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.bento-store-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  line-height: 1.2;
}

.bento-store-meta {
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.bento-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 14px 12px;
  margin: 16px 0;
  text-align: center;
}

.bento-metric-col-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 2px;
}

.bento-metric-col-value {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
}

.bento-store-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

/* Dashboard Executive Action Hub */
.dashboard-action-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.action-hub-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.action-hub-card:hover {
  transform: translateY(-3px);
  border-color: #d97706;
  box-shadow: 0 12px 28px -4px rgba(217, 119, 6, 0.12);
}

.action-hub-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-hub-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 3px;
}

.action-hub-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.3;
}

/* Skeleton Loading Shimmer Utility */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite ease-in-out;
  border-radius: var(--radius-sm);
}

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