/* ================================================
   VENDPET — Marketplace de Pets
   Design System
================================================ */

:root {
  --primary: #FF7A00;
  --primary-dark: #e06900;
  --primary-light: #fff4e6;
  --primary-mid: #ffe8cc;
  --accent: #FF7A00;
  --accent-dark: #e06900;
  --accent-light: #fff4e6;
  --success: #22C55E;
  --success-light: #dcfce7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --info: #2563eb;
  --info-light: #eff6ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --r: 8px;
  --rlg: 14px;
  --rxl: 20px;
  --sh: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --sh-md: 0 4px 8px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.06);
  --sh-lg: 0 12px 24px rgba(0,0,0,.1), 0 4px 8px rgba(0,0,0,.06);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gray-800); background: #f9fafb; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button,input,select,textarea { font-family: inherit; }
ul { list-style: none; }

/* ===================== UTILS ===================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.page { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--r); font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: all .18s; white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(255,122,0,.35); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-dark); box-shadow: 0 4px 12px rgba(249,115,22,.35); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-ghost { background: transparent; color: var(--gray-600); border: 1.5px solid var(--gray-200); }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-800); }
.btn-danger { background: var(--danger); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-whatsapp { background: #25d366; color: white; }
.btn-whatsapp:hover { background: #22c55e; box-shadow: 0 4px 12px rgba(37,211,102,.4); }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-sm { padding: 6px 13px; font-size: 12px; }
.btn-block { width: 100%; }

/* ===================== HEADER ===================== */
.header {
  background: white;
  box-shadow: 0 1px 0 var(--gray-100), var(--sh);
  position: sticky; top: 0; z-index: 200;
}
.navbar {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px; max-width: 1200px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 21px; font-weight: 800; color: var(--primary); flex-shrink: 0; cursor: pointer;
}
.logo-icon {
  width: 38px; height: 38px; background: linear-gradient(135deg, #FF7A00, #ff9a3c);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 0 2px 8px rgba(255,122,0,.3);
}
.logo-accent { color: var(--accent); }
.navbar-search { flex: 1; max-width: 480px; }
.navbar-search form { display: flex; gap: 6px; }
.navbar-search input {
  flex: 1; padding: 9px 14px; border: 2px solid var(--gray-200);
  border-radius: var(--r); font-size: 14px; outline: none; transition: border-color .2s;
}
.navbar-search input:focus { border-color: var(--primary); }
.navbar-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.nav-link {
  padding: 8px 13px; border-radius: var(--r); font-size: 14px; font-weight: 500;
  color: var(--gray-600); cursor: pointer; border: none; background: none; white-space: nowrap;
  transition: all .15s;
}
.nav-link:hover { background: var(--gray-100); color: var(--gray-900); }
.btn-nav-anunciar {
  background: #FF7A00; color: white; padding: 9px 20px;
  border-radius: 999px; font-size: 14px; font-weight: 700; border: none;
  cursor: pointer; transition: all .15s; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255,122,0,.3);
}
.btn-nav-anunciar:hover { background: #e06900; box-shadow: 0 4px 12px rgba(255,122,0,.45); transform: translateY(-1px); }

/* User menu */
.user-menu { position: relative; }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #FF7A00, #ff9a3c);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; cursor: pointer; border: 2px solid var(--primary-mid);
}
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); background: white;
  border-radius: var(--rlg); box-shadow: var(--sh-lg); border: 1px solid var(--gray-100);
  min-width: 210px; padding: 8px; z-index: 300; display: none;
}
.user-dropdown.open { display: block; }
.user-dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--r); font-size: 14px; cursor: pointer; color: var(--gray-700);
  border: none; background: none; width: 100%; text-align: left; transition: background .15s;
}
.user-dropdown-item:hover { background: var(--gray-50); }
.user-dropdown-div { height: 1px; background: var(--gray-100); margin: 4px 0; }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray-700); }

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(135deg, #cc5f00 0%, #FF7A00 55%, #ff9a3c 100%);
  padding: 56px 16px 48px; text-align: center; color: white;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '🐾🐾🐾🐾🐾🐾🐾🐾🐾🐾🐾🐾🐾🐾🐾🐾🐾🐾🐾🐾';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  font-size: 60px; opacity: .04; word-break: break-all;
  display: flex; flex-wrap: wrap; overflow: hidden;
  pointer-events: none; letter-spacing: 20px;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25); padding: 5px 14px;
  border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-size: 40px; font-weight: 900; line-height: 1.15; margin-bottom: 14px; letter-spacing: -.5px; }
