/* ==========================================================================
   Prime Store — inner pages
   product · checkout · licenses · change · contact · legal · status · payment
   ========================================================================== */

.px-page-top { padding-top: calc(var(--header-h) + 48px); }

/* ---------- Product ---------- */
.product-page { padding-top: calc(var(--header-h) + 40px); }
.product-container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.gallery-section { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; }
.main-image-container {
  position: relative;
  aspect-ratio: 16 / 10.5;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  cursor: zoom-in;
}
.main-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.25s ease, transform 1.2s var(--ease-out); }
.main-image-container:hover .main-image { transform: scale(1.03); }
.gallery-zoom-btn, .gallery-nav {
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 6, 9, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  transition: background 0.25s ease, transform 0.35s var(--ease-out), opacity 0.3s ease;
}
.gallery-zoom-btn { top: 14px; inset-inline-end: 14px; }
.gallery-nav { top: 50%; translate: 0 -50%; opacity: 0; }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.main-image-container:hover .gallery-nav { opacity: 1; }
.gallery-zoom-btn:hover, .gallery-nav:hover { background: var(--violet); border-color: transparent; }
.gallery-nav:active, .gallery-zoom-btn:active { transform: scale(0.92); }
.image-counter {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  inset-inline-start: 14px;
  height: 28px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(6, 6, 9, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 12px;
  direction: ltr;
}
.video-container { display: none; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: #000; }
.video-container.active { display: block; animation: px-drop 0.5s var(--ease-out); }
.video-container iframe { width: 100%; height: 100%; border: 0; display: block; }

.thumbnails-shell { display: grid; gap: 10px; }
.thumbnails-wrapper { display: flex; align-items: center; gap: 8px; }
.thumbnails { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; flex: 1; padding: 2px; }
.thumbnails::-webkit-scrollbar { display: none; }
.thumbnail {
  position: relative;
  flex: 0 0 104px;
  aspect-ratio: 16 / 10.5;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease-out);
}
.thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbnail:hover { opacity: 0.9; transform: translateY(-2px); }
.thumbnail.active { opacity: 1; border-color: var(--violet-hi); box-shadow: 0 0 0 3px var(--violet-a20); }
.video-play-badge { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.35); }
.video-play-badge i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #000; font-size: 11px; }
.thumb-nav {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.thumb-nav:hover { border-color: var(--line-3); color: var(--text); }
.thumbnails-progress { height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.thumbnails-progress.is-hidden { display: none; }
.thumbnails-progress-fill { display: block; height: 100%; background: var(--violet-hi); border-radius: 2px; transition: margin 0.2s linear, width 0.2s linear; }

.product-info { display: grid; gap: 22px; align-content: start; }
.product-badge {
  width: fit-content;
  height: 30px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--violet-a35);
  background: var(--violet-a10);
  color: var(--violet-hi);
  font-size: 12.5px;
  font-weight: 600;
}
.product-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.product-title { font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; }
.product-rating { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.product-rating .stars { display: inline-flex; }
.product-rating .stars::before { content: "★★★★★"; letter-spacing: 2px; color: var(--warn); font-size: 14px; }
.rating-text { font-family: var(--font-mono); font-weight: 600; color: var(--text); }

.product-price-box {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--violet-a10), transparent 60%), var(--ink-1);
}
.product-price { font-family: var(--font-head); font-size: clamp(30px, 3vw, 40px); font-weight: 700; letter-spacing: -0.02em; }
.product-price .px-mono { font-family: var(--font-display); }
.product-price span:last-child { font-size: 0.5em; color: var(--text-2); font-weight: 600; margin-inline-start: 4px; }
.product-price-usd { font-size: 14px; color: var(--text-3); }
.product-price-usd .px-mono { color: var(--text-2); }

.product-description-wrap { position: relative; }
.product-description { font-size: 15.5px; line-height: 1.85; color: var(--text-2); }
.product-description-wrap.is-collapsed .product-description {
  max-height: 9.3em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.product-read-more {
  margin-top: 10px;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.25s ease;
}
.product-read-more:hover { border-color: var(--violet-a35); }

.product-features { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-1); }
.product-features h4 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.product-features ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.product-features li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--text-2); }
.product-features li::before {
  content: "\f00c";
  font: var(--fa-font-solid);
  font-size: 10px;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--ok-a);
  color: var(--ok);
}

