/* CapCut Pro order page */

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

:root {
  --bg: #07100f;
  --bg-2: #0d1513;
  --panel: #111c1a;
  --panel-2: #172522;
  --panel-3: #0c1514;
  --line: rgba(238, 247, 241, 0.12);
  --line-strong: rgba(63, 229, 208, 0.54);
  --text: #f7fbf8;
  --muted: rgba(247, 251, 248, 0.68);
  --quiet: rgba(247, 251, 248, 0.5);
  --cyan: #3fe5d0;
  --mint: #8df2a4;
  --rose: #ff5c7a;
  --amber: #ffd166;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Noto Sans Khmer", "Plus Jakarta Sans", system-ui, sans-serif;
  background:
    linear-gradient(120deg, rgba(63, 229, 208, 0.1), transparent 34%),
    linear-gradient(210deg, transparent 24%, rgba(255, 92, 122, 0.08) 54%, transparent 78%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 52%, #050807 100%);
  background-size: 150% 150%, 130% 130%, 100% 100%;
  animation: ambientShift 14s ease-in-out infinite alternate;
}

body.checkout-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 72%);
  animation: gridDrift 18s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 38vh;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 209, 102, 0.07));
  animation: footerGlow 8s ease-in-out infinite alternate;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.page {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 20px 16px 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  animation: fadeSlideUp 520ms ease both;
}

