/* ============================================
   Big Anúncios - Estilo Principal (OLX-like)
   ============================================ */

:root {
  --primary:    #3483fa;
  --primary-dark: #2968d9;
  --orange:     #ff6b35;
  --orange-dark:#e85d2f;
  --success:    #00a650;
  --warning:    #f5a623;
  --danger:     #e53935;
  --dark:       #1a1a2e;
  --gray-dark:  #333;
  --gray:       #666;
  --gray-light: #aaa;
  --gray-bg:    #f4f4f4;
  --white:      #fff;
  --border:     #e0e0e0;
  --shadow:     0 2px 8px rgba(0,0,0,.10);
  --shadow-hover: 0 6px 20px rgba(0,0,0,.15);
  --radius:     8px;
  --radius-sm:  4px;
  --font:       'Inter', 'Segoe UI', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--gray-bg);
  color: var(--gray-dark);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 780px; margin: 0 auto; padding: 0 16px; }

/* ── HEADER ── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-img { height: 38px; }
.logo-text {
  font-size: 22px; font-weight: 800; color: var(--orange);
  letter-spacing: -.5px;
}
.logo-text span { color: var(--primary); }

.header-search {
  flex: 1; display: flex; max-width: 680px;
  border: 2px solid var(--primary);
  border-radius: 100px; overflow: hidden;
  background: var(--white);
}
.header-search input {
  flex: 1; border: none; outline: none;
  padding: 9px 16px; font-size: 15px; background: transparent;
}
.header-search select {
  border: none; outline: none; border-left: 1px solid var(--border);
  padding: 9px 12px; background: var(--gray-bg); font-size: 14px; cursor: pointer;
}
.header-search button {
  background: var(--primary); color: var(--white);
  border: none; padding: 0 22px; cursor: pointer;
  font-size: 18px; transition: background .2s;
}
.header-search button:hover { background: var(--primary-dark); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-anunciar {
  background: var(--orange); color: var(--white) !important;
  padding: 9px 20px; border-radius: 100px;
  font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: background .2s, transform .1s;
}
.btn-anunciar:hover { background: var(--orange-dark); transform: scale(1.03); }

.header-user { position: relative; }
.header-user-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 100px;
  border: 1px solid var(--border); cursor: pointer;
  background: var(--white); font-size: 14px; transition: border-color .2s;
}
.header-user-btn:hover { border-color: var(--primary); }
.header-user-btn .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; overflow: hidden;
}
.header-user-btn .avatar img { width: 100%; height: 100%; object-fit: cover; }

.dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-hover);
  min-width: 200px; display: none; z-index: 200;
}
.dropdown.open { display: block; }
.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; color: var(--gray-dark); font-size: 14px;
  border-bottom: 1px solid var(--gray-bg); transition: background .15s;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--gray-bg); }
.dropdown a i { width: 16px; color: var(--gray-light); }

/* ── NAVBAR CATEGORIAS ── */
.cat-nav {
  background: var(--white); border-bottom: 1px solid var(--border);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.cat-nav-inner {
  display: flex; gap: 0; padding: 0;
  white-space: nowrap;
}
.cat-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 18px; font-size: 13.5px; color: var(--gray);
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
  font-weight: 500;
}
.cat-nav a:hover, .cat-nav a.active {
  color: var(--primary); border-bottom-color: var(--primary);
}
.cat-nav a i { font-size: 15px; }

/* ── MAIN LAYOUT ── */
main { flex: 1; }
.page-content { padding: 20px 0 40px; }

/* ── HERO / HOME ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a56db 100%);
  padding: 48px 0; text-align: center; color: white;
}
.hero h1 { font-size: 34px; font-weight: 800; margin-bottom: 8px; }
.hero p  { font-size: 17px; opacity: .9; margin-bottom: 28px; }
.hero-search {
  max-width: 700px; margin: 0 auto;
  display: flex; background: white; border-radius: 100px;
  overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.hero-search input {
  flex: 1; border: none; outline: none;
  padding: 16px 24px; font-size: 16px;
}
.hero-search button {
  background: var(--orange); color: white;
  border: none; padding: 0 32px; font-size: 16px; font-weight: 700;
  cursor: pointer; border-radius: 0 100px 100px 0;
  transition: background .2s;
}
.hero-search button:hover { background: var(--orange-dark); }

.hero-stats {
  display: flex; justify-content: center; gap: 40px; margin-top: 24px;
}
.hero-stat { text-align: center; }
.hero-stat strong { font-size: 26px; font-weight: 800; display: block; }
.hero-stat span { font-size: 13px; opacity: .8; }

/* ── SEÇÕES HOME ── */
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.section-title h2 { font-size: 20px; font-weight: 700; }
.section-title a  { font-size: 14px; color: var(--primary); }