.product-info .action-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product-info .action-buttons button {
  position: relative;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.25s ease, background 0.25s ease;
}
.product-info .action-buttons button::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}
.product-info .action-buttons button:hover::after { transform: translateX(120%); }
.product-info .action-buttons button:hover { transform: translateY(-2px); border-color: var(--line-3); }
.product-info .action-buttons button:active { transform: scale(0.97); }
.btn-buy-now { grid-column: 1 / -1; background: var(--violet) !important; border-color: transparent !important; color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 18px 40px -16px var(--violet); }
.btn-add-cart-premium { background: var(--text) !important; color: var(--ink-0) !important; border-color: transparent !important; }
.btn-watch-premium i { color: #ff4d4d; }
.product-info .action-buttons:not(:has(.btn-watch-premium)) .btn-add-cart-premium { grid-column: 1 / -1; }

/* Related */
.related-products-section { margin-top: 110px; }
.related-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.related-product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-1);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.3s ease;
}
.related-product-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.related-product-img { aspect-ratio: 16 / 10.5; overflow: hidden; margin: 6px 6px 0; border-radius: 14px; background: var(--ink-2); }
.related-product-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease-out); }
.related-product-card:hover .related-product-img img { transform: scale(1.06); }
.related-product-body { position: relative; z-index: 1; display: grid; gap: 6px; padding: 14px 16px 16px; }
.related-product-body h4 { font-size: 15.5px; font-weight: 600; }
.related-price { font-family: var(--font-mono); font-size: 13.5px; color: var(--text-2); }
.related-price i { color: var(--violet-hi); font-size: 11px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  background: rgba(3, 3, 6, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-stage { max-width: min(1200px, 92vw); max-height: 84vh; transform: scale(0.94); transition: transform 0.55s var(--ease-out); }
.lightbox.active .lightbox-stage { transform: none; }
.lightbox-stage img { max-width: 100%; max-height: 84vh; border-radius: 16px; display: block; box-shadow: var(--shadow-2); }
.lightbox-close, .lightbox-nav {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: background 0.25s ease, transform 0.35s var(--ease-out);
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-close:hover { transform: rotate(90deg); background: var(--ink-3); }
.lightbox-nav { top: 50%; translate: 0 -50%; }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-nav:hover { background: var(--violet); }
.lightbox-counter { position: absolute; bottom: 24px; left: 50%; translate: -50% 0; font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }

/* ---------- Checkout ---------- */
.checkout-page { width: min(var(--shell), 100% - var(--gutter) * 2); margin: 0 auto; padding-top: calc(var(--header-h) + 48px); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.checkout-main { display: grid; gap: 22px; }
.checkout-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.checkout-hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; margin-bottom: 12px; }
.checkout-hero p { color: var(--text-2); max-width: 560px; }
.hero-chip span, .hero-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}
.hero-chip { border: 0; padding: 0; height: auto; }
.gateway-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gateway-card { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ink-1); }
.gateway-card::before {
  content: "\f09d";
  font: var(--fa-font-solid);
  font-size: 14px;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--violet-a10);
  color: var(--violet-hi);
}
.gateway-card:nth-child(1)::before { content: "\f1ed"; font: var(--fa-font-brands); font-size: 16px; }
.gateway-card:nth-child(3)::before { content: "\f3ed"; }
.gateway-card strong { display: block; font-size: 14px; font-weight: 600; }
.gateway-card span { display: block; font-size: 12.5px; color: var(--text-3); }

