:root {
  --credits-bg: #f6f8fc;
  --credits-card: rgba(255, 255, 255, 0.94);
  --credits-card-strong: #ffffff;
  --credits-ink: #07111f;
  --credits-muted: #53627a;
  --credits-line: #dce4f0;
  --credits-navy: #0b1730;
  --credits-blue: #2468d8;
  --credits-blue-soft: #eef5ff;
  --credits-green: #167349;
  --credits-red: #a13a2b;
  --credits-shadow: 0 22px 55px rgba(21, 35, 63, 0.1);
  --credits-radius: 22px;
  --credits-display: Manrope, "Segoe UI", sans-serif;
  --credits-body: Manrope, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--credits-body);
  color: var(--credits-ink);
  background:
    radial-gradient(circle at 84% 4%, rgba(36, 104, 216, 0.11), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--credits-bg) 48%, #eef2f8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(36, 104, 216, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 104, 216, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.credits-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 20px;
}

.credits-header,
.credits-main {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.credits-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--credits-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(21, 35, 63, 0.07);
  backdrop-filter: blur(18px);
}

.credits-brand,
.credits-nav,
.credits-return,
.credits-trust-row,
.credits-account-chip {
  display: inline-flex;
  align-items: center;
}

.credits-brand {
  gap: 12px;
  min-width: 0;
}

.credits-brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.credits-brand-mark,
.credits-return-icon,
.credits-balance-icon,
.credits-pack-icon {
  stroke: var(--credits-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.credits-brand-name,
.credits-brand-tagline {
  display: block;
}

.credits-brand-name {
  font-family: var(--credits-display);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.credits-brand-tagline {
  margin-top: 3px;
  color: var(--credits-muted);
  font-size: 0.78rem;
}

.credits-nav {
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--credits-line);
  border-radius: 999px;
  background: #f8fafc;
}

.credits-nav a,
.credits-return {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--credits-muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.credits-nav a:hover,
.credits-nav a:focus-visible,
.credits-return:hover,
.credits-return:focus-visible {
  background: rgba(23, 35, 59, 0.08);
  color: var(--credits-navy);
}

.credits-return {
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--credits-line);
  background: var(--credits-card-strong);
  color: var(--credits-navy);
}

.credits-return-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.credits-main {
  display: grid;
  gap: 22px;
  padding-block: 28px 42px;
}

.credits-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  gap: 20px;
  align-items: stretch;
}

.credits-hero-copy,
.credits-balance-card,
.credits-panel,
.credits-status {
  border: 1px solid var(--credits-line);
  border-radius: var(--credits-radius);
  background: var(--credits-card);
  box-shadow: var(--credits-shadow);
  backdrop-filter: blur(12px);
}

.credits-hero-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4.2vw, 52px);
}

.credits-hero-copy::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -90px;
  top: -96px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(36, 104, 216, 0.16), transparent 62%),
    radial-gradient(circle, rgba(106, 162, 255, 0.12), transparent 68%);
}

.credits-kicker {
  margin: 0 0 10px;
  color: var(--credits-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.credits-hero h1,
.credits-panel h2,
.credits-balance-card strong {
  font-family: var(--credits-display);
}

.credits-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 15ch;
  margin: 0;
  color: var(--credits-navy);
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.credits-hero p,
.credits-panel p,
.credits-status {
  color: var(--credits-muted);
  line-height: 1.65;
}

.credits-hero-copy > p:not(.credits-kicker) {
  position: relative;
  z-index: 1;
  max-width: 64ch;
  margin: 18px 0 0;
  font-size: 1.02rem;
}

.credits-trust-row {
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.credits-trust-row span,
.credits-account-chip {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(31, 122, 77, 0.18);
  border-radius: 999px;
  background: rgba(31, 122, 77, 0.08);
  color: var(--credits-green);
  font-size: 0.82rem;
  font-weight: 800;
}

.credits-balance-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(180deg, #0e1a32, #204e7a),
    var(--credits-navy);
  color: #fffaf1;
}

.credits-balance-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.credits-balance-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.16));
}

.credits-balance-card .credits-kicker,
.credits-balance-card p {
  color: rgba(255, 250, 241, 0.76);
}

