/* ============================================================
   OMAL — Online Market Links
   Design System v2.0
   ============================================================ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --green-900: #071e15;
  --green-800: #0b3d2e;
  --green-700: #0e4f3b;
  --green-600: #145c45;
  --green-500: #1a7a5e;
  --green-400: #2c9e7b;
  --green-300: #54c4a0;
  --green-100: #d4f0e5;
  --green-50:  #f0faf6;
  --gold:      #d4a017;
  --gold-lt:   #f0c842;
  --cream:     #f8f9f4;
  --white:     #ffffff;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-400:  #9ca3af;
  --gray-600:  #4b5563;
  --gray-800:  #1f2937;
  --danger:    #dc2626;
  --warning:   #f59e0b;
  --info:      #3b82f6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: .2s ease;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--gray-800);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--green-600); transition: color var(--transition); }
a:hover { color: var(--green-400); text-decoration: none; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--green-800); }

/* ── Navbar ─────────────────────────────────────────────── */
.omal-navbar {
  background: var(--green-800);
  border-bottom: 3px solid var(--gold);
  padding: .75rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: var(--shadow-md);
}
.navbar-brand img { filter: brightness(0) invert(1); transition: transform var(--transition); }
.navbar-brand:hover img { transform: scale(1.05); }
.navbar-brand .brand-text {
  color: var(--white);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -.5px;
}
.navbar-brand .brand-sub {
  color: var(--gold-lt);
  font-size: .65rem;
  letter-spacing: 2px;
  display: block;
  margin-top: -4px;
  text-transform: uppercase;
}
.omal-navbar .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.omal-navbar .nav-link:hover,
.omal-navbar .nav-link.active {
  color: #fff !important;
  background: var(--green-700);
}
.omal-navbar .dropdown-menu {
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  animation: fadeIn .15s ease;
}
.omal-navbar .dropdown-item {
  border-radius: 6px;
  padding: .5rem .9rem;
  font-size: .9rem;
  color: var(--gray-700);
}
.omal-navbar .dropdown-item:hover { background: var(--green-50); color: var(--green-800); }
.omal-navbar .dropdown-divider { margin: .3rem 0; }
.notif-badge {
  position: absolute; top: 2px; right: -2px;
  font-size: .6rem; padding: 2px 5px;
  background: var(--danger); color: #fff;
  border-radius: 20px; border: 2px solid var(--green-800);
}
.btn-navbar-cta {
  background: var(--gold); color: var(--green-800) !important;
  font-weight: 700; border-radius: 30px;
  padding: .45rem 1.2rem; font-size: .85rem;
  border: none; transition: background var(--transition), transform var(--transition);
}
.btn-navbar-cta:hover { background: var(--gold-lt); transform: scale(1.03); }

/* ── Navbar: toggler icon must be visible on dark bg ────── */
.omal-navbar .navbar-toggler {
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: var(--radius-sm);
  padding: .35rem .55rem;
}
.omal-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(212,160,23,.35);
}
.omal-navbar .navbar-toggler-icon {
  /* Force a white hamburger icon regardless of navbar-dark support */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.4em;
  height: 1.4em;
}

