.ev-membership-gate {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 14px;
  align-items: center;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(33, 122, 141, 0.24);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 250, 0.94));
  box-shadow: 0 10px 30px rgba(21, 57, 65, 0.08);
  color: #232b2b;
}

.ev-membership-gate__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(33, 122, 141, 0.12);
  color: #217a8d;
}

.ev-membership-gate__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.ev-membership-gate__content {
  min-width: 0;
}

.ev-membership-gate__eyebrow {
  margin: 0 0 2px;
  color: #217a8d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ev-membership-gate h2 {
  margin: 0;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  line-height: 1.35;
}

.ev-membership-gate__content > p:last-child {
  margin: 6px 0 0;
  color: rgba(35, 43, 43, 0.78);
  font-size: 0.92rem;
  line-height: 1.65;
}

.ev-membership-gate__actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.ev-membership-gate__button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.ev-membership-gate__button:focus-visible {
  outline: 3px solid rgba(33, 122, 141, 0.25);
  outline-offset: 2px;
}

.ev-membership-gate__button--primary {
  background: #217a8d;
  color: #fff;
  box-shadow: 0 8px 18px rgba(33, 122, 141, 0.2);
}

.ev-membership-gate__button--secondary {
  border-color: rgba(33, 122, 141, 0.25);
  background: rgba(255, 255, 255, 0.72);
  color: #217a8d;
}

@media (hover: hover) {
  .ev-membership-gate__button:hover {
    transform: translateY(-1px);
  }
}

@media (min-width: 680px) {
  .ev-membership-gate {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    padding: 18px 20px;
  }

  .ev-membership-gate__actions {
    grid-column: auto;
    grid-template-columns: auto auto;
    align-items: center;
  }

  .ev-membership-gate__button {
    min-width: 132px;
  }
}

html[data-theme='dark'] .ev-membership-gate {
  border-color: rgba(94, 190, 208, 0.3);
  background: linear-gradient(145deg, rgba(29, 39, 42, 0.96), rgba(24, 52, 58, 0.96));
  color: #f3f7f7;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

html[data-theme='dark'] .ev-membership-gate__content > p:last-child {
  color: rgba(243, 247, 247, 0.76);
}

html[data-theme='dark'] .ev-membership-gate__eyebrow,
html[data-theme='dark'] .ev-membership-gate__icon {
  color: #8fd3df;
}

html[data-theme='dark'] .ev-membership-gate__icon {
  background: rgba(143, 211, 223, 0.12);
}

html[data-theme='dark'] .ev-membership-gate__button--secondary {
  border-color: rgba(143, 211, 223, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: #b6e4ec;
}

@media (prefers-reduced-motion: reduce) {
  .ev-membership-gate__button {
    transition: none;
  }
}
