/* صفحة شحن الذهب — ستايل متجر فخم: ذهب نازل، كروت بتلمع، ملخص ثابت */
.shop-page { background: radial-gradient(1200px 600px at 50% -120px, #4a2410 0%, var(--night) 60%) no-repeat, var(--night); }
.top nav a[aria-current] { color: var(--gold-hi); }
.num { font-family: var(--body); direction: ltr; unicode-bidi: isolate; }

/* ---------- البداية ---------- */
.sh-hero { position: relative; overflow: hidden; text-align: center; padding: clamp(18px, 4vw, 40px) var(--gutter) clamp(28px, 5vw, 56px); }
.sh-hero-in { position: relative; max-width: 760px; margin: 0 auto; }
.sh-hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  background: linear-gradient(180deg, #fff3c4 10%, #f0cd7c 45%, #c98d2c 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.35));
  animation: rise .8s cubic-bezier(.2,.8,.2,1) both .1s;
}
.sh-hero .lede { margin: 12px auto 0; color: var(--sand); animation: rise .8s cubic-bezier(.2,.8,.2,1) both .2s; }
.hero-coins { width: 96px; height: auto; margin: 0 auto 8px; filter: drop-shadow(0 10px 18px rgba(240,180,60,.45)); animation: bob 3.2s ease-in-out infinite, rise .8s both; }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.trust li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .92rem; font-weight: 600;
  background: rgba(240,205,124,.08); box-shadow: inset 0 0 0 1px rgba(240,205,124,.25); color: var(--sand);
  animation: rise .7s cubic-bezier(.2,.8,.2,1) both;
}
.trust li:nth-child(2) { animation-delay: .08s; } .trust li:nth-child(3) { animation-delay: .16s; } .trust li:nth-child(4) { animation-delay: .24s; }
.trust li.hot { background: linear-gradient(90deg, #a3291f, #d9502f); color: #fff; box-shadow: 0 6px 18px rgba(163,41,31,.45); animation: rise .7s both .24s, pulse 2.2s ease-in-out infinite 1s; }

/* ذهب نازل */
.rain { position: absolute; inset: 0; pointer-events: none; }
.rain i {
  position: absolute; top: -40px; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c8 0 18%, #f2c14e 40%, #b57d1e 100%);
  box-shadow: inset 0 0 0 2px rgba(122,84,24,.55), 0 0 10px rgba(255,210,90,.35);
  animation: fall 6s linear infinite; opacity: .85;
}
.rain i:nth-child(1) { left: 4%; animation-delay: 0s; animation-duration: 7s; }
.rain i:nth-child(2) { left: 11%; animation-delay: 2.1s; transform: scale(.7); }
.rain i:nth-child(3) { left: 19%; animation-delay: 4.2s; animation-duration: 8s; }
.rain i:nth-child(4) { left: 27%; animation-delay: 1.3s; }
.rain i:nth-child(5) { left: 34%; animation-delay: 3.5s; animation-duration: 6.5s; }
.rain i:nth-child(6) { left: 42%; animation-delay: 5.1s; }
.rain i:nth-child(7) { left: 58%; animation-delay: .7s; animation-duration: 7.5s; }
.rain i:nth-child(8) { left: 65%; animation-delay: 2.8s; }
.rain i:nth-child(9) { left: 72%; animation-delay: 4.6s; animation-duration: 6.2s; }
.rain i:nth-child(10) { left: 79%; animation-delay: 1.8s; }
.rain i:nth-child(11) { left: 86%; animation-delay: 3.9s; animation-duration: 8.5s; }
.rain i:nth-child(12) { left: 93%; animation-delay: .4s; }
.rain i:nth-child(13) { left: 50%; animation-delay: 6s; animation-duration: 9s; }
.rain i:nth-child(14) { left: 97%; animation-delay: 5.5s; }

/* ---------- الصفحة ---------- */
.shop { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 8vw, 96px); }
.buy { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.buy > *, .step, .packs > * { min-width: 0; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.step {
  counter-increment: s; position: relative; margin-bottom: 18px; padding: 22px 22px 22px; padding-inline-start: 76px;
  background: linear-gradient(180deg, rgba(58,32,16,.75), rgba(44,23,12,.75)); border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(240,205,124,.16), 0 14px 30px rgba(0,0,0,.25);
  animation: rise .7s cubic-bezier(.2,.8,.2,1) both;
}
.step:nth-child(2) { animation-delay: .1s; } .step:nth-child(3) { animation-delay: .2s; }
.step::before {
  content: counter(s, arabic-indic); position: absolute; inset-inline-start: 20px; top: 20px;
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  font: 700 1.15rem/1 var(--display); color: var(--ink);
  background: radial-gradient(circle at 35% 30%, #fff1b8, #e3ad46 55%, #a8731d);
  box-shadow: 0 0 0 4px rgba(217,166,70,.15);
}
.steps h2 { font-size: 1.4rem; }
.hint { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.row { display: flex; gap: 10px; margin-top: 14px; }
.row input {
  flex: 1; min-width: 0; font: 600 1.2rem/1 var(--body); padding: 14px 16px; border-radius: 14px;
  background: #1a0c06; color: var(--bone); border: 1.5px solid rgba(234,216,179,.22); text-align: left; transition: border-color .2s, box-shadow .2s;
}
.row input:focus { outline: none; border-color: var(--gold-hi); box-shadow: 0 0 0 4px rgba(240,205,124,.15); }
.btn.ghost { background: transparent; color: var(--gold-hi); box-shadow: inset 0 0 0 1.5px var(--gold); font-size: 1rem; padding: 12px 22px; }
.who { min-height: 1.8em; margin-top: 12px; }
.who .card-ok {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px 8px 18px; border-radius: 14px;
  background: rgba(95,208,104,.1); box-shadow: inset 0 0 0 1px rgba(95,208,104,.45); color: #c9f2cc; animation: pop .45s cubic-bezier(.2,1.4,.4,1) both;
}
.who .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem/1 var(--display); color: var(--ink); background: linear-gradient(#f0cd7c, #c98d2c); }
.who .bad, .err { color: #f08a7e; }
.err { min-height: 1.4em; margin-top: 10px; font-size: .92rem; }

/* ---------- الباقات ---------- */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-top: 18px; }
.pack {
  position: relative; overflow: hidden; text-align: center; cursor: pointer; font: inherit; color: var(--sand);
  background: linear-gradient(180deg, #3a2010, #241208); border: 0; border-radius: 18px; padding: 18px 14px 14px;
  box-shadow: inset 0 0 0 1.5px rgba(240,205,124,.18), 0 10px 22px rgba(0,0,0,.3);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
  animation: rise .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0s);
}
.pack:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1.5px rgba(240,205,124,.55), 0 16px 30px rgba(0,0,0,.4); }
.pack::after { /* لمعة بتمرق */
  content: ""; position: absolute; inset: -40% auto -40% -60%; width: 40%; transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,240,200,.18), transparent); animation: shine 4.5s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.pack[aria-checked="true"] {
  background: linear-gradient(180deg, #5a3212, #3a1d0a);
  box-shadow: inset 0 0 0 2px var(--gold-hi), 0 0 0 4px rgba(240,205,124,.18), 0 18px 34px rgba(0,0,0,.45);
  animation: glow 1.8s ease-in-out infinite;
}
.pack[aria-checked="true"]::before {
  content: "✓"; position: absolute; top: 10px; inset-inline-start: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: #5fd068; color: #0b2a0e; font-weight: 700; font-size: .85rem; animation: pop .35s both;
}
.pile { display: block; position: relative; height: 74px; margin: 6px auto 10px; width: 120px; }
.pile img { position: absolute; width: 50px; height: auto; bottom: 0; left: 50%; filter: drop-shadow(0 6px 8px rgba(0,0,0,.4)); transition: transform .3s; }
.pack:hover .pile img { animation: jiggle .6s ease-in-out; }
.pack .chips { display: block; font: 700 1.55rem/1.15 var(--body); color: var(--bone); direction: ltr; }
.pack .gold-word { display: block; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.pack .plus { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: #b8f0bd; background: rgba(95,208,104,.14); }
.pack .usd {
  display: block; margin-top: 12px; padding: 8px 0; border-radius: 12px; font: 700 1.2rem/1 var(--body); direction: ltr;
  color: var(--ink); background: linear-gradient(#f3cf75, #c58f2e); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 0 #7a5418;
}
.pack { padding-top: 30px; }
.pack .tag {
  position: absolute; z-index: 3; top: 8px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px 12px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; color: #fff; background: var(--madder); box-shadow: 0 2px 6px rgba(0,0,0,.35);
}

/* باقات كبار الشخصيات */
.vip-title { margin-top: 28px; display: flex; align-items: center; gap: 10px; font: 700 1.25rem/1.3 var(--display); color: var(--gold-hi); }
.vip-title em { font-style: normal; font: 700 .85rem/1 var(--body); padding: 5px 10px; border-radius: 999px; color: #fff; background: linear-gradient(90deg, #a3291f, #e0612f); animation: pulse 2s ease-in-out infinite; }
.vip-title[hidden] { display: none; }
.packs.vip { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.packs.vip:empty { display: none; }
.pack.big {
  padding: 36px 20px 18px;
  background: linear-gradient(135deg, #2a1206 0%, #5a2e0e 45%, #2a1206 100%);
}
.pack.big .ring { /* إطار ذهبي بيدور */
  position: absolute; inset: 0; border-radius: 18px; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), #f7d98a, #8a5a1e, #fff1c0, #8a5a1e, #f7d98a);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 4s linear infinite;
}
.pack.big .pile { width: 160px; height: 100px; }
.pack.big .pile img { width: 58px; }
.pack.big .crown { position: absolute; top: 6px; inset-inline-start: 14px; font-size: 1.6rem; animation: bob 2.4s ease-in-out infinite; }
.pack.big .chips { font-size: 2.1rem; }
.pack.big .plus { background: linear-gradient(90deg, #a3291f, #e0612f); color: #fff; font-size: .9rem; }
.pack.big .usd { font-size: 1.4rem; }
.pack.big .tag { background: linear-gradient(90deg, #c98d2c, #f3cf75); color: var(--ink); font-size: .85rem; }
.pack.big[aria-checked="true"]::before { inset-inline-start: auto; inset-inline-end: 12px; top: 10px; }

/* ---------- ملخص الطلب ---------- */
.summary { position: sticky; top: 18px; }
.sum-card {
  padding: 22px; border-radius: 22px; text-align: center;
  background: linear-gradient(180deg, #4a2610, #2a1408);
  box-shadow: inset 0 0 0 1.5px rgba(240,205,124,.35), 0 20px 40px rgba(0,0,0,.4);
}
.sum-label { color: var(--muted); font-size: .92rem; }
.sum-total { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; }
.sum-total img { width: 36px; height: auto; animation: bob 2.6s ease-in-out infinite; }
.sum-total b { font: 700 2.1rem/1.1 var(--body); color: var(--gold-hi); text-shadow: 0 0 18px rgba(240,205,124,.35); }
.sum-total.bump b { animation: pop .4s cubic-bezier(.2,1.4,.4,1); }
.sum-line { margin-top: 6px; font-size: .9rem; color: var(--sand); min-height: 1.4em; }
.sum-who { margin-top: 2px; font-size: .88rem; color: #8fdc8f; min-height: 1.3em; }
.pay { width: 100%; justify-content: center; margin-top: 16px; font-size: 1.08rem; padding: 15px 18px; gap: 12px; border: 0; cursor: pointer; font-family: var(--body); position: relative; overflow: hidden; }
.pay b { font-weight: 700; }
.pay:not(:disabled) { animation: glow 1.8s ease-in-out infinite; }
.pay:not(:disabled)::after { content: ""; position: absolute; inset: -50% auto -50% -40%; width: 30%; transform: rotate(18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shine 2.6s ease-in-out infinite; }
.pay:disabled { filter: grayscale(.8) brightness(.7); cursor: not-allowed; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: .95rem; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin-top: 5px; accent-color: var(--gold); flex: none; }

/* ---------- حالة الطلب ---------- */
.status { max-width: 640px; margin: 0 auto 32px; padding: 28px; border-radius: 22px; text-align: center; background: linear-gradient(180deg, #3a2010, #241208); box-shadow: inset 0 0 0 1px rgba(240,205,124,.25); animation: rise .6s both; }
.status h2 { font-size: 1.7rem; margin-top: 10px; }
.status p { margin-top: 8px; }
.st-icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; border: 4px solid rgba(240,205,124,.25); border-top-color: var(--gold-hi); animation: spin 1s linear infinite; }
.status.done { box-shadow: inset 0 0 0 2px #5fd068, 0 0 40px rgba(95,208,104,.2); }
.status.done .st-icon { animation: pop .5s both; border: 0; background: #5fd068 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230b2a0e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/60% no-repeat; }
.status.stop .st-icon { animation: none; border-color: rgba(240,138,126,.6); }

.notes { margin-top: 30px; padding: 22px; border-radius: 18px; background: rgba(44,23,12,.6); box-shadow: inset 0 0 0 1px rgba(240,205,124,.12); }
.notes h2 { font-size: 1.25rem; }
.notes ul { padding-inline-start: 1.2em; margin: 10px 0 0; color: var(--muted); }
.notes li { margin-top: 6px; }

/* ---------- الموبايل: الملخص شريط تحت ---------- */
@media (max-width: 900px) {
  .buy { grid-template-columns: minmax(0, 1fr); }
  .summary { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; top: auto; padding: 0 10px calc(10px + env(safe-area-inset-bottom)); }
  .sum-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 12px 14px; border-radius: 18px; text-align: start; }
  .sum-label, .sum-who, .sum-line { grid-column: 1; margin: 0; }
  .sum-label { display: none; }
  .sum-total { grid-column: 1; justify-content: flex-start; margin: 0; }
  .sum-total img { width: 26px; }
  .sum-total b { font-size: 1.4rem; }
  .pay { grid-column: 2; grid-row: 1 / span 3; margin: 0; width: auto; padding: 12px 16px; font-size: .95rem; flex-direction: column; gap: 2px; }
  .err { grid-column: 1 / -1; margin: 0; min-height: 0; }
  .shop { padding-bottom: 140px; }
  .step { padding: 18px 16px; padding-top: 70px; }
  .step::before { top: 16px; inset-inline-start: 16px; }
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .packs.vip { grid-template-columns: 1fr; }
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes fall { 0% { transform: translateY(-40px) rotateY(0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translateY(520px) rotateY(720deg); opacity: 0; } }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes glow { 50% { box-shadow: inset 0 0 0 2px var(--gold-hi), 0 0 0 6px rgba(240,205,124,.28), 0 0 34px rgba(240,190,80,.35); } }
@keyframes pulse { 50% { transform: scale(1.06); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes jiggle { 25% { transform: translateY(-6px) rotate(-6deg); } 75% { transform: translateY(-3px) rotate(5deg); } }
@keyframes spin { to { --a: 360deg; transform: rotate(360deg); } }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.pack.big .ring { animation-name: ring; }
@keyframes ring { to { --a: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rain { display: none; }
}