.brand,
.top-actions {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand {
  gap: 11px;
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  object-fit: cover;
  background: #000;
  box-shadow: 0 0 26px rgba(63, 229, 208, 0.18);
  animation: logoPulse 3.6s ease-in-out infinite;
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-name strong {
  color: var(--cyan);
}

.brand-subtitle,
.seller-card small,
.eyebrow {
  color: var(--quiet);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
}

.top-actions {
  flex: 0 0 auto;
  justify-content: end;
  gap: 8px;
}

.status-pill,
.device-note {
  flex: 0 0 auto;
  border: 1px solid rgba(63, 229, 208, 0.28);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--cyan);
  background: rgba(63, 229, 208, 0.08);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.top-chat,
.telegram-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  color: #04100e;
  background: var(--cyan);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.top-chat {
  padding: 9px 12px;
  font-size: 12px;
}

.top-chat:hover,
.top-chat:focus-visible,
.telegram-button:hover,
.telegram-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  background: var(--mint);
  box-shadow: 0 14px 34px rgba(63, 229, 208, 0.2);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: var(--shadow);
  animation: fadeSlideUp 620ms 80ms ease both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(118deg, transparent 0 42%, rgba(63, 229, 208, 0.12) 42% 58%, transparent 58%),
    linear-gradient(152deg, transparent 0 64%, rgba(255, 209, 102, 0.1) 64% 74%, transparent 74%);
  background-size: 180% 100%, 160% 100%;
  animation: panelLight 7s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 12%, rgba(255, 255, 255, 0.16) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: heroSweep 5.8s 1.1s ease-in-out infinite;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.hero h1,
.section-heading h2 {
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  font-family: "Plus Jakarta Sans", "Noto Sans Khmer", sans-serif;
  font-size: 38px;
  line-height: 1.02;
  animation: titleReveal 720ms 180ms ease both;
}

.hero-desc {
  max-width: 58ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  animation: fadeSlideUp 620ms 260ms ease both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 6px;
}

.hero-stats span {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.15);
  animation: statRise 560ms ease both;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-stats span:nth-child(1) {
  animation-delay: 340ms;
}

.hero-stats span:nth-child(2) {
  animation-delay: 420ms;
}

.hero-stats span:nth-child(3) {
  animation-delay: 500ms;
}

.hero-stats span:hover {
  transform: translateY(-2px);
  border-color: rgba(63, 229, 208, 0.38);
  background: rgba(63, 229, 208, 0.08);
}

.hero-stats strong {
  color: var(--cyan);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 24px;
  line-height: 1;
}

.hero-stats small {
  color: var(--quiet);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-media {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #030504;
}

.hero-product {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  object-fit: cover;
  object-position: center;
  transform-origin: center;
  animation: productFloat 6s ease-in-out infinite;
}

.seller-card {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 10px;
  background: rgba(5, 9, 8, 0.82);
  backdrop-filter: blur(16px);
  animation: sellerEnter 680ms 460ms ease both;
}

.seller-photo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  object-fit: cover;
  object-position: center 22%;
  animation: sellerPhotoGlow 4.4s ease-in-out infinite;
}

.seller-card span {
  display: grid;
  gap: 1px;
}

.seller-card strong {
  font-size: 15px;
  line-height: 1.25;
}

.order-shell,
.note {
  margin-top: 24px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  animation: fadeSlideUp 520ms 160ms ease both;
}

.section-heading h2 {
  margin-top: 4px;
  font-size: 23px;
  line-height: 1.3;
}

.section-heading.compact {
  margin-bottom: 10px;
}

.quantity-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(17, 28, 26, 0.82);
  animation: fadeSlideUp 520ms 200ms ease both;
}

.quantity-label {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quantity-btn,
.quantity-input {
  height: 40px;
  border: 1px solid rgba(63, 229, 208, 0.28);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
}

.quantity-btn {
  width: 40px;
  cursor: pointer;
  color: var(--cyan);
  font-size: 20px;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.quantity-btn:hover,
.quantity-btn:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(63, 229, 208, 0.11);
  box-shadow: 0 10px 22px rgba(63, 229, 208, 0.12);
}

.quantity-btn:active {
  transform: translateY(0) scale(0.96);
}

.quantity-input {
  width: 76px;
  padding: 0 8px;
  text-align: center;
  font-size: 16px;
  outline: none;
}

.quantity-input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(63, 229, 208, 0.12);
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.quantity-input[type="number"] {
  appearance: textfield;
}

.quantity-help {
  grid-column: 1 / -1;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.5;
}

.discount-hint {
  grid-column: 1 / -1;
  width: fit-content;
  border: 1px solid rgba(255, 209, 102, 0.32);
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffd166;
  background: rgba(255, 209, 102, 0.09);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  animation: discountGlow 2.8s ease-in-out infinite;
}

.plans {
  display: grid;
  gap: 10px;
}

.plan {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--text);
  text-decoration: none;
  background: rgba(17, 28, 26, 0.86);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  animation: fadeSlideUp 520ms ease both;
}

.plan::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.13) 45%, transparent 60%);
  transform: translateX(-120%);
}

.plan:nth-child(1) {
  animation-delay: 230ms;
}

.plan:nth-child(2) {
  animation-delay: 300ms;
}

.plan:nth-child(3) {
  animation-delay: 370ms;
}

.plan:nth-child(4) {
  animation-delay: 440ms;
}

.plan:nth-child(5) {
  animation-delay: 510ms;
}

