/* ============================================================
   Scale Ads — Dashboard
   ============================================================ */

/* ── App Layout ─────────────────────────────────────────── */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar {
  width: 232px;
  min-height: 100vh;
  background-color: var(--sidebar-bg);
  background-image:
    linear-gradient(rgba(139,92,246,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
  border-right: 1px solid rgba(139,92,246,0.12);
  box-shadow: 1px 0 20px rgba(0,0,0,0.3);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px 20px;
  border-bottom: 1px solid rgba(139,92,246,0.12);
  background: rgba(139,92,246,0.05);
}

.sidebar-logo {
  width: 38px;
  height: 38px;
  background: rgba(139,92,246,0.15);
  border-radius: 10px;
  border: 1px solid rgba(139,92,246,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-brand-text .name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  display: block;
}
.sidebar-brand-text .role {
  font-size: 10px;
  color: var(--brand-bright);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  width: 100%;
  text-align: left;
  letter-spacing: -0.01em;
  text-transform: none;
  position: relative;
}
.nav-item:hover {
  background: rgba(139,92,246,0.08);
  color: rgba(255,255,255,0.8);
}
.nav-item.active {
  background: rgba(139,92,246,0.18);
  color: #fff;
  font-weight: 600;
  border-left: 2px solid var(--brand-bright);
  padding-left: 10px;
  box-shadow: inset 0 0 24px rgba(139,92,246,0.1);
}
.nav-item.active .nav-icon { color: var(--brand-bright); }
.nav-icon { font-size: 15px; flex-shrink: 0; display: flex; align-items: center; opacity: 0.7; }
.nav-item.active .nav-icon { opacity: 1; }

.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid rgba(139,92,246,0.1);
  background: rgba(0,0,0,0.15);
}

.sync-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  color: #4ade80;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.sync-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(74,222,128,0.6);
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.25);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.logout-btn:hover { color: #fca5a5; background: rgba(220,38,38,0.1); }

/* ── Dash Main ───────────────────────────────────────────── */
.dash-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  position: relative;
}

.dash-main::before {
  content: '';
  position: fixed;
  top: 0;
  left: 232px;
  right: 0;
  height: 340px;
  background:
    radial-gradient(ellipse 60% 70% at 10% -5%,  rgba(139,92,246,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 60% 70% at 90% -5%,  rgba(139,92,246,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(139,92,246,0.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.dash-main > * { position: relative; z-index: 1; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.topbar-breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.dash-body { flex: 1; }

/* ── Layout ─────────────────────────────────────────────── */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Hero / Stats ───────────────────────────────────────── */
.hero {
  padding: 0 0 28px;
  width: 100%;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); }

.stat-card.featured {
  background: var(--brand);
  border-color: var(--brand);
}
.stat-card.featured .stat-value,
.stat-card.featured .stat-label,
.stat-card.featured .stat-icon { color: #fff; }
.stat-card.featured .stat-label { color: rgba(255,255,255,0.75); }

.stat-icon {
  font-size: 18px;
  margin-bottom: 12px;
  display: block;
  color: var(--brand);
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Main content ───────────────────────────────────────── */
.main-content {
  padding: 0 28px 64px;
  width: 100%;
  flex: 1;
}

/* ── View Tabs ──────────────────────────────────────────── */
.view-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: rgba(139,92,246,0.07);
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 14px;
  padding: 4px;
  width: fit-content;
}
.view-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}
.view-tab:hover { color: var(--text-primary); }
.view-tab.active {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  box-shadow: 0 2px 12px rgba(109,40,217,0.35);
}

/* ── Controls ───────────────────────────────────────────── */
.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}
.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(139,92,246,0.45);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.search-input {
  padding-left: 36px;
  height: 38px;
  background: rgba(139,92,246,0.05);
  border: 1px solid rgba(139,92,246,0.18);
  border-radius: 10px;
  font-size: 13px;
}
.search-input:focus {
  border-color: var(--brand);
  background: rgba(139,92,246,0.09);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.14);
}

.sort-group {
  display: flex;
  gap: 2px;
  background: rgba(139,92,246,0.06);
  border: 1px solid rgba(139,92,246,0.18);
  border-radius: 10px;
  padding: 3px;
}
.sort-btn {
  padding: 5px 14px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.38);
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', inherit;
  border-radius: 7px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: -0.01em;
}
.sort-btn:hover {
  color: var(--text-primary);
  background: rgba(139,92,246,0.1);
}
.sort-btn.active {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(109,40,217,0.4);
}

/* ── Filter Block ───────────────────────────────────────── */
.filter-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  background: rgba(139,92,246,0.04);
  border: 1px solid rgba(139,92,246,0.12);
  border-radius: 14px;
  padding: 14px 16px;
}
.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-row-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(167,139,250,0.45);
  text-transform: uppercase;
  letter-spacing: .08em;
  min-width: 72px;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}
.filter-btn {
  height: 28px;
  padding: 0 13px;
  border-radius: 99px;
  border: 1px solid rgba(139,92,246,0.18);
  background: transparent;
  color: rgba(255,255,255,0.38);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', inherit;
  transition: var(--transition);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
}
.filter-btn:hover {
  border-color: rgba(139,92,246,0.45);
  color: var(--brand-light);
  background: rgba(139,92,246,0.08);
}
.filter-btn.active {
  background: rgba(139,92,246,0.22);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(139,92,246,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ── Country Filters ────────────────────────────────────── */
.country-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.country-btn {
  height: 30px;
  padding: 0 16px;
  border-radius: 99px;
  border: 1px solid rgba(139,92,246,0.18);
  background: transparent;
  color: rgba(255,255,255,0.38);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', inherit;
  transition: var(--transition);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
}
.country-btn:hover {
  border-color: rgba(139,92,246,0.45);
  color: var(--brand-light);
  background: rgba(139,92,246,0.08);
}
.country-btn.active {
  background: rgba(139,92,246,0.22);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(139,92,246,0.28);
}

/* ── Grid ───────────────────────────────────────────────── */
.pages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* ── Card ───────────────────────────────────────────────── */
.page-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.page-container:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #c4b5fd;
}

.card-body-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-fire {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.delta-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  flex-shrink: 0;
}
.delta-pill.up   { background: var(--green-bg); color: var(--green); }
.delta-pill.down { background: var(--red-bg);   color: var(--red);   }

.card-page-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-avatar-sm {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.card-page-label {
  font-size: 13px;
  font-weight: 700;
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  max-width: 200px;
}
.card-flag { margin-left: auto; flex-shrink: 0; display: flex; align-items: center; }
.flag-img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  display: inline-block;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.6)) drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  transform: perspective(200px) rotateX(8deg);
}

