body{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
.premium-card {
  position: relative;
  width: 340px;
  left: 100px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  font-family: "Inter", sans-serif;
  color: var(--primary);
  --glow-x: 50%;
  --glow-y: 50%;
}

.premium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    220px circle at var(--glow-x) var(--glow-y),
    var(--accent),
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.premium-card::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--glow-x) var(--glow-y),
    var(--accent),
    transparent 70%
  );
  filter: blur(18px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

.premium-header {
  margin-bottom: 18px;
}

.premium-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.premium-star {
  color: #fff;
  font-size: 1em;
}

.premium-title {
  color: #fff;
  font-size: 1.4em;
  font-weight: 700;
  margin: 0;
}

.badge-popular {
  background: var(--primary);
  color: var(--bg);
  font-size: 0.72em;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.premium-subtitle {
  color: var(--grey);
  font-size: 0.9em;
  margin: 0;
}

.billing-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border);
  border-radius: 22px;
  transition: 0.2s ease;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

.billing-label {
  color: #cfd3d8;
  font-size: 0.9em;
  font-weight: 500;
}

.price-row {
  margin-bottom: 2px;
}

.price-old {
  color: var(--grey);
  text-decoration: line-through;
  font-size: 1em;
}

.price-main-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 18px;
}

.price-currency {
  color: #fff;
  font-size: 1.4em;
  font-weight: 700;
  line-height: 1;
}

.price-main {
  display: inline-block;
  color: #fff;
  font-size: 2.6em;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-period {
  color: var(--grey);
  font-size: 1em;
  font-weight: 500;
  line-height: 1;
}

.digit-reel {
  position: relative;
  display: inline-block;
  width: 0.62em;
}

/* Invisible digit that stays in normal flow, giving the browser a real
   baseline to align against — this is what fixes the misalignment. */
.digit-ghost {
  visibility: hidden;
  display: inline-block;
  width: 100%;
  text-align: center;
}

/* The visible, clipped window sits absolutely over the ghost digit */
.digit-window {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1em;
  overflow: hidden;
}

.digit-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.digit-track span {
  display: block;
  height: 1em;
  line-height: 1;
  text-align: center;
}

.digit-static {
  display: inline-block;
  line-height: 1;
}

.unlock-btn {
  position: relative;
  width: 100%;
  background: var(--primary);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  font-size: 1.05em;
  font-weight: 700;
  padding: 13px 0;
  cursor: pointer;
  margin-bottom: 22px;
  overflow: hidden;
  z-index: 0;
  transition: transform 0.15s ease, box-shadow 0.25s ease;
}

.unlock-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    var(--primary) 0%,
    var(--accent) 45%,
    #fbecab 55%,
    var(--accent) 65%,
    var(--primary) 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  transition: background-position 0.6s ease;
  z-index: -1;
}

.unlock-btn:hover::before {
  background-position: 0% 0;
}

.unlock-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(226, 183, 64, 0.35);
}

.premium-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.premium-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-plus {
  color: var(--primary);
  font-size: 0.85em;
  margin-top: 3px;
  flex-shrink: 0;
}

.feature-check-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65em;
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-text {
  color: #d7dae0;
  font-size: 0.92em;
  line-height: 1.4;
}

.feature-bold {
  color: #fff;
  font-weight: 700;
}

.feature-underline {
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

@media (max-width: 400px) {
  .premium-card {
    width: 100%;
  }
}