.cart-list { display: grid; gap: 10px; }
.cart-item {
  display: grid;
  grid-template-columns: 116px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-1);
  animation: px-drop 0.5s var(--ease-out) both;
  transition: border-color 0.3s ease, transform 0.4s var(--ease-out), opacity 0.3s ease;
}
html[dir="rtl"] .cart-item { padding: 10px 10px 10px 14px; }
.cart-item:hover { border-color: var(--line-2); }
.cart-item:nth-child(2) { animation-delay: 0.05s; }
.cart-item:nth-child(3) { animation-delay: 0.1s; }
.cart-item:nth-child(n+4) { animation-delay: 0.15s; }
.cart-item img { width: 116px; aspect-ratio: 16 / 10.5; object-fit: cover; border-radius: 12px; background: var(--ink-2); display: block; }
.cart-item h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 4px; unicode-bidi: plaintext; }
.cart-item p { font-size: 12.5px; color: var(--text-3); }
.cart-price { margin-top: 8px; font-family: var(--font-mono); font-size: 15px; font-weight: 600; }
.remove-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-3);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.35s var(--ease-out);
}
.remove-btn:hover { color: var(--err); border-color: rgba(255, 107, 122, 0.35); background: var(--err-a); transform: rotate(-8deg); }
.empty-cart { padding: 56px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty-cart::before {
  content: "\f290";
  font: var(--fa-font-solid);
  font-size: 22px;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--violet-a10);
  color: var(--violet-hi);
  animation: px-float 4s var(--ease-io) infinite;
}
@keyframes px-float { 50% { transform: translateY(-6px); } }
.empty-cart h3 { font-size: 22px; margin-bottom: 8px; }
.empty-cart p { color: var(--text-2); }

.checkout-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 40%), var(--ink-1);
  box-shadow: var(--shadow-2);
}
.checkout-side > h3, .coupon-box h3 { font-size: 13px; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
html[dir="rtl"] .checkout-side > h3, html[dir="rtl"] .coupon-box h3 { font-family: var(--font-ar); letter-spacing: 0; font-size: 14px; }
.summary-box { display: grid; }
.summary-line { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 14.5px; color: var(--text-2); border-bottom: 1px dashed var(--line); }
.summary-line strong { font-family: var(--font-mono); font-weight: 600; color: var(--text); }
.summary-line.discount strong { color: var(--ok); }
.summary-line.total { border-bottom: 0; padding-top: 18px; font-size: 16px; color: var(--text); }
.summary-line.total strong { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
#discount-row { display: none; }
.coupon-box { display: grid; gap: 10px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--ink-0);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.coupon-row input::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--font-body); color: var(--text-3); }
.coupon-row input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-a20); }
.coupon-row button {
  height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.25s ease, transform 0.3s var(--ease-out);
}
.coupon-row button:hover { background: rgba(255, 255, 255, 0.1); }
.coupon-row button:active { transform: scale(0.96); }
.coupon-message { font-size: 13px; min-height: 1px; }
.coupon-message.success { color: var(--ok); }
.coupon-message.error { color: var(--err); animation: px-shake 0.4s ease; }
@keyframes px-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.checkout-actions { display: grid; gap: 10px; }
.primary-action {
  position: relative;
  height: 56px;
  border: 0;
  border-radius: 14px;
  background: var(--violet);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 18px 40px -16px var(--violet);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.primary-action::before { content: "\f023"; font: var(--fa-font-solid); font-size: 13px; margin-inline-end: 10px; }
.primary-action::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}
.primary-action:not([disabled]):hover { transform: translateY(-2px); }
.primary-action:not([disabled]):hover::after { transform: translateX(120%); }
.secondary-link {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.secondary-link:hover { color: var(--text); border-color: var(--line-3); }
.secure-row { display: grid; gap: 8px; }
.secure-chip { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-3); }
.secure-chip::before { content: "\f3ed"; font: var(--fa-font-solid); font-size: 11px; color: var(--ok); }

