.myev-incentives {
  --myev-green: #0b6b33;
  --myev-green-dark: #075427;
  --myev-border: #e3e7e4;
  --myev-border-dark: #cfd7d2;
  --myev-text: #181818;
  --myev-muted: #666f68;
  --myev-surface: #ffffff;
  --myev-surface-soft: #f6f8f7;
  --myev-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
  padding: 8px 0 18px;
  color: var(--myev-text);
  scroll-margin-top: 120px;
}

.myev-incentives *,
.myev-incentives *::before,
.myev-incentives *::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

.myev-incentives__filters,
.myev-incentives__card,
.myev-incentives__message {
  background: var(--myev-surface);
  border: 1px solid var(--myev-border);
  box-shadow: var(--myev-shadow);
}

.myev-incentives__filters {
  padding: 26px;
  margin: 0 0 18px;
}

.myev-incentives__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.myev-incentives label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--myev-text);
}

.myev-incentives input[type="text"],
.myev-incentives select {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid var(--myev-border-dark);
  background: #fff;
  color: var(--myev-text);
  box-shadow: none;
  outline: none;
}

.myev-incentives input[type="text"]:focus,
.myev-incentives select:focus {
  border-color: var(--myev-green);
  box-shadow: none;
}

.myev-incentives__options {
  margin-top: 14px;
}

.myev-incentives__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 0;
  color: var(--myev-text);
}

.myev-incentives__checkbox input[type="checkbox"] {
  margin: 0;
}

.myev-incentives__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.myev-incentives__button,
.myev-incentives__reset,
.myev-incentives__source,
.myev-incentives__page-link {
  text-decoration: none !important;
}



/* ── Meta bar ── */
.myev-incentives__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--myev-muted);
  font-size: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.myev-incentives__cache-age {
  font-size: 12px;
  color: var(--myev-muted);
  opacity: 0.75;
}

/* ── Active filter pills ── */
.myev-incentives__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.myev-incentives__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ebf5ee;
  color: var(--myev-green);
  border: 1px solid #c2dfc9;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.myev-incentives__pill:hover {
  background: #d4ecdb;
  color: var(--myev-green-dark);
}

.myev-incentives__pill span {
  font-size: 14px;
  line-height: 1;
}

/* ── Spinner ── */
/* Hidden by default — shown via JS by adding .is-active */
.myev-incentives__spinner {
  display: none;
  justify-content: center;
  padding: 40px 0;
}

.myev-incentives__spinner.is-active {
  display: flex;
}

.myev-incentives__spinner-ring {
  display: inline-block;
  width: 36px;
  height: 36px;
  border: 3px solid var(--myev-border);
  border-top-color: var(--myev-green);
  border-radius: 50% !important;
  animation: myev-spin 0.7s linear infinite;
}

@keyframes myev-spin {
  to { transform: rotate(360deg); }
}

/* ── Cards ── */
.myev-incentives__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.myev-incentives__card {
  padding: 22px;
  transition: opacity 0.2s ease;
}

.myev-incentives__card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.myev-incentives__badge {
  display: inline-block;
  background: #ebf5ee;
  color: var(--myev-green);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 10px;
}

.myev-incentives__ev-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fff8e1;
  color: #8a6000;
  border: 1px solid #f0d080;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 9px;
}

.myev-incentives__card h3 {
  font-size: 24px;
  line-height: 1.22;
  margin: 0 0 10px;
  color: var(--myev-text);
}

.myev-incentives__card-meta,
.myev-incentives__tech {
  color: var(--myev-muted);
  font-size: 13px;
  margin-bottom: 10px;
}

/* Status color badges */
.myev-status {
  display: inline-block;
  font-weight: 600;
  font-size: 12px;
  padding: 2px 7px;
}

.myev-status--active {
  background: #ebf5ee;
  color: #0b6b33;
}

.myev-status--expired {
  background: #fdecea;
  color: #8a1f1f;
}

.myev-status--other {
  background: #f0f0f0;
  color: #555;
}

.myev-incentives__card p {
  margin-top: 0;
}

/* ── Read more / less ── */
.myev-incentives__excerpt {
  margin-bottom: 12px;
}

.myev-incentives__read-more {
  background: none;
  border: none;
  padding: 0;
  color: var(--myev-green);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  display: inline-block;
  margin-top: 4px;
}

.myev-incentives__read-more:hover {
  color: var(--myev-green-dark);
}

/* ── Extra references ── */
.myev-incentives__refs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.myev-incentives__more-refs summary {
  font-size: 13px;
  color: var(--myev-green);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.myev-incentives__more-refs ul {
  list-style: disc;
  margin: 8px 0 0 18px;
  padding: 0;
}

.myev-incentives__more-refs ul li {
  font-size: 13px;
  margin-bottom: 4px;
}

.myev-incentives__more-refs ul a {
  color: var(--myev-green);
  word-break: break-word;
}

/* ── Message ── */
.myev-incentives__message {
  padding: 22px;
}

.myev-incentives__message--error {
  border-color: #efcaca;
  background: #fff8f8;
  color: #8a1f1f;
}

/* ── Pagination ── */
.myev-incentives__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.myev-incentives__page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--myev-border);
  background: var(--myev-surface);
  color: var(--myev-text);
  box-shadow: none;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.myev-incentives__page-link:hover {
  background: var(--myev-surface-soft);
  border-color: var(--myev-border-dark);
  color: var(--myev-text);
}

.myev-incentives__page-link.is-active {
  background: var(--myev-green);
  border-color: var(--myev-green);
  color: #fff;
  box-shadow: none;
}

.myev-incentives__page-link--ghost {
  background: #fafbfa;
}

.myev-incentives__page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 44px;
  color: var(--myev-muted);
}



@media (max-width: 900px) {
  .myev-incentives__grid,
  .myev-incentives__cards {
    grid-template-columns: 1fr;
  }

  .myev-incentives__pagination {
    justify-content: flex-start;
  }

  .myev-incentives__page-link {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
  }

  .myev-incentives__page-dots {
    height: 40px;
  }
}