.heat-row { display: flex; flex-direction: column; gap: 5px; }
.heat-label { font-size: 11px; font-weight: 700; color: var(--brand); }
.heat-bar {
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.heat-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 99px;
  transition: width 0.6s ease;
}

.card-btns { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }

.card-btn-cloaker {
  display: block;
  text-align: center;
  padding: 9px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 7px;
  text-decoration: none;
  transition: transform 0.1s;
  position: relative;
  overflow: hidden;
}
.card-btn-cloaker::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  animation: btn-shimmer 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-shimmer {
  0%   { left: -60%; }
  100% { left: 160%; }
}
.card-btn-cloaker:hover { transform: scale(0.98); }
.card-btn-cloaker-text,
.cloaker-btn-text {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, #86efac 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-btn-primary {
  display: block;
  text-align: center;
  padding: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.card-btn-primary:hover { background: var(--brand-hover); transform: scale(0.98); color: #fff; }

.card-btn-secondary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.card-btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-dim);
}

/* ── Ad Preview ─────────────────────────────────────────── */
.ads-grid { display: block; }

.ad-preview {
  width: 100%;
  overflow: hidden;
  background: var(--bg-base);
}
.ad-preview img {
  width: 100%;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.ad-preview:hover img { transform: scale(1.02); }

.skeleton-thumb {
  width: 100%;
  height: 300px;
  background: linear-gradient(90deg, #1d1250 25%, #251a60 50%, #1d1250 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.no-creatives {
  padding: 36px 24px;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.no-creatives span  { font-size: 13px; font-weight: 500; }
.no-creatives small { font-size: 12px; color: var(--text-disabled); }

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.empty-icon  { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text-secondary); }
.empty-desc  { font-size: 14px; line-height: 1.6; }

/* ── Skeleton cards ─────────────────────────────────────── */
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.skeleton-line { display: block; }

/* ── Modal ──────────────────────────────────────────────── */
.modal-header-info { margin-bottom: 24px; }

.modal-page-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.modal-page-id-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  background: var(--brand-dim);
  border: 1px solid var(--border-bright);
  border-radius: 99px;
  font-size: 11px;
  color: var(--brand);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.modal-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.modal-stat {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.modal-stat-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand);
}
.modal-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 500;
}

