* {
  box-sizing: border-box;
}

.cc-ep-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.cc-ep-overlay.cc-ep-visible {
  display: flex;
}

.cc-ep-modal {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  margin: 0 auto;
  padding: 24px 26px 22px;
  border: 2px solid #64bfff;
  border-radius: 24px;
  background: linear-gradient(180deg, #eef8ff 0%, #e7f4ff 100%);
  box-shadow: 0 12px 35px rgba(13, 52, 90, 0.12);
  font-family: Inter, Arial, sans-serif;
}

.cc-ep-inner {
  position: relative;
  z-index: 2;
}

.cc-ep-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 2px solid #cce8ff;
  border-radius: 999px;
  background: #fff;
  color: #506076;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cc-ep-close:hover {
  background: #f7fbff;
}

.cc-ep-bg-shape {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.cc-ep-shape-1 {
  width: 520px;
  height: 520px;
  top: -235px;
  left: -130px;
  background: rgba(255, 255, 255, 0.42);
}

.cc-ep-shape-2 {
  width: 380px;
  height: 380px;
  top: -90px;
  left: 120px;
  background: rgba(255, 255, 255, 0.22);
}

.cc-ep-shape-3 {
  width: 490px;
  height: 490px;
  bottom: -255px;
  right: -120px;
  background: rgba(255, 255, 255, 0.24);
}

.cc-ep-shape-4 {
  width: 290px;
  height: 290px;
  bottom: -110px;
  left: 240px;
  background: rgba(255, 255, 255, 0.16);
}

.cc-ep-badge {
  display: inline-block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 2px auto 18px;
  padding: 8px 15px;
  border-radius: 999px;
  background: #ffffff;
  color: #1582d6;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(21, 130, 214, 0.1);
}

.cc-ep-title {
  margin: 0;
  text-align: center;
  font-size: 40px;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -1px;
  color: #18263d;
}

.cc-ep-subtitle {
  margin: 10px 0 14px;
  text-align: center;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #7f8da6;
}


.cc-ep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 6px;
}

.cc-ep-card {
  min-height: 132px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1.5px solid #84cdff;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.cc-ep-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(13, 132, 213, 0.12);
  border-color: #5ebcff;
}

.cc-ep-card h4 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.28;
  font-weight: 800;
  color: #1d2c40;
}

.cc-ep-card h4 span:last-child {
  display: inline-block;
}

.cc-ep-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #5f7086;
}

.cc-ep-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dff2ff;
  color: #1a8fe1;
  box-shadow: inset 0 0 0 6px #edf8ff;
  flex-shrink: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.cc-ep-card:hover .cc-ep-icon {
  transform: scale(1.06);
  box-shadow: inset 0 0 0 6px #edf8ff, 0 6px 14px rgba(26, 143, 225, 0.12);
}

.cc-ep-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.cc-ep-footer {
  margin-top: 12px;
}

.cc-ep-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.cc-ep-access-text {
  font-size: 16px;
  color: #415670;
}

.cc-ep-access-text strong {
  color: #1582d6;
}

.cc-ep-pill {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 8px;
  background: #ffffff;
  color: #1582d6;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(21, 130, 214, 0.08);
  white-space: nowrap;
}

.cc-ep-note {
  margin-bottom: 6px;
  font-size: 14px;
  color: #6b7b8f;
}

.cc-ep-progress-wrap {
  margin-bottom: 14px;
}

.cc-ep-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #d6e8f7;
  overflow: hidden;
}

.cc-ep-progress-fill {
  width: 72%;
  height: 100%;
  border-radius: 999px;
  background: #0f7fcf;
}

.cc-ep-progress-text {
  margin-top: 6px;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
  color: #1582d6;
}

.cc-ep-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 14px;
  margin-top: 8px;
}

.cc-ep-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cc-ep-btn-secondary {
  background: transparent;
  color: #1582d6;
  border: 2px solid #5ebcff;
}

.cc-ep-btn-secondary:hover {
  background: rgba(255,255,255,0.55);
}

.cc-ep-btn-primary {
  background: #0d84d5;
  color: #ffffff;
  border: 2px solid #0d84d5;
  box-shadow: 0 8px 18px rgba(13, 132, 213, 0.2);
}

.cc-ep-btn-primary:hover {
  background: #0a76c0;
  border-color: #0a76c0;
  color: #ffffff;
}

.cc-ep-dismiss {
  cursor: pointer;
}

body.cc-ep-no-scroll {
  overflow: hidden;
}

@media (max-width: 900px) {
  .cc-ep-overlay {
    padding: 12px;
  }

  .cc-ep-modal {
    max-height: calc(100vh - 24px);
    padding: 20px 16px 18px;
    border-radius: 20px;
  }

  .cc-ep-title {
    font-size: 32px;
  }

  .cc-ep-subtitle {
    font-size: 19px;
  }

  .cc-ep-grid {
    grid-template-columns: 1fr;
  }

  .cc-ep-footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .cc-ep-actions {
    grid-template-columns: 1fr;
  }
}