.plan:focus-visible,
.plan:hover {
  outline: none;
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.plan:hover::before,
.plan:focus-visible::before,
.plan.is-selected::before {
  animation: shineSweep 820ms ease;
}

.plan:active {
  transform: translateY(0) scale(0.985);
}

.plan.is-picking {
  animation: planPick 420ms ease;
}

.plan.is-selected {
  border-color: rgba(63, 229, 208, 0.8);
  background:
    linear-gradient(135deg, rgba(63, 229, 208, 0.12), transparent 54%),
    var(--panel-2);
  box-shadow: 0 18px 42px rgba(63, 229, 208, 0.12);
}

.plan-check {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(247, 251, 248, 0.32);
  border-radius: 999px;
}

.plan.is-selected .plan-check {
  border-color: var(--cyan);
  background:
    radial-gradient(circle at center, var(--cyan) 0 42%, transparent 44%),
    rgba(63, 229, 208, 0.12);
  animation: checkPop 420ms ease both;
}

.plan.popular {
  border-color: rgba(255, 209, 102, 0.52);
}

.popular-tag {
  position: absolute;
  top: 0;
  right: 0;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 0 0 0 8px;
  padding: 4px 10px;
  color: #1c1300;
  background: var(--amber);
  font-family: "Plus Jakarta Sans", "Noto Sans Khmer", sans-serif;
  font-size: 10px;
  font-weight: 800;
  animation: tagPulse 2.8s ease-in-out infinite;
}

.popular .plan-main {
  padding-top: 12px;
}

.plan-main,
.plan-side {
  display: grid;
  gap: 4px;
}

.plan-main {
  min-width: 0;
}

.plan-main strong {
  font-size: 18px;
  line-height: 1.3;
}

.plan-main span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.plan-side {
  justify-items: end;
  text-align: right;
}

.plan-side strong {
  color: var(--cyan);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.plan-side span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 8px;
  padding: 6px 10px;
  color: #061112;
  background: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease;
}

.plan:hover .plan-side span,
.plan:focus-visible .plan-side span {
  transform: translateX(2px);
  background: var(--mint);
}

.checkout-backdrop,
.order-summary,
.note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 28, 26, 0.84);
  box-shadow: var(--shadow);
}

.checkout-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  border: 0;
  border-radius: 0;
  background: rgba(2, 7, 6, 0.64);
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
  transition: opacity 200ms ease;
}

.checkout-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.order-summary {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 40;
  display: grid;
  gap: 16px;
  width: min(calc(100vw - 32px), 400px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -44%) scale(0.96);
  transition: opacity 200ms ease, transform 200ms ease;
}

.order-summary.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.order-summary.is-fresh {
  animation: checkoutPop 360ms ease;
}

.summary-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.summary-header strong {
  font-size: 22px;
  line-height: 1.25;
}

.summary-close {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid rgba(247, 251, 248, 0.16);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.summary-close:hover,
.summary-close:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(63, 229, 208, 0.42);
  background: rgba(63, 229, 208, 0.1);
}

.summary-list {
  display: grid;
  gap: 11px;
}

.summary-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.summary-list dt {
  color: var(--muted);
  font-size: 13px;
}

.summary-list dd {
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Noto Sans Khmer", sans-serif;
  font-weight: 800;
}

.summary-discount {
  color: var(--amber);
}

.summary-discount dt,
.summary-discount dd {
  color: var(--amber);
}

.summary-discount.is-hidden {
  display: none;
}

.summary-discount.is-active {
  animation: discountSlide 360ms ease both;
}

.summary-total {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.summary-total dt,
.summary-total dd {
  color: var(--cyan);
}

.summary-total dd {
  font-size: 32px;
  line-height: 1;
}

#summaryDiscount.is-updating,
#summaryQuantity.is-updating,
#summaryTotal.is-updating {
  animation: valuePop 360ms ease;
}

.telegram-button {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
}

.telegram-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 15%, rgba(255, 255, 255, 0.44) 50%, transparent 80%);
  transform: translateX(-130%);
}

.telegram-button:hover::after,
.telegram-button:focus-visible::after,
.telegram-button.is-ready::after {
  animation: buttonShine 760ms ease;
}

.note {
  padding: 16px;
  animation: fadeSlideUp 520ms 420ms ease both;
}

.note-list {
  display: grid;
  gap: 9px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.note-list li::marker {
  color: var(--cyan);
}

.note-list li {
  animation: fadeSlideUp 460ms ease both;
}

.note-list li:nth-child(1) {
  animation-delay: 480ms;
}

.note-list li:nth-child(2) {
  animation-delay: 560ms;
}

.note-list li:nth-child(3) {
  animation-delay: 640ms;
}

.note-list li:nth-child(4) {
  animation-delay: 720ms;
}

#toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 20;
  max-width: 420px;
  margin: 0 auto;
  padding: 13px 16px;
  border: 1px solid rgba(63, 229, 208, 0.34);
  border-radius: 8px;
  color: var(--text);
  background: rgba(6, 17, 18, 0.94);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 auto;
  padding: 0 16px 26px;
  color: var(--quiet);
  font-size: 12px;
  animation: fadeSlideUp 520ms 520ms ease both;
}