.modal-chart-wrap { position: relative; height: 220px; margin-bottom: 20px; }

.chart-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  z-index: 2;
}

.chart-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(124,58,237,0.15);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.modal-period-selector { display: flex; gap: 4px; margin-bottom: 16px; }
.period-btn {
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.period-btn:hover { color: var(--brand); border-color: var(--border-bright); }
.period-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.modal-library-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: var(--radius-sm);
  color: #3b82f6;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.modal-library-btn:hover { background: rgba(59,130,246,0.12); color: #2563eb; }

/* ── Brand Header ───────────────────────────────────────── */
.brand-header {
  text-align: center;
  padding: 32px 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.brand-header-logo {
  height: 270px;
  object-fit: contain;
  filter: drop-shadow(0 0 32px rgba(139,92,246,0.55));
  transition: filter 0.3s;
}
.brand-header-logo:hover {
  filter: drop-shadow(0 0 52px rgba(139,92,246,0.85));
}

.social-icon-bar {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a1040, #251a60);
  border: 1px solid rgba(124,58,237,0.2);
  box-shadow: 4px 4px 12px rgba(0,0,0,0.45), -2px -2px 8px rgba(124,58,237,0.08);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: sicon-float 2.8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.social-icon img { width: 58%; }
.social-icon:hover {
  transform: scale(1.15) rotateZ(8deg) !important;
  box-shadow: 6px 6px 18px rgba(0,0,0,0.5), 0 0 14px rgba(124,58,237,0.4);
  animation-play-state: paused;
}

@keyframes sicon-float {
  0%,100% { transform: translate(0,0); }
  25%      { transform: translate(3px,-5px); }
  50%      { transform: translate(-3px,4px); }
  75%      { transform: translate(4px,4px); }
}

/* ── Kit Clonador ───────────────────────────────────────── */
.kit-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.kit-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(139,92,246,0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
.kit-icon { font-size: 32px; flex-shrink: 0; line-height: 1; }
.kit-info { flex: 1; }
.kit-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.kit-desc { font-size: 12px; color: var(--text-muted); }
.kit-arrow {
  font-size: 18px;
  color: var(--brand-light);
  opacity: 0.5;
  transition: var(--transition);
}
.kit-card:hover .kit-arrow { opacity: 1; transform: translateX(4px); }

.top-offers-title {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 44px;
  letter-spacing: 0.06em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  text-shadow: 0 0 40px rgba(139,92,246,0.6), 0 2px 12px rgba(0,0,0,0.5);
}
.typing-cursor {
  display: inline-block;
  color: var(--brand-bright);
  font-weight: 300;
  font-family: 'Inter', sans-serif;
  animation: cursor-blink 0.75s step-end infinite;
  line-height: 1;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.fire-4d-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 10px;
  box-shadow: 0 0 14px rgba(249,115,22,0.6), 0 0 28px rgba(239,68,68,0.2);
  animation: fire-glow 1.4s ease-in-out infinite;
  transform: rotate(-3deg);
}

@keyframes fire-glow {
  0%,100% { box-shadow: 0 0 14px rgba(249,115,22,0.6), 0 0 28px rgba(239,68,68,0.2); }
  50%      { box-shadow: 0 0 22px rgba(249,115,22,0.9), 0 0 44px rgba(239,68,68,0.4); }
}

/* ── Fav button ─────────────────────────────────────────── */
.ads-grid-wrap { position: relative; }

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(7,4,26,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.fav-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: rgba(255,255,255,0.45);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s ease, fill 0.2s ease;
}
.fav-btn:hover {
  transform: scale(1.15);
  background: rgba(236,72,153,0.2);
  box-shadow: 0 0 12px rgba(236,72,153,0.35);
}
.fav-btn:hover svg {
  stroke: #f472b6;
}
.fav-btn.active {
  background: linear-gradient(135deg, #ec4899, #be185d);
  box-shadow: 0 0 12px rgba(236,72,153,0.6), 0 0 24px rgba(190,24,93,0.25);
  animation: fav-glow 1.6s ease-in-out infinite;
}
.fav-btn.active svg {
  fill: #fff;
  stroke: #fff;
}
@keyframes fav-glow {
  0%,100% { box-shadow: 0 0 10px rgba(236,72,153,0.6), 0 0 20px rgba(190,24,93,0.2); }
  50%      { box-shadow: 0 0 18px rgba(236,72,153,0.85), 0 0 36px rgba(190,24,93,0.35); }
}
@keyframes fav-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4); }
  70%  { transform: scale(0.88); }
  100% { transform: scale(1); }
}
.fav-btn.pop { animation: fav-pop 0.32s ease forwards !important; }

/* ── Fav nav badge ──────────────────────────────────────── */
.fav-nav-badge {
  margin-left: auto;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  min-width: 18px;
  text-align: center;
}

/* ── Profile section ────────────────────────────────────── */
.profile-section {
  padding: 32px 28px;
}

.profile-wrap {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.profile-hero-info { display: flex; flex-direction: column; gap: 4px; }

.profile-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-email-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.profile-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

.profile-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.profile-detail-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.profile-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.profile-detail-row:last-child { border-bottom: none; padding-bottom: 0; }
.profile-detail-row:first-of-type { padding-top: 0; }

.profile-detail-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.profile-detail-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.profile-warn { color: var(--yellow) !important; }

/* ── Pagination ─────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 0 16px;
  flex-wrap: wrap;
}

.pg-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg-btn:hover:not([disabled]) {
  border-color: var(--border-bright);
  color: var(--brand);
  background: var(--brand-dim);
}
.pg-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.pg-btn[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}
.pg-dots {
  color: var(--text-disabled);
  font-size: 13px;
  padding: 0 4px;
  line-height: 36px;
}

/* ── Ofertas do Dia ─────────────────────────────────────── */
.daily-section {
  padding: 0 28px 8px;
}

.daily-section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.daily-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.daily-section-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.daily-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.daily-divider {
  margin-top: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3) 30%, rgba(139,92,246,0.3) 70%, transparent);
}

@media (max-width: 1200px) { .daily-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .daily-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .daily-grid { grid-template-columns: 1fr; } }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1200px) { .pages-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .pages-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .sidebar { display: none; }
  .topbar { padding: 14px 18px; }
  .hero, .main-content { padding-left: 18px; padding-right: 18px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .pages-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-stats-row { grid-template-columns: repeat(2, 1fr); }
  .modal { padding: 20px; }
}
@media (max-width: 480px) {
  .pages-grid { grid-template-columns: 1fr; }
  .controls { flex-direction: column; align-items: stretch; }
  .search-wrap { max-width: none; }
}