/* ── CATEGORIAS GRID ── */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 40px;
}
.cat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 16px;
  text-align: center; transition: all .2s; cursor: pointer;
}
.cat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.cat-card i { font-size: 28px; color: var(--primary); margin-bottom: 10px; }
.cat-card h3 { font-size: 13px; font-weight: 600; color: var(--gray-dark); }
.cat-card small { font-size: 11px; color: var(--gray-light); }

/* ── CARDS DE ANÚNCIO ── */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.ad-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .2s; position: relative; cursor: pointer;
}
.ad-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: #ccc;
}
.ad-card-img {
  position: relative; padding-top: 70%;
  background: var(--gray-bg); overflow: hidden;
}
.ad-card-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .3s;
}
.ad-card:hover .ad-card-img img { transform: scale(1.05); }
.ad-card-img .no-img {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  color: var(--gray-light); font-size: 40px;
}

.badge-destaque {
  position: absolute; top: 8px; left: 8px;
  background: var(--orange); color: white;
  font-size: 11px; font-weight: 700; padding: 3px 8px;
  border-radius: 100px; text-transform: uppercase;
}
.badge-expirado {
  position: absolute; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 13px; font-weight: 700;
}

.btn-fav {
  position: absolute; top: 8px; right: 8px;
  background: rgba(255,255,255,.9); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; font-size: 16px;
  color: var(--gray-light);
}
.btn-fav:hover, .btn-fav.active { color: #e53935; }
.btn-fav.active { background: white; }

.ad-card-body { padding: 12px; }
.ad-card-price {
  font-size: 18px; font-weight: 800; color: var(--gray-dark);
  margin-bottom: 4px;
}
.ad-card-price.gratis { color: var(--success); }
.ad-card-title {
  font-size: 14px; color: var(--gray-dark);
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; margin-bottom: 6px;
}
.ad-card-location {
  font-size: 12px; color: var(--gray-light);
  display: flex; align-items: center; gap: 4px;
}
.ad-card-date { font-size: 11px; color: var(--gray-light); float: right; margin-top: 6px; }

/* ── LISTA (modo lista) ── */
.ads-list { display: flex; flex-direction: column; gap: 12px; }
.ad-list-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; overflow: hidden;
  transition: all .2s;
}
.ad-list-item:hover { box-shadow: var(--shadow-hover); border-color: #ccc; }
.ad-list-img { width: 180px; flex-shrink: 0; position: relative; }
.ad-list-img img { width: 100%; height: 100%; object-fit: cover; }
.ad-list-body { flex: 1; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.ad-list-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.ad-list-desc  { font-size: 14px; color: var(--gray); margin-bottom: 8px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ad-list-price { font-size: 20px; font-weight: 800; }
.ad-list-meta  { font-size: 12px; color: var(--gray-light); display: flex; gap: 12px; }

/* ── FILTROS ── */
.filters-bar {
  background: var(--white); padding: 16px;
  border-radius: var(--radius); border: 1px solid var(--border);
  margin-bottom: 20px;
}
.filters-bar form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label { font-size: 12px; font-weight: 600; color: var(--gray); }
.filter-group select,
.filter-group input {
  padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px;
  background: var(--white); outline: none; min-width: 140px;
}
.filter-group select:focus,
.filter-group input:focus { border-color: var(--primary); }

/* ── DETALHE DO ANÚNCIO ── */
.ad-detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.ad-gallery { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.ad-gallery-main { position: relative; padding-top: 65%; background: var(--gray-bg); }
.ad-gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ad-gallery-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: var(--gray-bg); }
.ad-gallery-thumbs img { width: 70px; height: 55px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; transition: border-color .2s; }
.ad-gallery-thumbs img.active, .ad-gallery-thumbs img:hover { border-color: var(--primary); }

.ad-info { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.ad-price-big { font-size: 32px; font-weight: 800; color: var(--gray-dark); margin-bottom: 4px; }
.ad-price-tipo { font-size: 13px; color: var(--gray-light); margin-bottom: 16px; }
.ad-title-big { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.ad-meta-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ad-meta-tag {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--gray); background: var(--gray-bg);
  padding: 5px 10px; border-radius: 100px;
}
.ad-desc { font-size: 15px; line-height: 1.7; color: var(--gray-dark); white-space: pre-line; }

.seller-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-top: 20px;
}
.seller-info { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.seller-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; overflow: hidden; }
.seller-avatar img { width: 100%; height: 100%; object-fit: cover; }
.seller-name { font-weight: 700; font-size: 15px; }
.seller-since { font-size: 12px; color: var(--gray-light); }
.seller-rating { display: flex; align-items: center; gap: 4px; color: var(--warning); font-size: 13px; margin-top: 4px; }

/* ── BOTÕES ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm); font-size: 15px;
  font-weight: 600; cursor: pointer; border: none; transition: all .2s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary   { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-orange    { background: var(--orange); color: white; }
.btn-orange:hover { background: var(--orange-dark); color: white; }
.btn-success   { background: var(--success); color: white; }
.btn-danger    { background: var(--danger); color: white; }
.btn-outline   { background: white; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-gray      { background: var(--gray-bg); color: var(--gray-dark); border: 1px solid var(--border); }
.btn-gray:hover { background: var(--border); }
.btn-lg        { padding: 14px 28px; font-size: 16px; border-radius: 8px; }
.btn-sm        { padding: 7px 14px; font-size: 13px; }
.btn-block     { width: 100%; }
.btn-whatsapp  { background: #25D366; color: white; }
.btn-whatsapp:hover { background: #1da851; color: white; }

/* ── FORMULÁRIOS ── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; outline: none; background: var(--white);
  transition: border-color .2s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(52,131,250,.1); }
.form-control.error { border-color: var(--danger); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12px; color: var(--gray-light); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── CARDS GENÉRICOS ── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-bg);
}
.card-header h3 { font-size: 16px; font-weight: 700; }

/* ── PLANOS ── */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.plan-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: 12px; padding: 28px 24px; text-align: center;
  position: relative; transition: all .2s;
}
.plan-card.popular { border-color: var(--orange); }
.plan-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: white;
  font-size: 12px; font-weight: 700; padding: 3px 14px; border-radius: 100px;
}
.plan-icon { font-size: 40px; margin-bottom: 12px; }
.plan-name  { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.plan-price { font-size: 38px; font-weight: 900; margin-bottom: 4px; }
.plan-price small { font-size: 16px; font-weight: 400; }
.plan-period { font-size: 13px; color: var(--gray-light); margin-bottom: 20px; }
.plan-features { text-align: left; margin-bottom: 24px; }
.plan-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--gray-bg);
}
.plan-features li:last-child { border: none; }
.plan-features li i { color: var(--success); width: 16px; }
.plan-features li i.no { color: var(--gray-light); }

