/* ==========================================================================
   RADAR CASA & LAR (radarcasaelar.com.br)
   Design System Moderno - Alta Conversão AdSense + Afiliados (ML / Amazon / Shopee)
   ========================================================================== */

:root {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f3460 100%);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: #e2e8f0;

  /* Brand & Accents */
  --brand-primary: #ea580c;
  --brand-primary-hover: #c2410c;
  --brand-secondary: #0284c7;
  --brand-emerald: #059669;
  --brand-amber: #d97706;
  --brand-danger: #dc2626;

  /* Marketplace Colors */
  --ml-bg: #ffe600;
  --ml-text: #1e293b;
  --amazon-bg: #ff9900;
  --amazon-text: #0f172a;
  --shopee-bg: #ee4d2d;
  --shopee-text: #ffffff;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.14);
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

[data-theme="dark"] {
  --bg-primary: #0b1120;
  --bg-surface: #151f32;
  --bg-elevated: #1e293b;
  --bg-hero: linear-gradient(135deg, #060a14 0%, #0f172a 55%, #172554 100%);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #26334d;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
  overflow-x: hidden;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top Bar */
.topbar {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-badges {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
}

/* Header */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, #ea580c, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.45rem;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.32);
  position: relative;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-title span {
  color: var(--brand-primary);
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Search & Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  max-width: 520px;
  justify-content: flex-end;
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
}

.search-box input:focus {
  border-color: var(--brand-primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.theme-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.theme-btn:hover {
  border-color: var(--brand-primary);
  transform: translateY(-1px);
}

/* Category Navigation Bar */
.nav-bar {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-color);
  padding: 0.55rem 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-pill {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
  text-decoration: none;
}

.nav-pill:hover,
.nav-pill.active {
  background: var(--bg-surface);
  color: var(--brand-primary);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.nav-pill.highlight {
  background: rgba(234, 88, 12, 0.12);
  color: var(--brand-primary);
  border-color: rgba(234, 88, 12, 0.28);
}

/* Hero Section */
.hero {
  background: var(--bg-hero);
  color: #ffffff;
  padding: 3.2rem 0 2.8rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2.25rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(234, 88, 12, 0.22);
  border: 1px solid rgba(251, 146, 60, 0.4);
  color: #fed7aa;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 3.3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: #fb923c;
}

.hero p {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff;
  box-shadow: 0 10px 20px -5px rgba(234, 88, 12, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -5px rgba(234, 88, 12, 0.6);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Quick Tool Launcher Card in Hero */
.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

.hero-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fed7aa;
}

.hero-tool-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-tool-btn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.hero-tool-btn:hover {
  background: rgba(234, 88, 12, 0.25);
  border-color: #fb923c;
  transform: translateX(4px);
}

.hero-tool-icon {
  font-size: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-tool-info strong {
  display: block;
  font-size: 0.92rem;
}

.hero-tool-info span {
  font-size: 0.78rem;
  color: #cbd5e1;
}

/* AdSense Slot Simulation */
.ad-slot {
  background: var(--bg-elevated);
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  margin: 1.75rem 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  position: relative;
}

.ad-slot-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.25rem;
}

/* Room Filter Strip (Inspirado e melhorado do print!) */
.room-strip {
  margin: 2rem 0 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 0.85rem;
}

.room-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.room-card:hover,
.room-card.active {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.room-card.active {
  background: rgba(234, 88, 12, 0.06);
}

.room-emoji {
  font-size: 1.75rem;
}

.room-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.room-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.filter-status-banner {
  background: rgba(234, 88, 12, 0.12);
  border: 1.5px solid var(--brand-primary);
  color: var(--text-primary);
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-clear-filter {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

/* ==========================================================================
   INTERACTIVE TOOLS HUB (O grande diferencial para AdSense e Conversão)
   ========================================================================== */
.tools-section {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-md);
}

.tools-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  overflow-x: auto;
}

.tool-tab {
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: all 0.2s;
}

.tool-tab.active {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 8px 18px -4px rgba(234, 88, 12, 0.45);
}

.tool-panel {
  display: none;
}

.tool-panel.active {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.tool-form-box {
  background: var(--bg-elevated);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 500;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-surface);
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
}

.check-item input {
  width: 17px;
  height: 17px;
  accent-color: var(--brand-primary);
}

.tool-result-box {
  background: var(--bg-primary);
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  position: relative;
}

.result-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(234, 88, 12, 0.14);
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
}

.result-score {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--brand-primary);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.result-list {
  list-style: none;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.result-list li {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   PRODUCT & AFFILIATE CARDS (Mercado Livre, Amazon, Shopee)
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
}

.product-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.product-top {
  padding: 1.35rem;
}

.product-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  gap: 0.5rem;
}

.cat-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.winner-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: #fef3c7;
  color: #b45309;
}

.product-visual {
  height: 185px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.6rem;
  margin-bottom: 1rem;
  position: relative;
  padding: 0.45rem;
  overflow: hidden;
}

.product-real-photo {
  max-width: 100%;
  max-height: 168px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.product-card:hover .product-real-photo {
  transform: scale(1.06);
}

.aff-btn-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.vs-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-left: 5px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.vs-bulb-corner {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 2.85rem;
  line-height: 1;
  transform: rotate(28deg);
  filter: drop-shadow(0 4px 10px rgba(234, 179, 8, 0.45));
  pointer-events: none;
  user-select: none;
}

.product-rating {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: var(--bg-surface);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.product-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

.product-specs {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.product-specs li::before {
  content: "✓ ";
  color: var(--brand-emerald);
  font-weight: 800;
}

.product-bottom {
  padding: 1rem 1.35rem 1.35rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-color);
}

.price-note {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
}

.affiliate-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.aff-btn {
  padding: 0.55rem 0.4rem;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  transition: transform 0.15s, filter 0.15s;
}

.aff-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.aff-ml {
  background: var(--ml-bg);
  color: var(--ml-text);
}

.aff-amazon {
  background: var(--amazon-bg);
  color: var(--amazon-text);
}

.aff-shopee {
  background: var(--shopee-bg);
  color: var(--shopee-text);
}

/* ==========================================================================
   SEÇÃO "VOCÊ SABIA?" (Curiosidades Rápidas + Botão de Indicação)
   ========================================================================== */
.voce-sabia-section {
  margin: 2.5rem 0 3rem;
}

.voce-sabia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.35rem;
}

.vs-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-left: 5px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

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

.vs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.vs-badge {
  background: rgba(234, 88, 12, 0.12);
  color: var(--brand-primary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.vs-icon {
  font-size: 1.65rem;
}

.vs-question {
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.vs-answer {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.vs-recommend-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem;
}

.vs-rec-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: block;
}

/* ==========================================================================
   ARTICLES / BLOG GRID (Estilo Revista Moderna)
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.6rem;
  margin: 1.5rem 0 3rem;
}

.article-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.25s;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.article-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.8rem;
  position: relative;
  color: #fff;
}

.article-room-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.article-read-time {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  color: #f8fafc;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
}

.article-body {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.article-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 0.85rem;
}

.article-cta {
  color: var(--brand-primary);
  font-weight: 800;
}

/* ==========================================================================
   MODAL / READER VIEW (Artigos Completos + Páginas Legais AdSense)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(5px);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 860px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  margin: auto 0;
}

.modal-close {
  position: sticky;
  top: 1rem;
  float: right;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
}

.article-full h2 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.article-full h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 1.6rem 0 0.65rem;
  color: var(--brand-primary);
}

.article-full p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.article-full ul {
  margin: 0.75rem 0 1.25rem 1.25rem;
  color: var(--text-secondary);
}

.article-full li {
  margin-bottom: 0.45rem;
}

.pro-tip-box {
  background: rgba(234, 88, 12, 0.08);
  border-left: 4px solid var(--brand-primary);
  padding: 1.1rem 1.25rem;
  border-radius: 0 12px 12px 0;
  margin: 1.25rem 0;
}

.guide-item-card {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1.15rem 0 1.6rem;
  box-shadow: var(--shadow-sm);
}

.guide-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.guide-item-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 !important;
}

.guide-item-badge {
  background: #fef3c7;
  color: #b45309;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
}

.guide-item-body {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.guide-item-thumb {
  width: 110px;
  height: 110px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-item-thumb img {
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
}

.guide-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border-color);
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .guide-item-body {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a,
.footer-links button {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.footer-links a:hover,
.footer-links button:hover {
  color: #fb923c;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .tool-panel.active,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