/* ---------- Licenses ---------- */
.continer_license { width: min(var(--shell), 100% - var(--gutter) * 2); margin: 0 auto; padding-top: calc(var(--header-h) + 64px); }
.license { display: grid; gap: 36px; }
.license > div:first-child { display: grid; gap: 14px; }
.license h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 700; }
.license > div:first-child p { max-width: 640px; color: var(--text-2); font-size: 16px; }
.px-license-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.license-table-wrap { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--ink-1); overflow: hidden; }
.license-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.license-table th {
  padding: 16px 20px;
  text-align: start;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
}
html[dir="rtl"] .license-table th { font-family: var(--font-ar); letter-spacing: 0; font-size: 13px; }
.license-table td { padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.license-table tbody tr { transition: background 0.25s ease; }
.license-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.license-table tbody tr:last-child td { border-bottom: 0; }
.license-key {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--violet-hi);
  word-break: break-all;
  cursor: copy;
  position: relative;
}
.license-key:hover { color: #fff; }
.license-cell-download a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--violet-a10);
  border: 1px solid var(--violet-a35);
  color: var(--violet-hi);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}
.license-cell-download a:hover { background: var(--violet); color: #fff; }
.license-cell-script { font-weight: 600; }
.license-table .px-empty-row td { padding: 54px 20px; text-align: center; color: var(--text-2); }

/* ---------- Change license ---------- */
.continer_change { width: min(720px, 100% - var(--gutter) * 2); margin: 0 auto; }
.change {
  display: grid;
  gap: 10px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%), var(--ink-1);
  box-shadow: var(--shadow-2);
}
.change > div:first-child { display: grid; gap: 12px; margin-bottom: 18px; }
.change h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
.change > div:first-child p { color: var(--text-2); }
.change h3 { font-family: var(--font-body); font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-top: 8px; letter-spacing: 0; }
.change .input, .field input, .field select, .field textarea, .form-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--ink-0);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.change select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 22px) 21px, calc(100% - 16px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }
html[dir="rtl"] .change select.input { background-position: 22px 21px, 16px 21px; }
.change .input:focus, .form-input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-a20); background: var(--ink-1); }
.change .buttons { margin-top: 18px; }
.change .buttons button {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 14px;
  background: var(--violet);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  box-shadow: 0 18px 40px -16px var(--violet);
  transition: transform 0.35s var(--ease-out);
}
.change .buttons button:hover { transform: translateY(-2px); }
.change .buttons button:active { transform: scale(0.98); }

/* ---------- Contact ---------- */
.contact-container { width: min(var(--shell), 100% - var(--gutter) * 2); margin: 0 auto; padding-top: calc(var(--header-h) + 48px); }
.contact-header { display: grid; gap: 14px; margin-bottom: 40px; }
.contact-title { display: flex; align-items: center; gap: 16px; font-size: clamp(36px, 5vw, 64px); font-weight: 700; }
.contact-title i { font-size: 0.5em; width: 1.6em; height: 1.6em; display: grid; place-items: center; border-radius: 0.4em; background: var(--violet-a10); color: var(--violet-hi); border: 1px solid var(--violet-a35); }
.contact-subtitle { color: var(--text-2); font-size: 16.5px; max-width: 560px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--ink-1);
  transition: transform 0.5s var(--ease-out), border-color 0.3s ease;
}
.contact-card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.contact-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; font-size: 22px; margin-bottom: 10px; transition: transform 0.6s var(--ease-out); }
.contact-card:hover .contact-icon { transform: rotate(-8deg) scale(1.06); }
.contact-icon.discord { background: rgba(88, 101, 242, 0.14); color: #8c96ff; }
.contact-icon.email { background: var(--violet-a10); color: var(--violet-hi); }
.contact-icon.tiktok { background: rgba(255, 255, 255, 0.06); color: #fff; }
.contact-card h3 { font-size: 20px; font-weight: 600; }
.contact-card p { color: var(--text-2); font-size: 14.5px; }
.contact-value { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--text); }
.contact-value::after { content: "\f061"; font: var(--fa-font-solid); font-size: 11px; color: var(--violet-hi); transition: transform 0.4s var(--ease-out); }
html[dir="rtl"] .contact-value::after { transform: scaleX(-1); }
.contact-card:hover .contact-value::after { transform: translateX(4px); }
html[dir="rtl"] .contact-card:hover .contact-value::after { transform: scaleX(-1) translateX(4px); }
.support-info { margin-top: 16px; padding: 24px 28px; display: grid; gap: 8px; }
.support-info h4 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 4px; }
.support-info h4 i { color: var(--violet-hi); }
.support-info p { color: var(--text-2); font-size: 14.5px; }