/* ── PAINEL (DASHBOARD) ── */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }

.sidebar {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; position: sticky; top: 80px;
}
.sidebar-user { padding: 20px; border-bottom: 1px solid var(--gray-bg); text-align: center; }
.sidebar-user .avatar-lg { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: white; font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; overflow: hidden; }
.sidebar-user .avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.sidebar-user small { font-size: 12px; color: var(--gray-light); }

.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px; color: var(--gray-dark); font-size: 14px;
  border-left: 3px solid transparent; transition: all .15s;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(52,131,250,.06);
  color: var(--primary); border-left-color: var(--primary);
}
.sidebar-nav a i { width: 18px; color: var(--gray-light); font-size: 16px; }
.sidebar-nav a:hover i, .sidebar-nav a.active i { color: var(--primary); }
.sidebar-nav a .badge-count { margin-left: auto; background: var(--danger); color: white; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 100px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat-card .stat-label { font-size: 12px; color: var(--gray-light); font-weight: 600; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 30px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.stat-card .stat-icon { float: right; font-size: 22px; color: var(--primary); opacity: .5; margin-top: -30px; }

/* ── ADMIN ── */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 60px); }
.admin-sidebar { background: var(--dark); color: white; padding: 0; }
.admin-sidebar .brand { padding: 20px; font-size: 18px; font-weight: 800; color: var(--orange); border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px; color: rgba(255,255,255,.7);
  font-size: 14px; border-left: 3px solid transparent;
  transition: all .15s;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active {
  color: white; background: rgba(255,255,255,.08); border-left-color: var(--orange);
}
.admin-sidebar nav a i { width: 18px; }
.admin-sidebar .nav-section { padding: 12px 20px 4px; font-size: 11px; text-transform: uppercase; color: rgba(255,255,255,.4); letter-spacing: 1px; }

.admin-main { padding: 28px; background: var(--gray-bg); }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-header h1 { font-size: 22px; font-weight: 800; }

.table-wrapper { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--gray-bg); padding: 12px 16px; font-size: 12px; font-weight: 700; color: var(--gray); text-align: left; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--gray-bg); font-size: 14px; vertical-align: middle; }
.data-table tr:last-child td { border: none; }
.data-table tr:hover td { background: rgba(52,131,250,.03); }