/* ── Navbar responsive layout (below lg breakpoint) ─────── */
@media (max-width: 991.98px) {
  .omal-navbar { padding: .6rem 0; }
  .omal-navbar .container { flex-wrap: nowrap; }

  .navbar-collapse {
    background: var(--green-800);
    margin: .75rem -0.5rem -0.75rem;
    padding: .75rem 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.12);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .omal-navbar .navbar-nav { width: 100%; }
  .omal-navbar .nav-item { width: 100%; }
  .omal-navbar .nav-link { padding: .65rem .5rem; width: 100%; }
  .omal-navbar .navbar-nav.navbar-right-group {
    margin-top: .5rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .omal-navbar .lang-toggle { width: 100%; justify-content: center; margin-bottom: .25rem; }
  .omal-navbar .dropdown-menu { border: 1px solid rgba(0,0,0,.06); }
  .btn-navbar-cta { width: 100%; }
}

/* Ensure brand never gets squeezed off-screen next to the toggler */
@media (max-width: 400px) {
  .navbar-brand .brand-text { font-size: 1.15rem; }
}

/* ── Flash messages ─────────────────────────────────────── */
.alerts-container { padding: .75rem 0 0; }
.alert { border: none; border-radius: var(--radius-sm); font-size: .9rem; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-danger  { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-info    { background: #dbeafe; color: #1e40af; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-header {
  background: none;
  border-bottom: 1px solid var(--gray-100);
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: var(--green-800);
}
.card-body { padding: 1.5rem; }

/* ── Hero Section ───────────────────────────────────────── */
.omal-hero {
  background: linear-gradient(90deg, rgba(6,38,28,.88) 0%, rgba(6,38,28,.55) 55%, rgba(6,38,28,.2) 100%), url("../img/omal_banniere_monde_afrique.png") center/cover no-repeat, linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 60%, var(--green-500) 100%);
  position: relative; overflow: hidden; padding: 80px 0;
}
.omal-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.omal-hero .hero-logo { filter: brightness(0) invert(1); opacity: .95; }
.omal-hero h1 { color: #fff; font-size: 2.5rem; font-weight: 800; line-height: 1.2; }
.omal-hero .lead { color: rgba(255,255,255,.82); font-size: 1.1rem; }
.omal-hero .hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 30px;
  padding: .35rem 1rem; color: #fff; font-size: .85rem; margin-bottom: 1.5rem;
}
.omal-hero .hero-stats { margin-top: 2.5rem; }
.omal-hero .hero-stat { text-align: center; }
.omal-hero .hero-stat .number { font-size: 2.2rem; font-weight: 800; color: var(--gold-lt); }
.omal-hero .hero-stat .label  { color: rgba(255,255,255,.7); font-size: .85rem; }

/* ── Stat boxes ─────────────────────────────────────────── */
.stat-box {
  background: var(--white); border-radius: var(--radius);
  padding: 1.75rem; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-box .number { font-size: 2.2rem; font-weight: 800; color: var(--green-800); }
.stat-box .label  { color: var(--gray-600); font-size: .88rem; }
.stat-box-dark { background: var(--green-800); }
.stat-box-dark .number { color: var(--gold-lt); }
.stat-box-dark .label  { color: rgba(255,255,255,.7); }

/* ── Section titles ─────────────────────────────────────── */
.section-title { font-size: 1.7rem; font-weight: 800; color: var(--green-800); }
.section-sub { color: var(--gray-600); font-size: 1rem; }
.section-divider { width: 50px; height: 4px; background: var(--gold); border-radius: 2px; margin: .75rem 0 1.5rem; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  border-radius: 30px; font-weight: 600; font-size: .9rem;
  padding: .55rem 1.4rem; transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-omal {
  background: var(--green-800); color: #fff;
  border-color: var(--green-800);
}
.btn-omal:hover { background: var(--green-600); border-color: var(--green-600); color: #fff; transform: translateY(-1px); }
.btn-omal-outline {
  background: transparent; color: var(--green-800);
  border-color: var(--green-800);
}
.btn-omal-outline:hover { background: var(--green-800); color: #fff; }
.btn-gold { background: var(--gold); color: var(--green-900); border-color: var(--gold); font-weight: 700; }
.btn-gold:hover { background: var(--gold-lt); border-color: var(--gold-lt); color: var(--green-900); transform: translateY(-1px); }
.btn-sm { padding: .35rem .9rem; font-size: .82rem; }
.btn-lg { padding: .75rem 2rem; font-size: 1rem; }

/* ── Badges ─────────────────────────────────────────────── */
.badge { border-radius: 20px; font-weight: 600; font-size: .75rem; padding: .3rem .75rem; }
.badge-verified { background: #d1fae5; color: #065f46; }
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-open     { background: #dbeafe; color: #1e40af; }
.badge-awarded  { background: #ede9fe; color: #5b21b6; }
.badge-closed   { background: var(--gray-100); color: var(--gray-600); }
.badge-buyer    { background: #e0f2fe; color: #0369a1; }
.badge-supplier { background: #fce7f3; color: #9d174d; }
.badge-admin    { background: #fef3c7; color: #92400e; }

/* ── RFQ Cards ──────────────────────────────────────────── */
.rfq-card { border-radius: var(--radius); border: none; box-shadow: var(--shadow-sm); background: var(--white); overflow: hidden; transition: all var(--transition); }
.rfq-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rfq-card-header { background: var(--green-800); padding: .75rem 1.25rem; }
.rfq-card-body { padding: 1.25rem; }
.rfq-card-footer { padding: .75rem 1.25rem; background: var(--gray-50); border-top: 1px solid var(--gray-100); }

/* ── Supplier cards ─────────────────────────────────────── */
.supplier-card { border-radius: var(--radius); border: none; box-shadow: var(--shadow-sm); background: var(--white); overflow: hidden; transition: all var(--transition); }
.supplier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.supplier-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--green-100); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; color: var(--green-800); flex-shrink: 0; }

/* ── Stars ──────────────────────────────────────────────── */
.stars i { color: var(--gold); font-size: .9rem; }
.stars i.empty { color: var(--gray-200); }

/* ── Trust score bar ────────────────────────────────────── */
.trust-bar { height: 6px; border-radius: 3px; background: var(--gray-200); overflow: hidden; }
.trust-bar-fill { height: 100%; background: linear-gradient(90deg, var(--green-400), var(--gold)); border-radius: 3px; transition: width .6s ease; }

/* ── Tables ─────────────────────────────────────────────── */
.omal-table { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.omal-table th { background: var(--green-800); color: #fff; font-weight: 600; border: none; padding: .85rem 1rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }
.omal-table td { padding: .85rem 1rem; vertical-align: middle; border-color: var(--gray-100); font-size: .9rem; }
.omal-table tbody tr:hover { background: var(--green-50); }

/* ── Forms ──────────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: var(--radius-sm); border: 1.5px solid var(--gray-200);
  padding: .6rem .9rem; font-size: .92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(26,122,94,.12);
  outline: none;
}
.form-label { font-weight: 600; color: var(--gray-700); font-size: .88rem; margin-bottom: .35rem; }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ── Messaging ──────────────────────────────────────────── */
.msg-bubble { max-width: 72%; word-break: break-word; }
.msg-mine { background: var(--green-800); color: #fff; border-radius: 18px 18px 4px 18px; padding: .75rem 1.1rem; }
.msg-theirs { background: var(--white); border: 1.5px solid var(--gray-100); color: var(--gray-800); border-radius: 18px 18px 18px 4px; padding: .75rem 1.1rem; box-shadow: var(--shadow-sm); }
.msg-time { font-size: .72rem; opacity: .65; margin-top: .3rem; }
.chat-container { height: 440px; overflow-y: auto; padding: 1.25rem; background: var(--gray-50); border-radius: var(--radius) var(--radius) 0 0; scroll-behavior: smooth; }

/* ── Notification list ──────────────────────────────────── */
.notif-item { padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-100); transition: background var(--transition); display: block; text-decoration: none; color: inherit; }
.notif-item:hover { background: var(--green-50); text-decoration: none; color: inherit; }
.notif-item.unread { background: #f0fdf4; border-left: 3px solid var(--green-500); }
.notif-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }
.notif-offer      { background: #dbeafe; color: #1e40af; }
.notif-award      { background: #fef9c3; color: #854d0e; }
.notif-message    { background: #ede9fe; color: #5b21b6; }
.notif-verification { background: #d1fae5; color: #065f46; }
.notif-info       { background: var(--gray-100); color: var(--gray-600); }

/* ── Sidebar (dashboard) ────────────────────────────────── */
.sidebar { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 0; overflow: hidden; }
.sidebar-header { background: var(--green-800); padding: 1.25rem 1.5rem; }
.sidebar-nav a { display: flex; align-items: center; gap: .75rem; padding: .8rem 1.5rem; color: var(--gray-700); font-size: .9rem; font-weight: 500; border-left: 3px solid transparent; transition: all var(--transition); text-decoration: none; }
.sidebar-nav a:hover { color: var(--green-800); background: var(--green-50); border-left-color: var(--green-500); }
.sidebar-nav a.active { color: var(--green-800); background: var(--green-50); border-left-color: var(--green-800); font-weight: 700; }
.sidebar-nav a i { width: 18px; text-align: center; }
.sidebar-nav .divider { height: 1px; background: var(--gray-100); margin: .3rem 0; }

/* ── Footer ─────────────────────────────────────────────── */
.omal-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.7);
  padding: 60px 0 30px;
  margin-top: 80px;
}
.omal-footer h6 { color: var(--gold-lt); font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem; }
.omal-footer a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .9rem; display: block; margin-bottom: .5rem; transition: color var(--transition); }
.omal-footer a:hover { color: var(--gold-lt); }
.omal-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; margin-top: 2rem; font-size: .83rem; }
.omal-footer .footer-logo { filter: brightness(0) invert(1); opacity: .9; }
.omal-footer .social-links a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: .9rem; margin-right: .5rem; transition: background var(--transition); }
.omal-footer .social-links a:hover { background: var(--gold); color: var(--green-900); }

/* ── Page header ────────────────────────────────────────── */
.page-header { background: var(--white); border-bottom: 1px solid var(--gray-100); padding: 2rem 0; margin-bottom: 2rem; }
.page-header h1 { font-size: 1.8rem; margin: 0; }
.breadcrumb { font-size: .83rem; }
.breadcrumb-item.active { color: var(--gray-600); }

/* ── Verification status banner ─────────────────────────── */
.status-banner { border-radius: var(--radius); padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1rem; }
.status-banner-pending  { background: #fef9c3; border: 1.5px solid #fde68a; color: #78350f; }
.status-banner-verified { background: #d1fae5; border: 1.5px solid #6ee7b7; color: #065f46; }
.status-banner-rejected { background: #fee2e2; border: 1.5px solid #fca5a5; color: #991b1b; }
.status-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }

/* ── Feature cards (landing) ────────────────────────────── */
.feature-icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1rem; }
.feature-icon-green { background: var(--green-100); color: var(--green-700); }
.feature-icon-gold  { background: #fef3c7; color: #92400e; }

/* ── Step cards ─────────────────────────────────────────── */
.step-number { width: 48px; height: 48px; border-radius: 50%; background: var(--green-800); color: var(--gold-lt); font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-connector { width: 2px; background: var(--gray-200); flex: 1; margin: .5rem 0; min-height: 30px; }

/* ── Empty state ────────────────────────────────────────── */
.empty-state { padding: 4rem 2rem; text-align: center; }
.empty-state i { font-size: 3.5rem; color: var(--gray-200); margin-bottom: 1rem; }
.empty-state h5 { color: var(--gray-600); margin-bottom: .5rem; }
.empty-state p { color: var(--gray-400); font-size: .9rem; }

/* ── Search bar (hero) ──────────────────────────────────── */
.hero-search { background: rgba(255,255,255,.15); backdrop-filter: blur(10px); border: 1.5px solid rgba(255,255,255,.3); border-radius: 50px; padding: .5rem .5rem .5rem 1.5rem; display: flex; align-items: center; gap: .5rem; max-width: 560px; margin: 2rem auto 0; }
.hero-search input { background: transparent; border: none; outline: none; color: #fff; font-size: 1rem; flex: 1; }
.hero-search input::placeholder { color: rgba(255,255,255,.65); }
.hero-search button { border-radius: 30px; padding: .5rem 1.5rem; }

/* ── Offer card ─────────────────────────────────────────── */
.offer-card { border-radius: var(--radius-sm); border: 1.5px solid var(--gray-100); background: var(--white); padding: 1.25rem; transition: all var(--transition); }
.offer-card:hover { border-color: var(--green-300); box-shadow: var(--shadow-md); }
.offer-card.accepted { border-color: var(--green-400); background: var(--green-50); }

/* ── Utilities ──────────────────────────────────────────── */
.text-green   { color: var(--green-600) !important; }
.text-gold    { color: var(--gold) !important; }
.bg-green-dark { background: var(--green-800) !important; }
.bg-cream     { background: var(--cream) !important; }
.rounded-omal { border-radius: var(--radius) !important; }
.shadow-omal  { box-shadow: var(--shadow-md) !important; }
.fw-800 { font-weight: 800; }

@keyframes fadeIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .omal-hero h1 { font-size: 1.75rem; }
  .hero-search { border-radius: var(--radius); flex-wrap: wrap; padding: .6rem; }
  .hero-search input { width: 100%; flex: 1 1 100%; order: 1; padding: .4rem 0; }
  .hero-search button { order: 2; width: 100%; margin-top: .4rem; }
  .omal-footer { padding: 40px 0 20px; }
}
@media (max-width: 576px) {
  .omal-hero .d-flex.flex-wrap.gap-3 > .btn { width: 100%; text-align: center; }
  .hero-stats .hero-stat .number { font-size: 1.6rem; }
  .hero-stats .hero-stat .label { font-size: .72rem; }
}

/* ══════════════════════════════════════════════
   LANG TOGGLE — Bascule FR / EN
   ══════════════════════════════════════════════ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 30px;
  padding: 3px;
  gap: 0;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.lang-toggle a {
  position: relative;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 24px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .25s;
  white-space: nowrap;
}
.lang-toggle a:hover { color: #fff; }
.lang-toggle a.active {
  background: var(--gold);
  color: var(--green-900, #071e15);
  border-radius: 22px;
  box-shadow: 0 2px 8px rgba(212,160,23,.4);
}
.lang-toggle a.active:hover { color: var(--green-900, #071e15); }

/* Animation micro au clic */
.lang-toggle a.active {
  animation: langPop .2s ease;
}
@keyframes langPop {
  0%   { transform: scale(.92); }
  60%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ══════════════════════════════════════════════════════
   AD CAROUSEL — Modern partner advertisement carousel
   ══════════════════════════════════════════════════════ */
.ad-carousel-section {
  padding: 2.5rem 0;
  background: var(--cream, #f8f9f4);
}
.ad-carousel-wrap {
  position: relative;
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(0,0,0,.14));
  background: var(--green-900, #071e15);
}
.ad-carousel-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.ad-carousel-label .line {
  width: 28px; height: 2px;
  background: var(--gold, #d4a017);
}
.ad-carousel-label span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray-600, #4b5563);
}

.ad-track-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 6;
  min-height: 160px;
  max-height: 340px;
  overflow: hidden;
}
@media (max-width: 767px) {
  .ad-track-viewport { aspect-ratio: 4 / 3; max-height: 320px; }
}

.ad-track {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.65,0,.35,1);
  will-change: transform;
}
.ad-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  display: block;
  text-decoration: none;
  overflow: hidden;
  background: var(--green-800, #0b3d2e);
}
.ad-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 7s ease;
}
.ad-carousel-wrap:hover .ad-slide.is-active img {
  transform: scale(1.06);
}
.ad-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,30,21,.88) 0%, rgba(7,30,21,.35) 45%, rgba(7,30,21,.05) 75%);
  pointer-events: none;
}
.ad-slide-content {
  position: absolute;
  left: 0; bottom: 0; top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5rem;
  padding: 1.75rem clamp(1.25rem, 4vw, 3rem);
  max-width: 560px;
  z-index: 2;
}
.ad-sponsored-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(212,160,23,.18);
  border: 1px solid rgba(212,160,23,.5);
  color: var(--gold-lt, #f0c842);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ad-slide-content h4 {
  color: #fff;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0;
  line-height: 1.2;
}
.ad-slide-content p {
  color: rgba(255,255,255,.78);
  font-size: .88rem;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ad-slide-content .ad-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: .4rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold-lt, #f0c842);
}
.ad-sponsor-name {
  font-size: .74rem;
  color: rgba(255,255,255,.55);
  margin-top: .15rem;
}

/* Nav arrows */
.ad-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background .2s, transform .2s;
  opacity: 0;
}
.ad-carousel-wrap:hover .ad-nav { opacity: 1; }
.ad-nav:hover { background: var(--gold, #d4a017); color: var(--green-900, #071e15); }
.ad-prev { left: 16px; }
.ad-next { right: 16px; }
@media (max-width: 600px) {
  .ad-nav { opacity: .55; width: 34px; height: 34px; font-size: 1.1rem; }
}

/* Dots */
.ad-dots {
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 5;
}
.ad-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all .25s;
}
.ad-dot.is-active {
  width: 22px;
  border-radius: 5px;
  background: var(--gold, #d4a017);
}

/* Progress bar (autoplay indicator) */
.ad-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: var(--gold, #d4a017);
  width: 0%;
  z-index: 5;
  transition: width linear;
}

/* ── Admin ads table thumbnails ─────────────────────── */
.ad-thumb {
  width: 88px; height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--gray-200, #e5e7eb);
}
.ad-status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