.hero p { font-size: 18px; opacity: .88; margin-bottom: 36px; }
.hero-search-tabs {
  display: inline-flex; background: rgba(0,0,0,.2); border-radius: 10px;
  padding: 4px; margin-bottom: 12px; gap: 2px;
}
.search-tab {
  padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; color: rgba(255,255,255,.7); border: none; background: none;
  transition: all .2s;
}
.search-tab.active { background: white; color: var(--primary); box-shadow: var(--sh); }
.hero-search-box {
  max-width: 600px; margin: 0 auto; background: white; border-radius: var(--rlg);
  padding: 8px; box-shadow: var(--sh-lg); display: flex; gap: 8px;
}
.hero-search-box input, .hero-search-box select {
  flex: 1; padding: 11px 15px; border: 2px solid var(--gray-100);
  border-radius: var(--r); font-size: 15px; outline: none; color: var(--gray-800);
  transition: border-color .2s; background: white;
}
.hero-search-box input:focus, .hero-search-box select:focus { border-color: var(--primary); }
.hero-stats {
  display: flex; justify-content: center; gap: 36px; margin-top: 36px; flex-wrap: wrap;
}
.hero-stat-num { font-size: 26px; font-weight: 800; }
.hero-stat-label { font-size: 12px; opacity: .75; margin-top: 2px; }

/* ===================== CATEGORIAS ===================== */
.section { padding: 40px 0; }
.section-title { font-size: 22px; font-weight: 800; color: var(--gray-900); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.see-all { font-size: 14px; color: var(--primary); font-weight: 600; cursor: pointer; }
.see-all:hover { text-decoration: underline; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
.cat-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  background: white; border-radius: var(--rlg); padding: 22px 14px; text-align: center;
  cursor: pointer; transition: all .2s; border: 2px solid var(--gray-100);
  box-shadow: var(--sh);
}
.cat-grid-3 .cat-card { padding: 32px 20px; }
.cat-grid-3 .cat-icon { font-size: 52px; }
.cat-grid-3 .cat-name { font-size: 17px; }
.cat-grid-3 .cat-desc { font-size: 13px; margin-top: 6px; }
.cat-card:hover { border-color: var(--primary); box-shadow: var(--sh-md); transform: translateY(-3px); }
.cat-card.active { background: var(--primary); color: white; border-color: var(--primary); }
.cat-icon { font-size: 38px; margin-bottom: 10px; }
.cat-name { font-size: 14px; font-weight: 700; color: var(--gray-800); }
.cat-card.active .cat-name { color: white; }
.cat-card:hover:not(.active) .cat-name { color: var(--primary); }
.cat-desc { font-size: 11px; color: var(--gray-400); margin-top: 3px; }
.cat-card.active .cat-desc { color: rgba(255,255,255,.75); }
.cat-count { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 12px; margin-top: 6px; }
.cat-card.active .cat-count { background: rgba(255,255,255,.2); color: white; }

/* Subcats */
.subcats {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px;
}
.subcat-chip {
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
  background: white; color: var(--gray-600); border: 1.5px solid var(--gray-200);
  cursor: pointer; transition: all .15s;
}
.subcat-chip:hover, .subcat-chip.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ===================== AD CARDS ===================== */
.ads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.ad-card {
  background: white; border-radius: var(--rlg); overflow: hidden;
  box-shadow: var(--sh); border: 1.5px solid var(--gray-100);
  cursor: pointer; transition: all .2s;
}
.ad-card:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); border-color: var(--primary-mid); }
.ad-card-img {
  aspect-ratio: 4/3; background: var(--gray-100); position: relative; overflow: hidden;
}
.ad-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ad-card:hover .ad-card-img img { transform: scale(1.05); }
.ad-card-img-placeholder {
  width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
  display: flex; align-items: center; justify-content: center; font-size: 52px;
}
.ad-badge-wrap { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; }
.ad-badge {
  display: inline-block; padding: 3px 8px; border-radius: 6px;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
}
.badge-destaque { background: linear-gradient(135deg, #FF7A00, #ff9a3c); color: white; box-shadow: 0 2px 6px rgba(255,122,0,.4); }
.badge-premier { background: linear-gradient(135deg, #1F2937, #FF7A00); color: white; box-shadow: 0 2px 6px rgba(31,41,55,.45); letter-spacing: .3px; }
.badge-novo { background: var(--success); color: white; }
.badge-verificado { background: var(--success); color: white; }
.ad-fav {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px;
  background: white; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; cursor: pointer; box-shadow: var(--sh); border: none;
  font-size: 16px; transition: transform .2s;
}
.ad-fav:hover { transform: scale(1.15); }
.ad-body { padding: 14px; }
.ad-price { font-size: 21px; font-weight: 800; color: var(--primary); }
.ad-price.consulte { font-size: 15px; color: var(--success); font-weight: 700; }
.ad-title { font-size: 14px; font-weight: 600; color: var(--gray-800); margin: 4px 0 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.ad-tag {
  background: var(--gray-100); color: var(--gray-600); padding: 2px 8px;
  border-radius: 10px; font-size: 11px; font-weight: 500;
}
.ad-tag.pedigree { background: var(--warning-light); color: var(--warning); }
.ad-tag.vacinado { background: var(--success-light); color: var(--success); }
.ad-tag.verificado { background: var(--success-light); color: var(--success); }
.ad-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--gray-400); }
.ad-seller-mini { display: flex; align-items: center; gap: 5px; }
.seller-mini-avatar { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; }

/* ===================== PÁGINA DO ANÚNCIO ===================== */
.ad-page { padding: 24px 0 48px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-400); padding: 16px 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); cursor: pointer; }
.breadcrumb-sep { color: var(--gray-300); }

.ad-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }

