/* --- Champ kilomètre moderne --- */
#perimeterInput {
  border: 1.5px solid #b3d1f7;
  border-radius: 10px;
  background: linear-gradient(180deg, #fafdff 80%, #e3f2fd 100%);
  box-shadow: 0 1px 4px #90caf933;
  padding: 7px 12px;
  font-size: 1.1em;
  width: 70px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  margin-right: 8px;
}
#perimeterInput:focus {
  border-color: #1976d2;
  box-shadow: 0 0 0 3px #90caf955;
  background: #e3f2fd;
}
#perimeterInput:hover {
  border-color: #64b5f6;
}

/* --- Slider moderne --- */
#perimeterSlider {
  accent-color: #23a55a;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, #b3e5fc 0%, #23a55a 100%);
  box-shadow: 0 1px 4px #90caf933;
  margin: 0 10px;
}

/* --- Bouton Ma position iOS --- */
#btnMyPosition {
  border-radius: 12px;
  border: 1.5px solid #b3d1f7;
  background: linear-gradient(180deg, #fafdff 80%, #e3f2fd 100%);
  color: #1976d2;
  font-weight: 600;
  box-shadow: 0 2px 8px #90caf933;
  padding: 8px 18px;
  transition:
    box-shadow 0.18s,
    background 0.18s,
    border-color 0.18s;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#btnMyPosition:hover,
#btnMyPosition:focus {
  background: #e3f2fd;
  border-color: #1976d2;
  box-shadow: 0 4px 16px #90caf955;
}
#btnMyPosition:active {
  background: #bbdefb;
  box-shadow: 0 1px 2px #90caf955;
}

/* --- Alignement harmonieux du bloc périmètre --- */
.perimeter-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
/* Marker draggable pour le centre du périmètre */
.perimeter-center-marker {
  filter: drop-shadow(0 2px 8px #1976d2aa);
  z-index: 1000;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  font-family:
    system-ui,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: #111;
}
.app {
  display: grid;
  grid-template-columns: 360px 1fr;
  height: 100vh;
}
.sidebar {
  padding: 16px;
  border-right: 1px solid #eee;
  overflow: auto;
  background: #fafafa;
}
.brand {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
}
.field input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
}
.results {
  margin-top: 6px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  max-height: 240px;
  overflow: auto;
  display: none;
}
.results .item {
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid #f3f3f3;
}
.results .item:hover {
  background: #f7f7f7;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.filters select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 6px;
  background: white;
}

.legend {
  margin-top: 12px;
}
.legend .grad {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    #000 0%,
    #d00 35%,
    #ffd200 65%,
    #23a55a 100%
  );
}
.legend .ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #666;
  margin-top: 4px;
}

#map {
  height: 100%;
  width: 100%;
}
.popover {
  position: absolute;
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  min-width: 220px;
}
.hidden {
  display: none;
}

/* Boutons */
.btn-primary,
.btn-secondary {
  width: 100%;
  padding: 10px 12px;
  margin: 4px 0;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
.btn-primary {
  background: #23a55a;
  color: white;
}
.btn-primary:hover {
  background: #1f7a1f;
}
.btn-secondary {
  background: #6c757d;
  color: white;
}
.btn-secondary:hover {
  background: #495057;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ensure hidden actually hides the modal (modal has its own display rule that can override .hidden) */
.modal.hidden {
  display: none;
}
.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #eee;
}
.modal-header h3 {
  margin: 0;
}
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
}
.modal-close:hover {
  color: #333;
}

/* Formulaire */
#clientForm {
  padding: 20px 24px 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group.full-width {
  grid-column: span 2;
}
.form-group label {
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group input,
.form-group select {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #23a55a;
  box-shadow: 0 0 0 2px rgba(35, 165, 90, 0.1);
}
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}
.modal-actions button {
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}
.modal-actions button[type="button"] {
  background: white;
  color: #666;
}
.modal-actions button[type="button"]:hover {
  background: #f8f9fa;
}

/* Clusters gris pour les établissements */
.marker-cluster-grey {
  background: rgba(150, 150, 150, 0.3);
  border: 2px solid rgba(100, 100, 100, 0.3);
}
.marker-cluster-grey div {
  width: 30px;
  height: 30px;
  margin-left: 5px;
  margin-top: 5px;
  text-align: center;
  border-radius: 15px;
  background: rgba(120, 120, 120, 0.4);
  color: white;
  font-weight: bold;
}
.marker-cluster-grey span {
  line-height: 30px;
}