/* ---------- Legal ---------- */
.policy-container { width: min(880px, 100% - var(--gutter) * 2); margin: 0 auto; padding-top: calc(var(--header-h) + 48px); }
.policy-card { display: grid; gap: 26px; }
.policy-header { display: grid; gap: 10px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.policy-title { font-size: clamp(34px, 5vw, 58px); font-weight: 700; }
.policy-subtitle { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet-hi); }
.lang-tabs { display: inline-flex; gap: 4px; padding: 4px; width: fit-content; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.lang-tab { height: 38px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: background 0.3s ease, color 0.3s ease; }
.lang-tab.active { background: var(--text); color: var(--ink-0); }
.policy-content { display: none; }
.policy-content.active { display: grid; gap: 14px; animation: px-drop 0.5s var(--ease-out); }
#content-ar { direction: rtl; font-family: var(--font-ar); }
#content-en { direction: ltr; font-family: var(--font-latin); }
.policy-section { padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-1); transition: border-color 0.3s ease; }
.policy-section:hover { border-color: var(--line-2); }
.policy-section h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.policy-section p, .policy-section li { color: var(--text-2); font-size: 15px; line-height: 1.85; }
.policy-section ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.policy-section li::marker { color: var(--violet-hi); }
.refund-badge { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; margin-bottom: 12px; border-radius: 999px; background: var(--err-a); color: var(--err); border: 1px solid rgba(255, 107, 122, 0.3); font-size: 12.5px; font-weight: 700; }

/* ---------- Status pages (404 / ban) ---------- */
body.status-page { min-height: 100svh; }
.status-shell { min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header-h) + 32px) var(--gutter) 48px; }
.status-card {
  width: min(560px, 100%);
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: clamp(32px, 6vw, 56px);
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 50%), rgba(12, 12, 17, 0.85);
  box-shadow: var(--shadow-2);
}
.status-code {
  font-family: var(--font-display);
  font-size: clamp(96px, 18vw, 168px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--violet-hi);
  background: linear-gradient(180deg, var(--violet-a35), transparent);
  -webkit-background-clip: text;
  background-clip: text;
  animation: px-glitch 4s steps(1) infinite;
}
@keyframes px-glitch { 0%, 92%, 100% { transform: none; } 93% { transform: translate(3px, -1px) skewX(-6deg); } 95% { transform: translate(-3px, 1px); } 97% { transform: translate(1px, 0) skewX(4deg); } }
.status-card h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.status-card p { color: var(--text-2); max-width: 420px; }
.status-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--err); }
html[dir="rtl"] .status-kicker { font-family: var(--font-ar); letter-spacing: 0; }
.status-icon { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 22px; font-size: 30px; }
.status-icon.ban { background: var(--err-a); color: var(--err); border: 1px solid rgba(255, 107, 122, 0.3); animation: px-float 4s var(--ease-io) infinite; }
.status-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }

/* ---------- Payment pages ---------- */
.stars-medium, .stars-large { display: none; }
.pay-page { width: min(var(--shell), 100% - var(--gutter) * 2); margin: 0 auto; padding-top: calc(var(--header-h) + 40px); }
.pay-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; }
.pay-brand { display: flex; align-items: center; gap: 12px; }
.pay-brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.pay-brand strong { display: block; font-family: var(--font-head); }
.pay-brand span { display: block; font-size: 12.5px; color: var(--text-3); }
.pay-nav { display: flex; align-items: center; gap: 6px; counter-reset: step; }
.pay-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  counter-increment: step;
}
.pay-nav a::before { content: counter(step); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--ink-3); font-family: var(--font-mono); font-size: 11px; }
.pay-nav a.active { border-color: var(--violet-a35); color: var(--text); background: var(--violet-a10); }
.pay-nav a.active::before { background: var(--violet); color: #fff; }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.pay-main { display: grid; gap: 18px; }
.pay-hero { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.pay-hero h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; margin-bottom: 10px; }
.pay-hero p { color: var(--text-2); max-width: 560px; }
.method-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.method-pill { height: 32px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.moyasar-frame { padding: 22px; border: 1px solid var(--line-2); border-radius: var(--r-xl); background: #fff; color: #111; }
.pay-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--ink-1); }
.pay-side h3 { font-size: 13px; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.summary-item { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; }
.summary-item img { width: 76px; aspect-ratio: 16 / 10.5; object-fit: cover; border-radius: 10px; background: var(--ink-2); }
.summary-item strong { display: block; font-size: 14.5px; }
.summary-item span { display: block; font-size: 12px; color: var(--text-3); }
.item-price { font-family: var(--font-mono); font-size: 13px; margin-top: 4px; }
.summary-money { display: grid; border-top: 1px dashed var(--line-2); padding-top: 6px; }
.money-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--text-2); }
.money-row strong { font-family: var(--font-mono); color: var(--text); }
.money-row.discount strong { color: var(--ok); }
.money-row.total strong { font-family: var(--font-display); font-size: 22px; }
.pay-note { padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); word-break: break-all; }
.pay-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-links a { height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; }
.pay-links a.danger { color: var(--err); border-color: rgba(255, 107, 122, 0.3); }
.pay-links a:hover { background: rgba(255, 255, 255, 0.04); }

