/* ============================================================
   Congo Marketplace - Design officiel
   Couleurs Congo : Vert #006633, Jaune #FFCC00, Bleu #003399
   ============================================================ */

:root {
  --congo-green: #006633;
  --congo-green-dark: #004d26;
  --congo-yellow: #FFCC00;
  --congo-yellow-dark: #e6b800;
  --congo-blue: #003399;
  --congo-blue-dark: #002266;
  --bg: #f5f7fa;
  --card-bg: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --danger: #dc2626;
  --success: #16a34a;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(135deg, var(--congo-green) 0%, var(--congo-green-dark) 100%);
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.site-header .logo .dot {
  color: var(--congo-yellow);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.site-header nav a {
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.site-header nav a:hover,
.site-header nav a.active {
  background: var(--congo-yellow);
  color: var(--congo-green);
  font-weight: 600;
}

/* ---------- Container ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card h2 {
  color: var(--congo-green);
  margin-top: 0;
  border-bottom: 3px solid var(--congo-yellow);
  padding-bottom: 10px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--congo-green);
  color: white;
}

.btn-primary:hover {
  background: var(--congo-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 102, 51, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--congo-green);
  border: 2px solid var(--congo-green);
}

.btn-secondary:hover {
  background: var(--congo-green);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table th {
  background: var(--congo-green);
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

table tr:hover {
  background: #f9fafb;
}

/* ---------- Formulaires ---------- */
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--congo-green);
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group {
  margin-bottom: 15px;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge.en_attente { background: #fef3c7; color: #92400e; }
.badge.en_transit { background: #dbeafe; color: #1e40af; }
.badge.livree { background: #d1fae5; color: #065f46; }
.badge.annulee { background: #f3f4f6; color: #374151; }

/* ---------- Prix ---------- */
.prix {
  color: var(--congo-green);
  font-weight: 800;
  font-size: 1.2rem;
}

.prix-devise {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ---------- Grilles ---------- */
.produits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.produit-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.produit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--congo-yellow);
}

.produit-card h3 {
  color: var(--congo-green);
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.produit-card .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex: 1;
}

/* ---------- Messages ---------- */
.message-success {
  background: #d1fae5;
  color: #065f46;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 10px 0;
  border-left: 4px solid var(--success);
}

.message-error {
  background: #fee2e2;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 10px 0;
  border-left: 4px solid var(--danger);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--congo-green);
  color: white;
  padding: 40px 20px 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  color: var(--congo-yellow);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin: 6px 0;
  font-size: 0.9rem;
}

.footer-col a {
  color: white;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--congo-yellow);
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-logo .dot {
  color: var(--congo-yellow);
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0.9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 30px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }
  .site-header nav {
    justify-content: center;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .produits-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Logo SVG ---------- */
.logo-svg {
  height: 50px;
  width: auto;
}

/* ---------- Badges de rôle ---------- */
.role-badge {
  background: var(--congo-yellow);
  color: var(--congo-green);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------- Cartes statistiques ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  border-top: 4px solid var(--congo-yellow);
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--congo-green);
  margin: 10px 0;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Séparateurs ---------- */
hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 30px 0;
}

/* ---------- Liens ---------- */
a {
  color: var(--congo-blue);
}

a:hover {
  color: var(--congo-green);
}

/* ---------- Badges livreurs / transitaires ---------- */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 8px;
}

.badge-vehicule {
  background: #FFCC00;
  color: #003399;
}

.badge-transport {
  background: #003399;
  color: #FFFFFF;
}

/* ============================================================
   FEAT2 : Footer pro, pages legales, FAQ, etapes, contact,
   bandeau securite, modal securite
   ============================================================ */

/* ---------- Footer pro ---------- */
.footer-brand { min-width: 240px; }
.footer-social {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transition: all 0.2s;
}
.social-link:hover {
  background: var(--congo-yellow);
  color: var(--congo-green);
  transform: translateY(-2px);
}
.footer-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 15px;
}
.footer-stats .stat-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}
.footer-stats .stat-item strong {
  display: block;
  font-size: 1.2rem;
  color: var(--congo-yellow);
}
.footer-stats .stat-item span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}
.footer-payment { margin-top: 8px; }
.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
}
.gimacpay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--congo-yellow);
  color: var(--congo-green);
  font-weight: 900;
  font-size: 0.8rem;
}
.payment-desc {
  font-size: 0.75rem;
  margin: 6px 0 0;
  opacity: 0.85;
}
.powered-by {
  font-size: 0.7rem;
  margin: 2px 0 0;
  opacity: 0.7;
}
.footer-newsletter {
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-align: center;
}
.footer-newsletter h4 {
  color: var(--congo-yellow);
  margin: 0 0 6px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-newsletter p {
  margin: 0 0 12px;
  font-size: 0.85rem;
  opacity: 0.9;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
}
.footer-legal {
  max-width: 1200px;
  margin: 20px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  font-size: 0.8rem;
}
.footer-legal a {
  color: white;
  text-decoration: none;
  opacity: 0.85;
}
.footer-legal a:hover {
  color: var(--congo-yellow);
  opacity: 1;
}
.footer-legal span { opacity: 0.5; }

/* ---------- Pages legales ---------- */
.legal-page h3 {
  margin-top: 2rem;
  color: var(--congo-green);
  font-size: 1.15rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
.legal-page h4 {
  margin-top: 1.25rem;
  color: var(--text);
  font-size: 1rem;
}
.legal-page p {
  line-height: 1.7;
  color: #374151;
  margin: 0.75rem 0;
}
.legal-page ol, .legal-page ul {
  line-height: 1.7;
  color: #374151;
}

/* ---------- Alertes securite ---------- */
.alerte-securite {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  background: linear-gradient(135deg, rgba(255, 204, 0, 0.12) 0%, rgba(255, 204, 0, 0.02) 100%);
  border: 2px solid var(--congo-yellow);
  align-items: flex-start;
}
.alerte-securite.alerte-danger {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.02) 100%);
  border-color: var(--danger);
}
.alerte-securite h3, .alerte-securite h4 { margin-top: 0; }