/* Éléments de confiance pour le mode libre */
.confidence-item {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.confidence-item:hover {
  background: #f8f9fa;
  border-color: #dee2e6;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.confidence-item[data-score^="10"]:hover,
.confidence-item[data-score^="9"]:hover,
.confidence-item[data-score^="8"]:hover,
.confidence-item[data-score^="7"]:hover {
  border-color: #28a745;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.confidence-item[data-score^="6"]:hover,
.confidence-item[data-score^="5"]:hover,
.confidence-item[data-score^="4"]:hover {
  border-color: #ffc107;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

/* Mode géocodage mondial (quand data-nom est vide, c'est une adresse) */
.confidence-item[data-lat][data-lon]:not([data-nom]) {
  background: linear-gradient(45deg, #f0f7ff 0%, #ffffff 100%);
  border-left: 4px solid #007bff;
}

.confidence-item[data-lat][data-lon]:not([data-nom]):hover {
  border-color: #007bff;
  box-shadow: 0 2px 12px rgba(0, 123, 255, 0.3);
  transform: translateY(-2px);
}

/* Distinction visuelle pour les établissements (quand data-nom existe) */
.confidence-item[data-nom]:not([data-nom=""]) {
  border-left: 4px solid #28a745;
}

.confidence-item[data-nom]:not([data-nom=""]):hover {
  border-color: #28a745;
}

/* Tableau de prospection */
.prospection-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 16px;
}
.prospection-table thead {
  background-color: #f5f5f5;
  border-bottom: 2px solid #ddd;
}
.prospection-table th {
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  color: #333;
}
.prospection-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #eee;
}
.prospection-table tbody tr:hover {
  background-color: #f9f9f9;
}

/* Statut couleurs */
.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12px;
  text-align: center;
  min-width: 90px;
  display: inline-block;
}
.status-interested {
  background-color: #c8e6c9;
  color: #1b5e20;
  border: 1px solid #81c784;
}
.status-inprogress {
  background-color: #ffe0b2;
  color: #e65100;
  border: 1px solid #ffb74d;
}
.status-notinterested {
  background-color: #ffcdd2;
  color: #b71c1c;
  border: 1px solid #ef5350;
}
.status-new {
  background-color: #e1f5fe;
  color: #01579b;
  border: 1px solid #4fc3f7;
}

/* Contact mail checkbox */
.contact-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #23a55a;
}

/* Input pour appels */
.calls-input {
  width: 50px;
  padding: 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
}
.calls-input:focus {
  outline: none;
  border-color: #23a55a;
  box-shadow: 0 0 0 2px rgba(35, 165, 90, 0.1);
}

/* Dropdown pour statut */
.status-select {
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  background: white;
}
.status-select:focus {
  outline: none;
  border-color: #23a55a;
  box-shadow: 0 0 0 2px rgba(35, 165, 90, 0.1);
}

/* Lien clickable pour summary */
#perimeterSummary {
  transition: all 0.2s ease;
}
#perimeterSummary:hover {
  background-color: #bbdefb;
  border-color: #64b5f6;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* =============================================
   MODERN PERIMETER CONTROL
   ============================================= */

.perimeter-modern {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  margin-top: 8px;
}

.perimeter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.perimeter-input-group {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 4px;
  transition: all 0.2s ease;
}

.perimeter-input-group:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.perimeter-input-group input[type="number"] {
  width: 70px;
  padding: 10px 12px;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  border: none;
  outline: none;
  background: transparent;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.perimeter-input-group input[type="number"]::-webkit-outer-spin-button,
.perimeter-input-group input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.perimeter-input-group .unit {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  padding: 0 12px 0 4px;
}

.perimeter-row input[type="range"] {
  flex: 1;
  min-width: 100px;
  height: 8px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #e2e8f0, #3b82f6);
  border-radius: 4px;
  outline: none;
}

.perimeter-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
  transition: transform 0.2s ease;
}

.perimeter-row input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.perimeter-row input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

#btnMyPosition {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}

#btnMyPosition:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

#btnMyPosition:active {
  transform: translateY(0);
}