.credits-balance-card strong {
  display: block;
  margin: 4px 0 8px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.credits-balance-card .credits-account-chip {
  width: fit-content;
  margin-top: 18px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff5df;
}

.credits-grid,
.credits-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.credits-panel {
  padding: 24px;
}

.credits-pack-panel {
  grid-column: 1 / -1;
}

.credits-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.credits-section-head h2,
.credits-how-panel h2 {
  margin: 0;
  color: var(--credits-navy);
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.credits-section-head > p {
  max-width: 30ch;
  margin: 0;
  text-align: right;
  font-size: 0.94rem;
}

.credits-pack-list,
.credits-purchase-list,
.credits-how-list {
  display: grid;
  gap: 12px;
}

.credits-pack-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.credits-pack {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  justify-items: center;
  width: 100%;
  min-height: 330px;
  padding: 30px 24px;
  border: 1px solid var(--credits-line);
  border-radius: 22px;
  background: var(--credits-card-strong);
  color: var(--credits-ink);
  cursor: pointer;
  text-align: center;
  box-shadow: 0 16px 34px rgba(21, 35, 63, 0.08);
}

.credits-pack:hover,
.credits-pack:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(36, 104, 216, 0.55);
  box-shadow: 0 24px 44px rgba(21, 35, 63, 0.12);
}

.credits-pack:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.credits-pack span,
.credits-purchase-card span {
  color: var(--credits-muted);
  font-size: 0.92rem;
}

.credits-pack strong {
  color: var(--credits-navy);
  font-size: 1.25rem;
  font-weight: 800;
}

.credits-pack-title {
  color: var(--credits-navy) !important;
  font-size: 1.1rem !important;
  font-weight: 800;
}

.credits-pack-price {
  width: 100%;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--credits-line);
  color: var(--credits-blue) !important;
  font-size: clamp(3rem, 5vw, 4.8rem) !important;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.credits-pack-icon {
  width: 60px;
  height: 60px;
}

.credits-pack-copy {
  min-height: 2.8em;
}

.credits-pack-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border: 1px solid var(--credits-blue);
  border-radius: 12px;
  background: #ffffff;
  color: var(--credits-blue) !important;
  font-weight: 800;
}

.credits-pack:nth-child(2) {
  border-color: rgba(36, 104, 216, 0.9);
  box-shadow: 0 24px 46px rgba(36, 104, 216, 0.14);
}

.credits-pack:nth-child(2)::before {
  content: "Most popular";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  min-height: 30px;
  padding: 7px 18px 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #2f7df0, #195dc5);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.credits-pack:nth-child(2) .credits-pack-action {
  background: linear-gradient(180deg, #2f7df0, #195dc5);
  color: #ffffff !important;
}

.credits-purchase-card,
.credits-empty-card,
.credits-how-list > div {
  padding: 16px;
  border: 1px solid var(--credits-line);
  border-radius: 14px;
  background: #ffffff;
}

.credits-purchase-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.credits-purchase-card strong,
.credits-how-list strong {
  color: var(--credits-navy);
}

.credits-how-panel {
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.94), rgba(248, 240, 225, 0.9)),
    var(--credits-card);
}

.credits-how-list p {
  margin: 6px 0 0;
}

.credits-empty-card {
  color: var(--credits-muted);
}

.credits-signin-card {
  display: grid;
  gap: 12px;
}

.credits-signin-button {
  justify-self: start;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(33, 104, 215, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, #2f7df0, #195dc5);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(33, 104, 215, 0.18);
}

.credits-status {
  min-height: 56px;
  padding: 16px 18px;
  background: #ffffff;
}

.credits-status.is-success {
  border-color: rgba(31, 122, 77, 0.24);
  background: rgba(31, 122, 77, 0.1);
  color: var(--credits-green);
}

.credits-status.is-error {
  border-color: rgba(161, 58, 43, 0.24);
  background: rgba(161, 58, 43, 0.1);
  color: var(--credits-red);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(215, 155, 64, 0.42);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .credits-header {
    border-radius: 28px;
    flex-wrap: wrap;
  }

  .credits-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

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

  .credits-pack-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .credits-shell {
    padding: 12px;
  }

  .credits-header {
    padding: 12px;
  }

  .credits-brand-tagline,
  .credits-nav {
    display: none;
  }

  .credits-return {
    min-height: 38px;
    padding-inline: 12px;
  }

  .credits-hero-copy,
  .credits-panel,
  .credits-balance-card {
    padding: 18px;
    border-radius: 22px;
  }

  .credits-hero h1 {
    font-size: 2.8rem;
  }

  .credits-section-head,
  .credits-purchase-card {
    display: grid;
    text-align: left;
  }

  .credits-section-head > p {
    text-align: left;
  }

  .credits-pack {
    min-height: auto;
    padding: 24px 18px;
  }

  .credits-pack-price {
    width: fit-content;
  }
}