.gallery-main { border-radius: var(--rlg); overflow: hidden; background: var(--gray-100); aspect-ratio: 4/3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { width: 76px; height: 60px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2.5px solid transparent; flex-shrink: 0; transition: border-color .2s; }
.thumb.active { border-color: var(--primary); }

.ad-info-box { background: white; border-radius: var(--rlg); padding: 24px; box-shadow: var(--sh); margin-top: 16px; }
.ad-main-price { font-size: 34px; font-weight: 900; color: var(--primary); }
.ad-main-title { font-size: 22px; font-weight: 800; color: var(--gray-900); margin: 6px 0 14px; line-height: 1.3; }
.ad-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ad-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--gray-100); color: var(--gray-700); padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 500; }
.ad-chip.green { background: var(--success-light); color: var(--success); }
.ad-chip.purple { background: var(--primary-light); color: var(--primary); }
.ad-chip.orange { background: var(--accent-light); color: var(--accent); }

.ad-attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.ad-attr { background: var(--gray-50); border-radius: var(--r); padding: 12px; border: 1px solid var(--gray-100); }
.ad-attr-label { font-size: 11px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.ad-attr-value { font-size: 15px; font-weight: 700; color: var(--gray-800); margin-top: 3px; }

.ad-desc-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--gray-800); }
.ad-desc { color: var(--gray-700); line-height: 1.8; font-size: 15px; }