/* ---------- Listes danger / succes ---------- */
.liste-danger, .liste-succes {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}
.liste-danger li, .liste-succes li {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  line-height: 1.5;
}
.liste-danger li {
  background: rgba(220, 38, 38, 0.05);
  border-left: 3px solid var(--danger);
}
.liste-succes li {
  background: rgba(22, 163, 74, 0.05);
  border-left: 3px solid var(--success);
}

/* ---------- Avantages ---------- */
.avantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.avantage-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.2s;
}
.avantage-card:hover {
  border-color: var(--congo-yellow);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.avantage-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.avantage-card h4 {
  margin: 0.5rem 0;
  color: var(--congo-green);
}
.avantage-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq-categorie {
  margin: 2rem 0 1rem;
  color: var(--congo-green);
  font-size: 1.2rem;
  border-bottom: 2px solid var(--congo-yellow);
  padding-bottom: 0.5rem;
  display: inline-block;
}
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all 0.2s;
}
.faq-item[open] {
  border-color: var(--congo-yellow);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 3rem;
  transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--congo-green);
  font-weight: 700;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: #f9fafb; }
.faq-reponse {
  padding: 0 1.25rem 1rem;
  color: #374151;
  line-height: 1.6;
  font-size: 0.9rem;
}
.faq-reponse p { margin: 0; }

/* ---------- Etapes ---------- */
.etapes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.etape-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  transition: all 0.2s;
}
.etape-card:hover {
  border-color: var(--congo-yellow);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.etape-card h3 {
  margin: 0 0 0.75rem;
  color: var(--congo-green);
  font-size: 1.15rem;
}
.etape-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.etape-numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--congo-green), var(--congo-green-dark));
  color: white;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  align-items: flex-start;
}
.contact-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.contact-item p {
  margin: 0;
  color: var(--text-muted);
}
.contact-form-container h3 {
  margin: 0 0 1.25rem;
  color: var(--congo-green);
  font-size: 1.15rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

/* ---------- Bandeau securite ---------- */
.securite-banner {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 50;
}
.securite-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.securite-icon { font-size: 1.2rem; }
.securite-text { flex: 1; min-width: 200px; }
.securite-link {
  color: #0f172a;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}
.securite-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #0f172a;
  padding: 0 0.5rem;
  line-height: 1;
}
.securite-close:hover { opacity: 0.7; }

/* ---------- Modal securite ---------- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}
.modal-securite {
  max-width: 560px;
  width: 100%;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
}
.modal-header h3 { margin: 0; font-size: 1.15rem; }
.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #0f172a;
  line-height: 1;
}
.modal-body { padding: 1.5rem; }
.modal-alerte {
  background: rgba(220, 38, 38, 0.05);
  border-left: 4px solid var(--danger);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}
.modal-alerte p { margin: 0.4rem 0; font-size: 0.9rem; }
.modal-checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.5;
  font-size: 0.9rem;
}
.modal-checkbox input { margin-top: 0.25rem; flex-shrink: 0; width: auto; }
.modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid var(--border);
}
.modal-footer .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Responsive FEAT2 ---------- */
@media (max-width: 768px) {
  .footer-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .avantages-grid { grid-template-columns: 1fr; }
  .etapes-grid { grid-template-columns: 1fr; }
  .securite-banner-content { flex-direction: column; text-align: center; }
  .modal-footer { flex-direction: column-reverse; }
  .modal-footer .btn { width: 100%; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { min-width: 100%; }
  .alerte-securite { flex-direction: column; }
}


/* ============================================================
   Publicites dynamiques
   ============================================================ */
.ad-container {
  margin: 1rem auto;
  text-align: center;
  position: relative;
}

.ad-top {
  max-width: 728px;
  height: 90px;
  margin: 1rem auto;
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-sidebar {
  width: 100%;
  max-width: 300px;
  min-height: 250px;
  margin: 1rem auto;
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-in-content {
  max-width: 728px;
  height: 90px;
  margin: 2rem auto;
  background: #fef3c7;
  border: 2px dashed #f59e0b;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-footer {
  max-width: 728px;
  height: 90px;
  margin: 1rem auto;
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-empty {
  color: #94a3b8;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.ad-label {
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.ad-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

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

.ad-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

.ad-desc {
  font-size: 0.8rem;
  color: #64748b;
}

@media (max-width: 768px) {
  .ad-top, .ad-in-content, .ad-footer {
    max-width: 100%;
    height: auto;
    min-height: 70px;
  }
  .ad-sidebar {
    max-width: 100%;
  }
}
