.epcc-app {
  --epcc-accent: #14c8b0;
  --epcc-dark: #0f172a;
  --epcc-muted: #64748b;
  --epcc-surface: #f6f7fb;
  --epcc-results-surface: #ffffff;
  color: var(--epcc-dark);
  font-family: Inter, "Segoe UI", sans-serif;
}

.epcc-shell {
  background:
    radial-gradient(circle at top right, rgba(20, 200, 176, 0.12), transparent 22rem),
    radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.05), transparent 20rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 32px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  position: relative;
}

.epcc-orbit {
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
  position: absolute;
}

.epcc-orbit--one {
  background: rgba(20, 200, 176, 0.1);
  height: 300px;
  right: -80px;
  top: -90px;
  width: 300px;
}

.epcc-orbit--two {
  background: rgba(99, 102, 241, 0.08);
  bottom: -120px;
  height: 260px;
  left: -60px;
  width: 260px;
}

.epcc-panel {
  padding: 32px;
  position: relative;
  z-index: 1;
}

.epcc-hero {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  margin-bottom: 28px;
}

.epcc-kicker,
.epcc-card__eyebrow,
.epcc-glance__eyebrow {
  color: var(--epcc-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.epcc-title,
.epcc-section-title {
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin: 0;
}

.epcc-title {
  font-size: clamp(2.7rem, 4.6vw, 4.7rem);
  max-width: 14ch;
}

.epcc-intro {
  color: rgba(15, 23, 42, 0.78);
  font-size: 1.18rem;
  line-height: 1.5;
  margin: 18px 0 0;
  max-width: 60ch;
}

.epcc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.epcc-meta__item,
.epcc-glance,
.epcc-highlight {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.epcc-meta__item {
  min-width: 220px;
  padding: 14px 16px;
}

.epcc-meta__item span,
.epcc-glance__text,
.epcc-highlight span,
.epcc-summary__text {
  color: var(--epcc-muted);
}

.epcc-meta__item span,
.epcc-highlight span {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.epcc-meta__item strong,
.epcc-highlight strong {
  font-size: 1rem;
}

.epcc-hero__controls {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}

.epcc-switch {
  align-items: center;
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 24px;
  display: inline-flex;
  gap: 10px;
  padding: 8px;
}

.epcc-switch__button {
  appearance: none;
  background: transparent;
  border: none;
  border-radius: 18px;
  color: var(--epcc-dark);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  min-height: 54px;
  padding: 0 20px;
  transition: all 180ms ease;
}

.epcc-switch__button.is-active {
  background: var(--epcc-dark);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  color: #ffffff;
}

.epcc-glance {
  margin-left: auto;
  max-width: 340px;
  padding: 20px 22px;
  width: 100%;
}

.epcc-glance__eyebrow {
  color: var(--epcc-muted);
  margin-bottom: 10px;
}

.epcc-glance__value {
  display: block;
  font-size: clamp(2rem, 3vw, 3.15rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.epcc-glance__text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 10px 0 0;
}

.epcc-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
}

.epcc-card {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  padding: 26px;
}

.epcc-card__header,
.epcc-results-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.epcc-section-title {
  font-size: clamp(2rem, 3vw, 3.15rem);
}

.epcc-helper-pill,
.epcc-badge {
  background: rgba(20, 200, 176, 0.12);
  border: 1px solid rgba(20, 200, 176, 0.14);
  border-radius: 999px;
  color: #0b8e7c;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 14px;
  white-space: nowrap;
}

.epcc-form-block {
  margin-bottom: 22px;
}

.epcc-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.epcc-input-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 86px minmax(0, 1fr) 30px;
}

.epcc-input-row > * {
  align-self: center;
}

.epcc-currency,
.epcc-input {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 20px;
  box-sizing: border-box;
  height: 72px;
}

.epcc-currency {
  align-items: center;
  color: var(--epcc-dark);
  display: inline-flex;
  font-size: 1.6rem;
  font-weight: 700;
  justify-content: center;
}

.epcc-input {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: var(--epcc-dark);
  font-size: 1.45rem;
  font-weight: 700;
  padding: 0 20px;
  width: 100%;
}

.epcc-input:focus {
  border-color: rgba(20, 200, 176, 0.5);
  box-shadow: 0 0 0 4px rgba(20, 200, 176, 0.12);
  outline: none;
}

.epcc-presets {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.epcc-presets__label {
  color: var(--epcc-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.epcc-presets__buttons {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.epcc-preset {
  appearance: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  color: var(--epcc-dark);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  min-height: 46px;
  min-width: 0;
  padding: 0 14px;
  transition: all 180ms ease;
  width: 100%;
}

.epcc-preset.is-active,
.epcc-preset:hover {
  background: rgba(20, 200, 176, 0.12);
  border-color: rgba(20, 200, 176, 0.26);
}

.epcc-helper-copy {
  color: var(--epcc-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 16px 0 0;
}

.epcc-copy {
  color: rgba(15, 23, 42, 0.82);
  line-height: 1.65;
}

.epcc-copy p {
  margin: 0 0 1rem;
}

.epcc-highlights {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.epcc-highlight {
  padding: 16px 18px;
}

.epcc-highlight strong {
  display: block;
  font-size: 1.15rem;
}

.epcc-results-list {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  margin-top: 8px;
  padding-top: 8px;
}

.epcc-result-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 0;
}

.epcc-result-row + .epcc-result-row {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.epcc-result-row__label {
  align-items: center;
  color: rgba(15, 23, 42, 0.88);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 600;
}

.epcc-summary {
  background: linear-gradient(135deg, rgba(20, 200, 176, 0.14), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(20, 200, 176, 0.18);
  border-radius: 24px;
  margin-top: 18px;
  padding: 20px;
}

.epcc-summary__line {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.epcc-summary__line span {
  font-size: 1rem;
  font-weight: 700;
}

.epcc-summary__line strong {
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.epcc-summary__text {
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 12px 0 0;
}

.epcc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.epcc-button {
  appearance: none;
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  min-height: 54px;
  padding: 0 20px;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.epcc-button:hover {
  transform: translateY(-1px);
}

.epcc-button:disabled {
  cursor: default;
  opacity: 0.45;
  transform: none;
}

.epcc-button--ghost {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: var(--epcc-dark);
}

.epcc-button--secondary {
  background: linear-gradient(135deg, #14c8b0, #0ea5e9);
  border: none;
  box-shadow: 0 16px 34px rgba(20, 200, 176, 0.2);
  color: #ffffff;
}

.epcc-info {
  align-items: center;
  appearance: none;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 50%;
  color: var(--epcc-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  height: 30px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 30px;
}

.epcc-info--small {
  height: 24px;
  width: 24px;
}

.epcc-tooltip {
  background: rgba(15, 23, 42, 0.94);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
  color: #ffffff;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 300px;
  padding: 14px 16px;
  position: absolute;
  z-index: 20;
}

.epcc-is-empty .epcc-results-list {
  display: none;
}

@media (max-width: 1100px) {
  .epcc-hero,
  .epcc-grid {
    grid-template-columns: 1fr;
  }

  .epcc-hero__controls {
    align-items: flex-start;
  }

  .epcc-switch,
  .epcc-glance {
    align-self: stretch;
    margin-left: 0;
    max-width: none;
  }
}

@media (max-width: 720px) {
  .epcc-panel {
    padding: 18px;
  }

  .epcc-title {
    font-size: clamp(2.2rem, 9vw, 3rem);
    max-width: none;
  }

  .epcc-section-title {
    font-size: 1.85rem;
  }

  .epcc-card,
  .epcc-glance {
    border-radius: 20px;
    padding: 18px;
  }

  .epcc-switch {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .epcc-switch__button {
    width: 100%;
  }

  .epcc-intro {
    font-size: 1rem;
    line-height: 1.45;
    margin-top: 14px;
  }

  .epcc-meta {
    gap: 10px;
    margin-top: 18px;
  }

  .epcc-meta__item {
    min-width: 0;
    padding: 12px 14px;
    width: 100%;
  }

  .epcc-glance {
    padding: 16px 18px;
  }

  .epcc-glance__value {
    font-size: 2.2rem;
  }

  .epcc-card__header,
  .epcc-results-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 18px;
  }

  .epcc-helper-pill,
  .epcc-badge {
    padding: 8px 12px;
  }

  .epcc-highlights {
    grid-template-columns: 1fr;
  }

  .epcc-input-row {
    gap: 8px;
    grid-template-columns: 64px minmax(0, 1fr) 26px;
  }

  .epcc-currency,
  .epcc-input {
    border-radius: 16px;
    height: 60px;
  }

  .epcc-currency {
    font-size: 1.35rem;
  }

  .epcc-input {
    font-size: 1.2rem;
    padding: 0 14px;
  }

  .epcc-info {
    height: 26px;
    width: 26px;
  }

  .epcc-presets__buttons {
    grid-template-columns: 1fr;
  }

  .epcc-preset {
    min-height: 44px;
  }

  .epcc-helper-copy,
  .epcc-copy,
  .epcc-summary__text {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .epcc-result-row {
    gap: 6px;
    padding: 12px 0;
  }

  .epcc-result-row__label {
    font-size: 0.94rem;
  }

  .epcc-summary {
    border-radius: 18px;
    margin-top: 14px;
    padding: 16px;
  }

  .epcc-summary__line strong {
    font-size: 1.35rem;
  }

  .epcc-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .epcc-button {
    min-height: 52px;
    width: 100%;
  }

  .epcc-result-row,
  .epcc-summary__line {
    grid-template-columns: 1fr;
  }

  .epcc-summary__line {
    align-items: flex-start;
    display: grid;
  }

  .epcc-summary__line strong {
    display: block;
    margin-top: 4px;
  }
}

@media (max-width: 480px) {
  .epcc-shell {
    border-radius: 24px;
  }

  .epcc-panel {
    padding: 14px;
  }

  .epcc-title {
    font-size: 2rem;
    line-height: 1;
  }

  .epcc-kicker,
  .epcc-card__eyebrow,
  .epcc-glance__eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
  }

  .epcc-switch {
    grid-template-columns: 1fr;
    padding: 6px;
  }

  .epcc-switch__button {
    font-size: 0.88rem;
    min-height: 48px;
    padding: 0 14px;
  }

  .epcc-meta__item,
  .epcc-highlight,
  .epcc-summary,
  .epcc-glance,
  .epcc-card {
    border-radius: 16px;
  }

  .epcc-input-row {
    grid-template-columns: 56px minmax(0, 1fr) 24px;
  }

  .epcc-currency,
  .epcc-input {
    height: 56px;
  }

  .epcc-currency {
    font-size: 1.2rem;
  }

  .epcc-input {
    font-size: 1.05rem;
    padding: 0 12px;
  }

  .epcc-presets {
    align-items: stretch;
    flex-direction: column;
  }

  .epcc-presets__label {
    font-size: 0.88rem;
  }

  .epcc-preset {
    font-size: 0.9rem;
  }
}

@media print {
  .epcc-switch,
  .epcc-presets,
  .epcc-helper-pill,
  .epcc-badge,
  .epcc-button,
  .epcc-info,
  .epcc-tooltip {
    display: none !important;
  }

  .epcc-hero,
  .epcc-grid {
    grid-template-columns: 1fr;
  }

  .epcc-shell,
  .epcc-card,
  .epcc-glance,
  .epcc-highlight {
    box-shadow: none;
  }
}