.health-flags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.health-flag { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.health-flag.ok { background: var(--success-light); color: var(--success); }
.health-flag.no { background: var(--gray-100); color: var(--gray-400); }

/* Sidebar do anúncio */
.ad-sidebar { position: sticky; top: 76px; }
.sidebar-card { background: white; border-radius: var(--rlg); padding: 22px; box-shadow: var(--sh); margin-bottom: 14px; }

.seller-profile-mini { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.seller-avatar-lg { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #FF7A00, #ff9a3c); color: white; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; flex-shrink: 0; }
.seller-name-lg { font-size: 17px; font-weight: 700; color: var(--gray-900); }
.seller-meta { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.seller-stars { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--warning); margin-top: 3px; }
.seller-stars span { color: var(--gray-600); font-weight: 600; }

.trust-badges { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.trust-badge { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r); font-size: 13px; font-weight: 500; }
.trust-badge.verified { background: var(--success-light); color: var(--success); }
.trust-badge.verified-gold { background: #fef3c7; color: #92400e; }
.trust-badge.pending { background: var(--gray-100); color: var(--gray-400); }

.btn-whatsapp-lg { width: 100%; background: #25d366; color: white; border: none; border-radius: var(--r); padding: 15px; font-size: 16px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; transition: all .18s; }
.btn-whatsapp-lg:hover { background: #22c55e; box-shadow: 0 4px 14px rgba(37,211,102,.4); }
.btn-msg { width: 100%; background: var(--primary-light); color: var(--primary); border: 2px solid var(--primary); border-radius: var(--r); padding: 12px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all .18s; }
.btn-msg:hover { background: var(--primary); color: white; }

/* ===================== PERFIL DO VENDEDOR ===================== */
.profile-header {
  background: linear-gradient(135deg, #cc5f00 0%, #FF7A00 100%);
  padding: 40px 0 80px; color: white; text-align: center; position: relative;
}
.profile-avatar { width: 96px; height: 96px; border-radius: 50%; background: white; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 800; margin: 0 auto 14px; border: 4px solid rgba(255,255,255,.3); }
.profile-name { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.profile-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pbadge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.pbadge-verified { background: rgba(255,255,255,.2); color: white; border: 1px solid rgba(255,255,255,.3); }
.pbadge-gold { background: #fbbf24; color: #92400e; }
.profile-stats { display: flex; justify-content: center; gap: 32px; margin-top: 16px; flex-wrap: wrap; }
.profile-stat-num { font-size: 26px; font-weight: 800; }
.profile-stat-label { font-size: 12px; opacity: .75; }
.profile-body { max-width: 1200px; margin: -40px auto 0; padding: 0 16px 48px; position: relative; z-index: 1; }
.profile-info-card { background: white; border-radius: var(--rlg); padding: 24px; box-shadow: var(--sh-lg); margin-bottom: 24px; }
.profile-rating { display: flex; align-items: center; gap: 12px; }
.stars-lg { font-size: 22px; color: var(--warning); }
.rating-num { font-size: 28px; font-weight: 800; color: var(--gray-900); }
.rating-count { font-size: 14px; color: var(--gray-400); }

/* ===================== FORMS ===================== */
.form-page { padding: 32px 0 48px; }
.form-wrap { max-width: 720px; margin: 0 auto; }
.form-card { background: white; border-radius: var(--rlg); padding: 32px; box-shadow: var(--sh); margin-bottom: 16px; }
.form-section-title { font-size: 15px; font-weight: 700; color: var(--gray-700); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 5px; }
.form-label .req { color: var(--danger); }
.form-input {
  width: 100%; padding: 11px 14px; border: 2px solid var(--gray-200);
  border-radius: var(--r); font-size: 15px; color: var(--gray-800); outline: none;
  transition: border-color .2s, box-shadow .2s; background: white;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,122,0,.1); }
.form-input::placeholder { color: var(--gray-400); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-divider { border: none; border-top: 1px solid var(--gray-100); margin: 24px 0; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-item { display: flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.checkbox-item input { width: 16px; height: 16px; accent-color: var(--primary); }

/* Autocomplete */
.autocomplete-wrap { position: relative; }
.autocomplete-list {
  position: absolute; top: 100%; left: 0; right: 0; background: white;
  border: 2px solid var(--primary); border-top: none; border-radius: 0 0 var(--r) var(--r);
  max-height: 240px; overflow-y: auto; z-index: 100; box-shadow: var(--sh-md);
  display: none;
}
.autocomplete-list.open { display: block; }
.autocomplete-item { padding: 10px 14px; font-size: 14px; cursor: pointer; color: var(--gray-700); transition: background .1s; }
.autocomplete-item:hover, .autocomplete-item.focused { background: var(--primary-light); color: var(--primary); }

/* Upload */
.upload-zone { border: 2.5px dashed var(--gray-300); border-radius: var(--rlg); padding: 32px; text-align: center; cursor: pointer; transition: all .2s; background: var(--gray-50); }
.upload-zone:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-icon { font-size: 44px; margin-bottom: 8px; }
.upload-text { font-size: 15px; font-weight: 600; color: var(--gray-600); }
.upload-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }
.preview-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.preview-item { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; position: relative; background: var(--gray-100); }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-remove { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; background: rgba(0,0,0,.65); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; cursor: pointer; border: none; }
.preview-cover { position: absolute; bottom: 3px; left: 3px; background: var(--primary); color: white; font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 3px; }

/* Video upload */
.video-upload-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.video-item { display: flex; align-items: center; gap: 10px; background: var(--gray-50); border-radius: var(--r); padding: 10px 14px; border: 1px solid var(--gray-200); }
.video-icon { font-size: 24px; }
.video-name { flex: 1; font-size: 13px; color: var(--gray-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 18px; }

/* ===================== AUTH ===================== */
.auth-page { min-height: calc(100vh - 65px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { background: white; border-radius: var(--rxl); padding: 40px; width: 100%; max-width: 420px; box-shadow: var(--sh-lg); }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--gray-500); font-size: 14px; margin-bottom: 28px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--gray-500); }
.auth-footer a { color: var(--primary); font-weight: 600; cursor: pointer; }
.input-wrap { position: relative; }
.input-wrap .form-input { padding-right: 42px; }
.input-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--gray-400); font-size: 16px; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.auth-or-line { flex: 1; height: 1px; background: var(--gray-200); }
.auth-or-text { font-size: 13px; color: var(--gray-400); }

/* ===================== DASHBOARD ===================== */
.dash { padding: 32px 0 48px; }
.dash-title { font-size: 26px; font-weight: 800; color: var(--gray-900); }
.dash-sub { color: var(--gray-500); font-size: 14px; margin-top: 4px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
.stat-box { background: white; border-radius: var(--rlg); padding: 20px; box-shadow: var(--sh); border-top: 4px solid var(--primary); }
.stat-box.orange { border-top-color: var(--accent); }
.stat-box.green { border-top-color: var(--success); }
.stat-box.gray { border-top-color: var(--gray-400); }
.stat-num { font-size: 32px; font-weight: 800; color: var(--gray-900); }
.stat-label { font-size: 13px; color: var(--gray-500); margin-top: 2px; }

/* Plan limit bar */
.plan-bar { background: white; border-radius: var(--rlg); padding: 18px 22px; box-shadow: var(--sh); display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.plan-name { font-weight: 700; font-size: 15px; color: var(--gray-800); }
.plan-tag { display: inline-block; background: var(--primary); color: white; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-left: 6px; }
.plan-tag.free { background: var(--gray-400); }
.plan-tag.pro { background: var(--primary); }
.plan-tag.shop { background: var(--accent); }
.plan-tag.canil { background: #d97706; }
.limit-bar-wrap { flex: 1; min-width: 180px; }
.limit-bar-label { font-size: 12px; color: var(--gray-500); margin-bottom: 4px; }
.limit-bar-track { height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; }
.limit-bar-fill { height: 100%; border-radius: 3px; background: var(--primary); transition: width .5s; }
.limit-bar-fill.warning { background: var(--warning); }
.limit-bar-fill.danger { background: var(--danger); }

/* My ads list */
.my-ads-card { background: white; border-radius: var(--rlg); box-shadow: var(--sh); overflow: hidden; }
.my-ads-head { padding: 18px 22px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.my-ads-head-title { font-size: 17px; font-weight: 700; }
.my-ad-row { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--gray-100); transition: background .15s; flex-wrap: wrap; }
.my-ad-row:last-child { border-bottom: none; }
.my-ad-row:hover { background: var(--gray-50); }
.my-ad-boost-cta {
  width: 100%; margin: 2px 0 8px; padding: 9px 18px;
  background: var(--primary-light); color: var(--primary);
  border: 1.5px dashed var(--primary); border-radius: var(--r);
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all .18s; text-align: left;
}
.my-ad-boost-cta:hover { background: var(--primary); color: white; border-style: solid; }
.my-ad-boost-active {
  width: 100%; margin: 2px 0 8px; padding: 7px 14px;
  background: var(--primary-light); color: var(--primary);
  border-radius: var(--r); font-size: 12px; font-weight: 700;
}
.my-ad-thumb { width: 72px; height: 56px; border-radius: var(--r); overflow: hidden; background: var(--gray-100); flex-shrink: 0; }
.my-ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-ad-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.my-ad-info { flex: 1; min-width: 0; }
.my-ad-name { font-weight: 600; font-size: 14px; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.my-ad-name:hover { color: var(--primary); }
.my-ad-sub { font-size: 12px; color: var(--gray-400); margin-top: 3px; }
.my-ad-views { font-size: 12px; color: var(--gray-400); display: flex; align-items: center; gap: 3px; }
.my-ad-price { font-size: 16px; font-weight: 800; color: var(--primary); min-width: 90px; text-align: right; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.status-ativo { background: var(--success-light); color: var(--success); }
.status-pendente { background: var(--warning-light); color: var(--warning); }
.status-pausado { background: var(--gray-100); color: var(--gray-500); }
.status-rejeitado { background: var(--danger-light); color: var(--danger); }
.my-ad-actions { display: flex; gap: 5px; }
.act-btn { width: 30px; height: 30px; border-radius: var(--r); border: 1.5px solid var(--gray-200); background: white; color: var(--gray-500); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; transition: all .15s; }
.act-btn:hover { background: var(--gray-100); }
.act-btn.edit:hover { color: var(--primary); border-color: var(--primary); }
.act-btn.pause:hover { color: var(--warning); border-color: var(--warning); }
.act-btn.del:hover { color: var(--danger); border-color: var(--danger); }

/* ===================== PLANOS ===================== */
.plans-page { padding: 48px 0 64px; }
.plans-hero { text-align: center; margin-bottom: 48px; }
.plans-hero h1 { font-size: 34px; font-weight: 900; color: var(--gray-900); margin-bottom: 12px; }
.plans-hero p { font-size: 17px; color: var(--gray-500); }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; max-width: 1100px; margin: 0 auto; }
.plan-card { background: white; border-radius: var(--rxl); padding: 30px 24px; box-shadow: var(--sh); border: 2px solid var(--gray-100); position: relative; transition: all .2s; }
.plan-card:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); }
.plan-card.popular { border-color: var(--primary); }
.plan-popular-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 4px 16px; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.plan-icon { font-size: 36px; margin-bottom: 10px; }
.plan-name { font-size: 18px; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.plan-target { font-size: 13px; color: var(--gray-400); margin-bottom: 20px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.plan-price-val { font-size: 38px; font-weight: 900; color: var(--primary); }
.plan-price-per { font-size: 14px; color: var(--gray-400); }
.plan-price-free { font-size: 30px; font-weight: 900; color: var(--success); }
.plan-desc { font-size: 13px; color: var(--gray-500); margin-bottom: 22px; }
.plan-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 9px; }
.plan-feature { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--gray-700); }
.plan-feature .ck { color: var(--success); flex-shrink: 0; font-size: 16px; }
.plan-feature .xm { color: var(--gray-300); flex-shrink: 0; }

/* ===================== ADMIN ===================== */
.admin-wrap { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 65px); }
.admin-side { background: var(--gray-900); color: white; padding: 20px 0; }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 20px; font-size: 14px; cursor: pointer; color: var(--gray-400); transition: all .2s; border-left: 3px solid transparent; }
.admin-nav-item:hover { background: rgba(255,255,255,.05); color: white; }
.admin-nav-item.active { background: rgba(255,122,0,.2); color: white; border-left-color: var(--primary); }
.admin-content { background: var(--gray-50); padding: 32px; }
.admin-table-wrap { background: white; border-radius: var(--rlg); box-shadow: var(--sh); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-500); background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
td { padding: 13px 16px; font-size: 14px; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }

/* ===================== MODALS ===================== */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.open { opacity: 1; pointer-events: all; }
.modal { background: white; border-radius: var(--rxl); padding: 32px; max-width: 440px; width: 100%; box-shadow: var(--sh-lg); transform: scale(.95); transition: transform .2s; }
.overlay.open .modal { transform: scale(1); }
.modal-icon { font-size: 48px; margin-bottom: 12px; }
.modal-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.modal-text { color: var(--gray-600); font-size: 14px; margin-bottom: 24px; line-height: 1.6; }
.modal-actions { display: flex; gap: 10px; }

/* Plan upgrade modal */
.plan-upgrade-modal { max-width: 500px; text-align: center; }
.upgrade-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.upgrade-plan { border: 2px solid var(--gray-200); border-radius: var(--rlg); padding: 16px 12px; cursor: pointer; transition: all .2s; }
.upgrade-plan:hover, .upgrade-plan.selected { border-color: var(--primary); background: var(--primary-light); }
.upgrade-plan-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.upgrade-plan-price { font-size: 18px; font-weight: 800; color: var(--primary); }
.upgrade-plan-desc { font-size: 11px; color: var(--gray-400); margin-top: 3px; }

/* ===================== TOAST ===================== */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 600; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--gray-900); color: white; padding: 13px 18px; border-radius: var(--r); font-size: 14px; font-weight: 500; box-shadow: var(--sh-lg); display: flex; align-items: center; gap: 9px; min-width: 240px; max-width: 360px; animation: slideIn .25s ease; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }
@keyframes slideIn { from { transform: translateX(80px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===================== MISC ===================== */
.empty-state { text-align: center; padding: 64px 24px; }
.empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-title { font-size: 20px; font-weight: 700; color: var(--gray-600); margin-bottom: 8px; }
.empty-text { font-size: 14px; color: var(--gray-400); margin-bottom: 24px; }
.pagination { display: flex; justify-content: center; gap: 6px; padding: 32px 0; }
.page-btn { width: 38px; height: 38px; border-radius: var(--r); border: 1.5px solid var(--gray-200); background: white; color: var(--gray-600); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; font-weight: 600; }
.page-btn:hover { background: var(--gray-100); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.3); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== FOOTER ===================== */
.footer { background: var(--gray-900); color: var(--gray-400); padding: 48px 0 24px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; color: white; margin-bottom: 12px; }
.footer-desc { font-size: 14px; line-height: 1.6; color: var(--gray-500); }
.footer-col-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: white; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 14px; color: var(--gray-500); cursor: pointer; transition: color .15s; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 22px; display: flex; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: 10px; }
.alert { padding: 13px 16px; border-radius: var(--r); font-size: 14px; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.alert-info { background: var(--info-light); color: var(--info); border-left: 4px solid var(--info); }
.alert-warning { background: var(--warning-light); color: var(--warning); border-left: 4px solid var(--warning); }
.alert-success { background: var(--success-light); color: var(--success); border-left: 4px solid var(--success); }

/* ===================== MODAL PIX ===================== */

.pix-modal {
  background: white;
  border-radius: var(--rxl);
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--sh-lg);
  animation: pixSlideIn .3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes pixSlideIn {
  from { transform: scale(.9) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0);    opacity: 1; }
}

.pix-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--gray-100);
}
.pix-logo { font-size: 15px; font-weight: 800; color: var(--primary); }
.pix-close {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--gray-100); color: var(--gray-600); cursor: pointer;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.pix-close:hover { background: var(--danger); color: white; }

.pix-plan-box {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-mid));
  margin: 0;
}
.pix-plan-icon { font-size: 36px; }
.pix-plan-name { font-size: 14px; color: var(--primary); font-weight: 700; }
.pix-plan-price { font-size: 28px; font-weight: 900; color: var(--primary); line-height: 1.1; }
.pix-plan-price span { font-size: 14px; font-weight: 500; color: var(--gray-500); }

.pix-features {
  padding: 14px 22px; list-style: none;
  display: flex; flex-direction: column; gap: 6px;
}
.pix-features li { font-size: 13px; color: var(--gray-600); }

.pix-divider { height: 1px; background: var(--gray-100); margin: 0 22px; }

.pix-qr-section { padding: 20px 22px; text-align: center; }
.pix-qr-label { font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 16px; }
.pix-qr-wrap {
  width: 220px; height: 220px; margin: 0 auto;
  border: 3px solid var(--primary-mid);
  border-radius: var(--rlg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: white;
  box-shadow: 0 4px 16px rgba(255,122,0,.15);
}
.pix-qr-wrap img { display: block; }
.pix-qr-fallback {
  font-size: 14px; color: var(--gray-400); text-align: center; line-height: 2;
  font-size: 28px;
}
.pix-timer {
  margin-top: 12px; font-size: 13px; color: var(--warning);
  font-weight: 600; display: inline-flex; align-items: center; gap: 5px;
}

.pix-copy-section { padding: 0 22px 16px; }
.pix-copy-label { font-size: 13px; font-weight: 600; color: var(--gray-600); margin-bottom: 8px; }
.pix-copy-wrap { display: flex; gap: 8px; }
.pix-copy-input {
  flex: 1; padding: 9px 12px; border: 1.5px solid var(--gray-200);
  border-radius: var(--r); font-size: 11px; color: var(--gray-500);
  background: var(--gray-50); outline: none; font-family: monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pix-copy-btn {
  padding: 9px 16px; background: var(--primary); color: white;
  border: none; border-radius: var(--r); font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: all .18s; flex-shrink: 0;
}
.pix-copy-btn:hover { background: var(--primary-dark); }

.pix-info {
  margin: 0 22px 16px;
  padding: 12px; background: var(--gray-50); border-radius: var(--r);
  font-size: 12px; color: var(--gray-500); line-height: 1.7;
  border: 1px solid var(--gray-100);
}

.pix-actions {
  display: flex; gap: 10px; padding: 16px 22px 22px;
  border-top: 1px solid var(--gray-100);
}
.pix-actions .btn-ghost { flex-shrink: 0; }
.pix-actions .btn-primary { flex: 1; }

/* Aguardando */
.pix-waiting {
  padding: 60px 32px; text-align: center;
}
.pix-waiting-spinner {
  position: relative; width: 90px; height: 90px; margin: 0 auto 24px;
}
.pix-spinner-ring {
  width: 90px; height: 90px; border-radius: 50%;
  border: 4px solid var(--primary-mid);
  border-top-color: var(--primary);
  animation: spin .9s linear infinite;
  position: absolute; inset: 0;
}
.pix-spinner-icon {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 36px;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }

.pix-waiting-title { font-size: 22px; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }
.pix-waiting-sub { font-size: 14px; color: var(--gray-500); }
.pix-waiting-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.pix-waiting-dots span {
  width: 10px; height: 10px; border-radius: 50%; background: var(--primary-mid);
  animation: dotBounce 1.2s ease-in-out infinite;
}
.pix-waiting-dots span:nth-child(2) { animation-delay: .2s; }
.pix-waiting-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dotBounce {
  0%,80%,100% { transform: scale(.8); background: var(--primary-mid); }
  40% { transform: scale(1.2); background: var(--primary); }
}

/* Sucesso */
.pix-success { padding: 36px 28px; text-align: center; }
.pix-success-icon { margin-bottom: 16px; }
.pix-check-circle {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--success), #34d399);
  color: white; font-size: 36px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(5,150,105,.35);
  animation: successPop .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.pix-success-title { font-size: 24px; font-weight: 900; color: var(--gray-900); margin-bottom: 8px; }
.pix-success-msg { font-size: 15px; color: var(--gray-600); margin-bottom: 24px; line-height: 1.6; }

.pix-receipt {
  background: var(--gray-50); border-radius: var(--rlg);
  border: 1px solid var(--gray-200); padding: 16px;
  margin-bottom: 18px; text-align: left;
}
.pix-receipt-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--gray-100);
  font-size: 14px; color: var(--gray-600);
}
.pix-receipt-row:last-child { border-bottom: none; }
.pix-receipt-row strong { color: var(--gray-800); }

.pix-email-notice {
  background: var(--info-light); color: var(--info);
  padding: 12px 16px; border-radius: var(--r);
  font-size: 13px; margin-bottom: 16px; text-align: left;
}

.pix-premier-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #92400e; padding: 12px 20px; border-radius: var(--r);
  font-size: 15px; font-weight: 800; margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(245,158,11,.35);
  animation: shimmerBadge 2s ease infinite;
}
@keyframes shimmerBadge {
  0%,100% { box-shadow: 0 4px 12px rgba(245,158,11,.35); }
  50% { box-shadow: 0 4px 24px rgba(245,158,11,.6); }
}

@media (max-width: 520px) {
  .pix-modal { border-radius: var(--rlg) var(--rlg) 0 0; max-height: 96vh; }
  .overlay { align-items: flex-end; }
}

/* ===================== MODAL DESTAQUE ===================== */

.destaque-modal {
  background: white; border-radius: var(--rxl);
  width: 100%; max-width: 500px; max-height: 92vh; overflow-y: auto;
  box-shadow: var(--sh-lg);
  animation: pixSlideIn .3s cubic-bezier(.34,1.56,.64,1);
}
.upsell-modal { padding: 28px 28px 24px; }

.destaque-header {
  padding: 20px 24px 0;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.destaque-header-title { font-size: 20px; font-weight: 900; color: var(--gray-900); }
.destaque-header-sub { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

.destaque-plans {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px 24px;
}

.destaque-plan-option {
  border: 2px solid var(--gray-200); border-radius: var(--rlg);
  padding: 16px 18px; cursor: pointer; transition: all .2s;
  display: flex; align-items: center; gap: 14px; position: relative;
}
.destaque-plan-option:hover { border-color: var(--primary); background: var(--primary-light); }
.destaque-plan-option.selected { border-color: var(--primary); background: var(--primary-light); }
.destaque-plan-option.popular-opt { border-color: var(--accent); }
.destaque-plan-option.popular-opt.selected { border-color: var(--primary); }

.destaque-plan-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--gray-300); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.destaque-plan-option.selected .destaque-plan-radio {
  border-color: var(--primary); background: var(--primary);
}
.destaque-plan-option.selected .destaque-plan-radio::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: white;
}

.destaque-plan-body { flex: 1; }
.destaque-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.destaque-plan-name { font-weight: 800; font-size: 15px; color: var(--gray-900); }
.destaque-plan-days { font-size: 12px; color: var(--gray-500); font-weight: 500; margin-top: 2px; }
.destaque-plan-price { font-size: 20px; font-weight: 900; color: var(--primary); white-space: nowrap; }
.destaque-plan-features {
  margin-top: 8px; list-style: none;
  display: flex; flex-direction: column; gap: 3px;
}
.destaque-plan-features li { font-size: 12px; color: var(--gray-600); }

.destaque-popular-tag {
  position: absolute; top: -11px; left: 18px;
  background: var(--accent); color: white;
  font-size: 10px; font-weight: 800; padding: 3px 10px;
  border-radius: 10px; text-transform: uppercase; letter-spacing: .5px;
}

/* Preview do badge */
.destaque-preview {
  margin: 0 24px 20px; padding: 14px 18px;
  background: var(--gray-50); border-radius: var(--rlg);
  border: 1px solid var(--gray-100);
}
.destaque-preview-label { font-size: 12px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; margin-bottom: 10px; }
.destaque-preview-card {
  display: flex; align-items: center; gap: 12px;
  background: white; border-radius: var(--r); padding: 10px 14px;
  border: 1.5px solid var(--gray-200); box-shadow: var(--sh-sm);
}
.destaque-preview-img {
  width: 52px; height: 40px; border-radius: 6px;
  background: var(--gray-100); display: flex; align-items: center;
  justify-content: center; font-size: 22px; flex-shrink: 0;
}
.destaque-preview-info { flex: 1; }
.destaque-preview-title { font-size: 13px; font-weight: 600; color: var(--gray-800); }
.destaque-preview-price { font-size: 14px; font-weight: 800; color: var(--primary); }

.destaque-howto {
  margin: 0 24px 20px; padding: 14px 18px;
  background: var(--primary-light); border-radius: var(--r);
  font-size: 13px; color: var(--primary-dark); line-height: 1.7;
}
.destaque-howto ul { margin-top: 6px; padding-left: 16px; }
.destaque-howto li { margin-top: 3px; }

.destaque-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--gray-100);
  display: flex; gap: 10px; align-items: center;
}
.destaque-total { font-size: 13px; color: var(--gray-500); }
.destaque-total strong { font-size: 20px; color: var(--primary); display: block; }

/* Badge no card — ativo */
.ad-card .badge-destaque,
.ad-card .badge-premier {
  animation: badgeGlow 2.5s ease-in-out infinite;
}
@keyframes badgeGlow {
  0%,100% { opacity: 1; }
  50% { opacity: .8; }
}

/* Botão boost nos meus anúncios */
.act-btn.boost { color: var(--gray-400); }
.act-btn.boost:hover { color: var(--accent); border-color: var(--accent); background: #fff7ed; }
.act-btn.boost.active-yellow { color: #f59e0b; border-color: #f59e0b; background: #fef3c7; }
.act-btn.boost.active-purple { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }

@media (max-width: 520px) {
  .destaque-modal { border-radius: var(--rlg) var(--rlg) 0 0; }
  .destaque-plans { padding: 14px 16px; }
  .destaque-header { padding: 18px 16px 0; }
  .destaque-footer { padding: 14px 16px 20px; }
  .destaque-preview, .destaque-howto { margin: 0 16px 14px; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .ad-layout { grid-template-columns: 1fr; }
  .ad-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-side { display: none; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .navbar-search { display: none; }
  .menu-toggle { display: block; }
  .navbar-actions .nav-link { display: none; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid-3 { grid-template-columns: 1fr; }
  .ads-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; max-width: 400px; }
  .ad-attrs { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 28px 20px; }
  .form-card { padding: 22px 16px; }
}
@media (max-width: 480px) {
  .ads-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; }
  .upgrade-plans { grid-template-columns: 1fr; }
  .hero-search-box { flex-direction: column; }
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