/* ── BADGES ── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.badge-success { background: rgba(0,166,80,.12); color: var(--success); }
.badge-warning { background: rgba(245,166,35,.15); color: #c67f00; }
.badge-danger  { background: rgba(229,57,53,.12); color: var(--danger); }
.badge-primary { background: rgba(52,131,250,.12); color: var(--primary); }
.badge-secondary { background: var(--gray-bg); color: var(--gray-light); }
.badge-info    { background: rgba(0,188,212,.12); color: #0097a7; }

/* ── ALERTS / FLASH ── */
.alert { padding: 13px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.alert-success { background: rgba(0,166,80,.1); color: #006330; border-left: 4px solid var(--success); }
.alert-error   { background: rgba(229,57,53,.1); color: #a00; border-left: 4px solid var(--danger); }
.alert-warning { background: rgba(245,166,35,.12); color: #7a5500; border-left: 4px solid var(--warning); }
.alert-info    { background: rgba(52,131,250,.1); color: #0a3580; border-left: 4px solid var(--primary); }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.pagination a, .pagination span {
  padding: 8px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px;
  display: inline-block; transition: all .2s; background: var(--white);
}
.pagination a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.pagination .current { background: var(--primary); color: white; border-color: var(--primary); }
.pagination .disabled { color: var(--gray-light); pointer-events: none; }

/* ── AUTH ── */
.auth-page { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: var(--gray-bg); }
.auth-card { background: var(--white); border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,.1); padding: 40px; width: 100%; max-width: 460px; }
.auth-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-card p.sub { color: var(--gray); margin-bottom: 28px; font-size: 15px; }
.auth-card .logo-center { text-align: center; margin-bottom: 28px; }
.auth-card .logo-center .logo-text { font-size: 28px; }
.auth-divider { text-align: center; margin: 20px 0; color: var(--gray-light); font-size: 13px; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }

/* ── UPLOAD FOTOS ── */
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 40px 20px; text-align: center; cursor: pointer;
  transition: all .2s; background: var(--gray-bg);
}
.upload-area:hover, .upload-area.drag { border-color: var(--primary); background: rgba(52,131,250,.05); }
.upload-area i { font-size: 40px; color: var(--gray-light); margin-bottom: 12px; }
.upload-area p { font-size: 15px; color: var(--gray); margin-bottom: 6px; }
.upload-area small { font-size: 13px; color: var(--gray-light); }
.foto-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-top: 12px; }
.foto-preview-item { position: relative; border-radius: 6px; overflow: hidden; }
.foto-preview-item img { width: 100%; height: 80px; object-fit: cover; }
.foto-preview-item .remove-foto { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6); color: white; border: none; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; display: none; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: 12px; padding: 28px; max-width: 500px; width: 100%; position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--gray-light); }

/* ── FOOTER ── */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-col h4 { color: white; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col p, .footer-col a { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,.6); display: block; }
.footer-col a:hover { color: var(--orange); }
.footer-logo { font-size: 24px; font-weight: 800; color: var(--orange); margin-bottom: 12px; }
.footer-logo span { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: white; transition: background .2s; }
.footer-social a:hover { background: var(--orange); color: white; }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--gray-light); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-orange  { color: var(--orange); }
.mt-4 { margin-top: 16px; } .mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; } .mb-8 { margin-bottom: 32px; }
.d-flex { display: flex; } .gap-2 { gap: 8px; } .gap-4 { gap: 16px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }

/* ── COOKIES BANNER ── */
.cookies-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--dark); color: white; padding: 16px;
  z-index: 9999; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; font-size: 14px; transform: translateY(100%); transition: transform .4s;
}
.cookies-banner.show { transform: translateY(0); }
.cookies-banner .btn-sm { flex-shrink: 0; }

/* ── LOADING ── */
.spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 60px; color: var(--gray-light); margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--gray); margin-bottom: 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .ad-detail-layout { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header-search { display: none; }
  .hero h1 { font-size: 24px; }
  .ads-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ads-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .auth-card { padding: 28px 20px; }
}

/* ── ANIMAÇÕES ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn .3s ease; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-light); }