.footer a {
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambientShift {
  from {
    background-position: 0% 0%, 100% 0%, 0 0;
  }
  to {
    background-position: 100% 22%, 0% 100%, 0 0;
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 44px 44px, 44px 44px;
  }
}

@keyframes footerGlow {
  from {
    opacity: 0.62;
  }
  to {
    opacity: 1;
  }
}

@keyframes logoPulse {
  0%, 100% {
    box-shadow: 0 0 22px rgba(63, 229, 208, 0.18);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 34px rgba(63, 229, 208, 0.36);
    transform: translateY(-1px);
  }
}

@keyframes panelLight {
  from {
    background-position: 0% 0%, 100% 0%;
  }
  to {
    background-position: 100% 0%, 0% 0%;
  }
}

@keyframes heroSweep {
  0%, 56% {
    transform: translateX(-120%);
  }
  82%, 100% {
    transform: translateX(120%);
  }
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes statRise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes productFloat {
  0%, 100% {
    transform: scale(1.02) translateY(0);
  }
  50% {
    transform: scale(1.05) translateY(-6px);
  }
}

@keyframes sellerEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sellerPhotoGlow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(63, 229, 208, 0);
  }
  50% {
    box-shadow: 0 0 18px rgba(63, 229, 208, 0.26);
  }
}

@keyframes shineSweep {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@keyframes buttonShine {
  from {
    transform: translateX(-130%);
  }
  to {
    transform: translateX(130%);
  }
}

@keyframes planPick {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.985);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes checkPop {
  0% {
    transform: scale(0.7);
  }
  65% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes tagPulse {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.16);
  }
}

@keyframes discountGlow {
  0%, 100% {
    border-color: rgba(255, 209, 102, 0.28);
    box-shadow: 0 0 0 rgba(255, 209, 102, 0);
  }
  50% {
    border-color: rgba(255, 209, 102, 0.62);
    box-shadow: 0 0 18px rgba(255, 209, 102, 0.12);
  }
}

@keyframes discountSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes summaryPulse {
  0% {
    border-color: var(--line);
  }
  45% {
    border-color: rgba(63, 229, 208, 0.58);
    box-shadow: 0 18px 44px rgba(63, 229, 208, 0.14);
  }
  100% {
    border-color: var(--line);
  }
}

@keyframes checkoutPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -44%) scale(0.94);
  }
  68% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes valuePop {
  0% {
    transform: translateY(0) scale(1);
  }
  42% {
    transform: translateY(-2px) scale(1.08);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 760px) {
  .page {
    padding-top: 28px;
  }

  .topbar {
    margin-bottom: 26px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: stretch;
    padding: 30px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-media,
  .hero-product {
    min-height: 340px;
  }

  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan {
    min-height: 114px;
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
  }

  .top-actions {
    display: grid;
    justify-items: end;
  }

  .status-pill {
    display: none;
  }

  .hero {
    padding: 18px;
  }

  .hero h1 {
    font-size: 34px;
  }

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

  .hero-stats span {
    min-height: 58px;
  }

  .quantity-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .quantity-control {
    justify-content: space-between;
  }

  .quantity-input {
    flex: 1;
    width: auto;
  }

  .plan {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
  }

  .plan-side {
    grid-column: 2;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .plan-side strong {
    font-size: 24px;
  }

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

@media (max-width: 380px) {
  .page {
    padding-inline: 12px;
  }

  .brand-name {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .summary-total dd {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