.result-shell, .cancel-shell, .success-container { min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header-h) + 32px) var(--gutter) 56px; }
.result-card, .cancel-card, .success-container > div:first-child:not(.stars-medium) {
  width: min(720px, 100%);
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: clamp(28px, 5vw, 52px);
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 50%), rgba(12, 12, 17, 0.88);
  box-shadow: var(--shadow-2);
  animation: px-rise 0.9s var(--ease-out) both;
}
.result-icon, .cancel-icon, .success-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  position: relative;
}
.result-icon, .success-icon { background: var(--ok-a); color: var(--ok); border: 1px solid rgba(61, 214, 140, 0.35); }
.result-icon::before, .success-icon:empty::before { content: "\f00c"; font: var(--fa-font-solid); font-size: 30px; animation: px-pop 0.7s var(--ease-out) 0.3s both; }
.cancel-icon { background: var(--err-a); color: var(--err); border: 1px solid rgba(255, 107, 122, 0.35); }
.cancel-icon::before { content: "\f00d"; font: var(--fa-font-solid); font-size: 30px; animation: px-pop 0.7s var(--ease-out) 0.3s both; }
.result-icon::after, .cancel-icon::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid currentColor; opacity: 0.3; animation: px-ping 2.4s var(--ease-out) infinite; }
@keyframes px-pop { from { transform: scale(0); } 60% { transform: scale(1.25); } to { transform: scale(1); } }
.result-card h1, .cancel-card h1, .success-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; }
.result-card p, .cancel-card p, .success-message { color: var(--text-2); max-width: 540px; }
.result-grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; text-align: start; }
.result-box { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.02); min-width: 0; }
.result-box span { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.result-box strong { display: block; font-family: var(--font-mono); font-size: 14px; word-break: break-all; }
.cancel-reason { width: 100%; padding: 14px 16px; border-radius: var(--r-md); background: var(--err-a); border: 1px solid rgba(255, 107, 122, 0.25); color: #ffc2c8; font-size: 13.5px; }
.cancel-reason:empty { display: none; }
.result-actions, .cancel-actions, .success-container .action-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.result-actions a, .cancel-actions a, .action-btn {
  height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  font-size: 14.5px;
  font-weight: 600;
  transition: transform 0.35s var(--ease-out), background 0.25s ease;
}
.result-actions a.primary, .cancel-actions a.primary, .action-btn.primary { background: var(--violet); border-color: transparent; color: #fff; box-shadow: 0 16px 36px -16px var(--violet); }
.result-actions a:hover, .cancel-actions a:hover, .action-btn:hover { transform: translateY(-2px); }
.payment-info { width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); text-align: start; color: var(--text-2); }

/* Payment preview (demo) */
.preview-container { width: min(1000px, 100% - var(--gutter) * 2); margin: 0 auto; padding-top: calc(var(--header-h) + 40px); }
.preview-header { display: grid; gap: 10px; margin-bottom: 28px; }
.preview-title { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
.preview-subtitle { color: var(--text-2); }
.preview-badge { width: fit-content; height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--warn-a); color: var(--warn); font-size: 12px; font-weight: 700; }
.preview-card { display: grid; gap: 20px; padding: 28px; border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--ink-1); }
.payment-methods-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.method-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); text-align: center; cursor: pointer; transition: border-color 0.25s ease, background 0.25s ease; }
.method-card.active, .method-card:hover { border-color: var(--violet-a35); background: var(--violet-a10); }
.card-preview { aspect-ratio: 1.586; max-width: 380px; padding: 24px; border-radius: 18px; background: linear-gradient(135deg, var(--violet-lo), #1d1340 60%, var(--ink-2)); display: grid; align-content: space-between; box-shadow: var(--shadow-2); }
.card-chip { width: 44px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #e8d48b, #b39645); }
.card-number { font-family: var(--font-mono); font-size: 20px; letter-spacing: 0.12em; direction: ltr; }
.card-details { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: rgba(255, 255, 255, 0.75); }
.card-form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: grid; gap: 8px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.pay-button { height: 54px; border: 0; border-radius: 14px; background: var(--violet); color: #fff; font-weight: 700; font-size: 15px; }
.security-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.security-badge { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.demo-note { padding: 14px 16px; border-radius: var(--r-md); background: var(--warn-a); border: 1px solid rgba(245, 185, 71, 0.25); color: #ffe2a8; font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-container { grid-template-columns: 1fr; }
  .gallery-section { position: static; }
  .related-products-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout-grid, .pay-grid { grid-template-columns: 1fr; }
  .checkout-side, .pay-side { position: static; }
}
@media (max-width: 720px) {
  .product-page { padding-top: calc(var(--header-h) + 24px); }
  .back-link { margin-bottom: 18px; }
  .main-image-container { border-radius: var(--r-lg); }
  .gallery-nav { opacity: 1; width: 38px; height: 38px; }
  .thumbnail { flex-basis: 84px; }
  .product-price-box, .product-features { padding: 18px; }
  .product-info .action-buttons { grid-template-columns: 1fr; position: sticky; bottom: 10px; z-index: 30; padding: 8px; margin-inline: -8px; border-radius: 18px; background: rgba(10, 10, 14, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); }
  .product-info .action-buttons button { height: 50px; }
  .btn-watch-premium { display: none !important; }
  .related-products-section { margin-top: 70px; }
  .related-products-grid { gap: 10px; }
  .checkout-hero { flex-direction: column; }
  .gateway-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 84px 1fr auto; gap: 12px; }
  .cart-item img { width: 84px; }
  .cart-item p { display: none; }
  .checkout-side { padding: 18px; border-radius: var(--r-lg); }
  .license-table thead { display: none; }
  .license-table, .license-table tbody, .license-table tr, .license-table td { display: block; width: 100%; }
  .license-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .license-table td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 0; border: 0; text-align: end; }
  .license-table td::before { content: attr(data-label); font-size: 12px; color: var(--text-3); text-align: start; flex-shrink: 0; }
  .license-table .px-empty-row td::before { display: none; }
  .license-table .px-empty-row td { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .pay-header { flex-direction: column; align-items: flex-start; }
  .result-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* Grid children must be allowed to shrink below their content width on phones */
.product-container > *, .checkout-grid > *, .pay-grid > *, .checkout-main, .checkout-hero > div, .product-info, .gallery-section { min-width: 0; }
@media (max-width: 1080px) {
  .product-container, .checkout-grid, .pay-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .hero-chip span { white-space: normal; height: auto; min-height: 32px; }
}
.gallery-section { grid-template-columns: minmax(0, 1fr); }
.gallery-section > *, .thumbnails-wrapper, .thumbnails { min-width: 0; }