/* Selection mode toggle */
.selection-mode-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
}
.mode-radio {
  flex: 1;
  text-align: center;
  cursor: pointer;
}
.mode-radio input[type="radio"] {
  display: none;
}
.mode-label {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  transition: all 0.2s ease;
}
.mode-radio input[type="radio"]:checked + .mode-label {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}
.dept-instruction {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #f0fdf4;
  border-radius: 10px;
  border: 1px dashed #86efac;
  font-size: 13px;
  color: #166534;
  line-height: 1.4;
}
.dept-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.dept-list-wrap {
  margin-top: 10px;
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  padding: 8px;
}
.dept-list-title {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 8px;
}
.dept-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}
.dept-list-item {
  width: 100%;
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  padding: 7px 9px;
  font-size: 12px;
  cursor: pointer;
}
.dept-list-item:hover {
  background: #e0edff;
  border-color: #93c5fd;
}
.dept-list-item.active {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1e40af;
  font-weight: 700;
}
.dept-selected-layer {
  fill-opacity: 0.25 !important;
  fill: #3b82f6 !important;
  stroke: #1d4ed8 !important;
  stroke-width: 3 !important;
}
.dept-hover-placeholder {
  background: transparent;
  border: none;
}
.dept-hover-placeholder span {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Perimeter Summary Card */
.perimeter-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 12px;
  border: 1px solid #93c5fd;
  cursor: pointer;
  transition: all 0.2s ease;
}

.perimeter-summary:hover {
  background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.summary-icon {
  font-size: 24px;
}

.summary-content {
  flex: 1;
}

.summary-count {
  font-size: 15px;
  font-weight: 700;
  color: #1e40af;
}

.summary-count span {
  font-size: 18px;
  color: #1d4ed8;
}

.summary-hint {
  font-size: 12px;
  color: #3b82f6;
  margin-top: 2px;
}

.summary-arrow {
  font-size: 20px;
  color: #3b82f6;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.perimeter-summary:hover .summary-arrow {
  transform: translateX(4px);
}

/* =============================================
   MODERN TABLEAUX BUTTONS
   ============================================= */

.tableaux-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-tableau {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-tableau .btn-icon {
  font-size: 18px;
}

.btn-clients {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.btn-clients:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.btn-etablissements {
  background: linear-gradient(135deg, #64748b, #475569);
  color: white;
  box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

.btn-etablissements:hover {
  background: linear-gradient(135deg, #475569, #334155);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.4);
}

/* Old perimeter-control kept for compatibility */
.perimeter-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.perimeter-control input[type="range"] {
  flex: 1;
  height: 6px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #ddd 0%, #23a55a 100%);
  border-radius: 3px;
}
.perimeter-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #23a55a;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.perimeter-control input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #23a55a;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.perimeter-control span {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  min-width: 45px;
}

.type-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 8px;
}
.type-filters label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  margin: 0;
  margin-bottom: 0;
}
.type-filters label input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
}

/* Styles pour la modal de détail établissement */
.modal-body {
  padding: 30px;
}

.detail-section {
  margin-bottom: 25px;
}

.detail-section h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #667eea;
  font-weight: 600;
  margin-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
}

.detail-row {
  display: flex;
  gap: 30px;
  margin-bottom: 10px;
  align-items: flex-start;
}

.detail-row.full {
  flex-direction: column;
  gap: 5px;
}

.detail-label {
  font-size: 12px;
  font-weight: 600;
  color: #95a5a6;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  min-width: 120px;
}

.detail-value {
  font-size: 14px;
  color: #2c3e50;
  font-weight: 500;
}

.detail-value a {
  color: #667eea;
  text-decoration: none;
}

.detail-value a:hover {
  text-decoration: underline;
}

.detail-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #ecf0f1;
  color: #2c3e50;
}

.detail-badge.public {
  background: #d4edda;
  color: #155724;
}

.detail-badge.prive {
  background: #fff3cd;
  color: #856404;
}

.prospect-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.prospect-info strong {
  color: #667eea;
}

.edit-input {
  font-size: 14px;
  transition: all 0.3s ease;
}

.edit-input:focus {
  outline: none;
  border-color: #667eea !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-save {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-save:active {
  transform: translateY(0);
}

.score-bar {
  height: 30px;
  background: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #feca57);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  transition: width 0.3s;
}

/* Campaign Summary Styles */
.campaign-summary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.campaign-title {
  color: white;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
}

.campaign-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.campaign-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.campaign-number {
  font-size: 32px;
  font-weight: bold;
  color: #ffd700;
  line-height: 1;
}

.campaign-target {
  font-size: 24px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1;
}

.campaign-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.campaign-divider {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

.campaign-progress {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  height: 30px;
  overflow: hidden;
  margin-bottom: 15px;
}

.campaign-progress-bar {
  background: linear-gradient(90deg, #ffd700, #ffed4e);
  height: 100%;
  border-radius: 20px;
  transition: width 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #333;
  font-size: 12px;
  min-width: 40px;
}

.campaign-trophies {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.campaign-trophy {
  font-size: 24px;
  opacity: 0.3;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.campaign-trophy.unlocked {
  opacity: 1;
  filter: grayscale(0%);
  animation: trophyBounce 0.5s ease;
}

@keyframes trophyBounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}
