:root {
  --yc-bg: #070707;
  --yc-surface: #0f172a;
  --yc-surface-2: #111827;
  --yc-primary: #2b7cff;
  --yc-primary-2: #00d4ff;
  --yc-text: #ffffff;
  --yc-muted: #b9c2d6;
  --yc-border: rgba(255, 255, 255, .12);
  --yc-danger: #ff5b7d;
  --yc-success: #35e68c;
  --yc-shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--yc-bg);
  color: var(--yc-text);
}

body.yc-page {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(43, 124, 255, .2), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(0, 212, 255, .12), transparent 30rem),
    var(--yc-bg);
  color: var(--yc-text);
}

a {
  color: inherit;
}

.yc-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 70px);
  border-bottom: 1px solid var(--yc-border);
  background: rgba(7, 7, 7, .86);
  backdrop-filter: blur(18px);
}

.yc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Poppins, Inter, sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.yc-brand img {
  display: block;
}

.yc-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.yc-badges span,
.yc-saving-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(53, 230, 140, .25);
  background: rgba(53, 230, 140, .08);
  color: #dfffee;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 700;
}

.yc-badges span::before,
.yc-features li::before {
  content: "";
  width: 7px;
  height: 12px;
  border-right: 2px solid var(--yc-success);
  border-bottom: 2px solid var(--yc-success);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.yc-shell {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .75fr);
  gap: clamp(22px, 4vw, 44px);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 6vw, 74px) 0;
}

.yc-summary {
  display: grid;
  gap: 18px;
}

.yc-card {
  border: 1px solid var(--yc-border);
  background: linear-gradient(145deg, rgba(15, 23, 42, .95), rgba(10, 15, 28, .92));
  box-shadow: var(--yc-shadow);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 30px);
}

.yc-product-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.yc-product-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--yc-primary), var(--yc-primary-2));
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 18px 34px rgba(43, 124, 255, .35);
}

.yc-kicker {
  margin: 0 0 8px;
  color: var(--yc-primary-2);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

h1,
h2 {
  margin: 0;
  font-family: Poppins, Inter, sans-serif;
  line-height: 1.12;
}

h1 {
  font-size: clamp(30px, 5vw, 58px);
  max-width: 760px;
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.yc-subtitle,
.yc-form-note,
.yc-progress-copy {
  color: var(--yc-muted);
  line-height: 1.7;
}

.yc-subtitle {
  max-width: 660px;
  margin: 14px 0 0;
  font-size: 17px;
}

.yc-row,
.yc-total-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: var(--yc-muted);
  font-size: 16px;
  padding: 11px 0;
}

.yc-row strong,
.yc-total-row strong {
  color: var(--yc-text);
}

.yc-old {
  text-decoration: line-through;
  opacity: .72;
}

.yc-save {
  color: var(--yc-success) !important;
}

.yc-divider {
  height: 1px;
  background: var(--yc-border);
  margin: 8px 0;
}

.yc-total-row {
  font-size: 20px;
}

.yc-total-row strong {
  font-size: 42px;
  font-family: Poppins, Inter, sans-serif;
}

.yc-saving-badge {
  margin: 12px 0 18px;
}

.yc-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
}

.yc-progress span {
  display: block;
  width: 78%;
  height: 100%;
  background: linear-gradient(90deg, var(--yc-primary), var(--yc-primary-2));
}

.yc-progress-copy {
  margin: 12px 0 0;
  font-size: 14px;
}

.yc-features h2 {
  font-size: 22px;
  margin-bottom: 18px;
}

.yc-features ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.yc-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #eef4ff;
  font-weight: 700;
}

.yc-form-card {
  align-self: start;
}

.yc-form-note {
  margin: 12px 0 24px;
}

form {
  display: grid;
  gap: 18px;
}

.yc-field {
  display: grid;
  gap: 8px;
}

.yc-field label {
  font-size: 14px;
  font-weight: 800;
}

.yc-field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--yc-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  color: var(--yc-text);
  font: 600 16px/1.4 Inter, Arial, sans-serif;
  padding: 15px 16px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.yc-field input:focus {
  border-color: rgba(43, 124, 255, .85);
  box-shadow: 0 0 0 4px rgba(43, 124, 255, .18);
  background: rgba(255, 255, 255, .08);
}

.yc-field input[aria-invalid="true"] {
  border-color: rgba(255, 91, 125, .9);
}

.yc-error {
  min-height: 18px;
  color: var(--yc-danger);
  font-weight: 700;
  font-size: 13px;
}

.yc-pay-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--yc-primary), #4a93ff);
  color: #fff;
  font: 800 18px/1 Inter, Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(43, 124, 255, .36);
  transition: transform .2s ease, opacity .2s ease;
}

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

.yc-pay-button[disabled] {
  opacity: .72;
  cursor: wait;
  transform: none;
}

.yc-spinner,
.yc-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 999px;
  animation: yc-spin .8s linear infinite;
}

.yc-pay-button.is-loading .yc-spinner {
  display: block;
  margin-left: 10px;
}

.yc-payment-state {
  min-height: 20px;
  color: var(--yc-muted);
  font-weight: 700;
}

.yc-payment-state.is-success {
  color: var(--yc-success);
}

.yc-payment-state.is-failed {
  color: var(--yc-danger);
}

.yc-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  align-content: center;
  gap: 18px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(8px);
}

.yc-overlay.is-visible {
  display: grid;
}

.yc-overlay .yc-loader {
  display: block;
  width: 46px;
  height: 46px;
  border-width: 4px;
}

.yc-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  max-width: min(92vw, 520px);
  padding: 14px 16px;
  border: 1px solid var(--yc-border);
  border-radius: 8px;
  background: #111827;
  color: #fff;
  box-shadow: var(--yc-shadow);
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.yc-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.yc-result-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 26px;
}

.yc-result-card {
  width: min(760px, 100%);
  text-align: center;
}

.yc-result-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: rgba(53, 230, 140, .12);
  color: var(--yc-success);
  font-size: 48px;
  animation: yc-pop .5s ease both;
}

.yc-result-icon.is-failed {
  background: rgba(255, 91, 125, .12);
  color: var(--yc-danger);
}

.yc-details {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  text-align: left;
}

.yc-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--yc-border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--yc-muted);
}

.yc-detail-row strong {
  color: #fff;
  text-align: right;
}

.yc-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.yc-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--yc-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.yc-action.is-secondary {
  background: rgba(255, 255, 255, .09);
  border: 1px solid var(--yc-border);
}

.yc-access-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.yc-download {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--yc-border);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, .045);
}

@keyframes yc-spin {
  to { transform: rotate(360deg); }
}

@keyframes yc-pop {
  from { opacity: 0; transform: scale(.76); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 860px) {
  .yc-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .yc-badges {
    justify-content: flex-start;
  }

  .yc-shell {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 640px);
  }

  .yc-product-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .yc-features ul {
    grid-template-columns: 1fr;
  }

  .yc-total-row strong {
    font-size: 34px;
  }

  .yc-detail-row,
  .yc-download {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
