/**
 * فاکتور/رسید «برنده شو» — همان طرح فایل پیوست، ولی به‌صورت کامپوننت قابل
 * استفاده در دو جا:
 *   ۱) صفحه «پرداخت موفق» ووکامرس (تمام‌صفحه، با انیمیشن و کانفتی)
 *   ۲) مودال «مشاهده فاکتور» داخل پروفایل کاربر (فشرده‌تر، بدون هیرو)
 */

.wsho-wrap {
	--gold: #ffbd17;
	--gold2: #ffe38a;
	--ink: #07113e;
	--muted: #c6cdea;
	position: relative;
	overflow: hidden;
	padding: 46px 18px 34px;
	background: radial-gradient(circle at 20% 0%, rgba(255,189,23,.18), transparent 28%),
	            linear-gradient(155deg, #050b2d 0%, #07113e 48%, #0b174d 100%);
	color: #fff;
	isolation: isolate;
	box-sizing: border-box;
	direction: rtl;
}
.wsho-wrap * { box-sizing: border-box; }
.wsho-wrap.is-fullpage { min-height: 100vh; }

.wsho-wrap:before {
	content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
	                  linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
	background-size: 34px 34px;
	-webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
	mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
	z-index: -2;
}

.wsho-wrap .orb { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .55; z-index: -1; animation: wshoFloatOrb 8s ease-in-out infinite; }
.wsho-wrap .orb1 { width: 260px; height: 260px; background: rgba(255,190,20,.18); top: -90px; right: -55px; }
.wsho-wrap .orb2 { width: 220px; height: 220px; background: rgba(85,117,255,.18); left: -70px; top: 34%; animation-delay: -2s; }
.wsho-wrap .orb3 { width: 180px; height: 180px; background: rgba(255,255,255,.08); right: 14%; bottom: -80px; animation-delay: -4s; }

/* ===== هیرو موفقیت ===== */
.wsho-wrap .success-hero { position: relative; width: 190px; height: 190px; margin: 0 auto 18px; display: grid; place-items: center; }
.wsho-wrap .ring { position: absolute; border: 1px dashed rgba(255,220,125,.32); border-radius: 50%; animation: wshoSpin 9s linear infinite; }
.wsho-wrap .r1 { width: 174px; height: 174px; }
.wsho-wrap .r2 { width: 144px; height: 144px; animation-direction: reverse; animation-duration: 7s; }
.wsho-wrap .glow { position: absolute; width: 126px; height: 126px; border-radius: 50%; background: radial-gradient(circle, rgba(255,189,23,.7), rgba(255,189,23,.12) 55%, transparent 72%); filter: blur(7px); animation: wshoPulse 2s ease-in-out infinite; }
.wsho-wrap .check {
	position: relative; width: 112px; height: 112px; border-radius: 50%;
	display: grid; place-items: center;
	background: linear-gradient(145deg, #ffd55e, #ffad00);
	box-shadow: 0 18px 45px rgba(255,180,0,.35), inset 0 2px 0 rgba(255,255,255,.65);
	animation: wshoPop .85s cubic-bezier(.2,.85,.25,1.35) both;
}
.wsho-wrap .check:before { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); }
.wsho-wrap .check svg { width: 78px; height: 78px; }
.wsho-wrap .circle { fill: none; stroke: rgba(255,255,255,.32); stroke-width: 3; }
.wsho-wrap .path { fill: none; stroke: #07113e; stroke-linecap: round; stroke-linejoin: round; stroke-width: 10; stroke-dasharray: 90; stroke-dashoffset: 90; animation: wshoDraw .9s .45s ease forwards; }

.wsho-wrap .intro { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.wsho-wrap .badge { display: inline-flex; padding: 7px 14px; border-radius: 999px; background: rgba(255,189,23,.13); border: 1px solid rgba(255,205,65,.3); color: #ffe394; font-size: 13px; margin-bottom: 12px; }
.wsho-wrap .badge.is-pending { background: rgba(120,140,255,.14); border-color: rgba(140,160,255,.32); color: #cfd8ff; }
.wsho-wrap .intro h1 { margin: 0; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.45; font-weight: 900; color: #fff; }
.wsho-wrap .intro p { margin: 12px auto 0; max-width: 610px; color: var(--muted); font-size: 15px; line-height: 2; }

/* ===== کارت فاکتور ===== */
.wsho-wrap .invoice {
	position: relative; max-width: 820px; margin: 0 auto; padding: 28px;
	border: 1px solid rgba(255,255,255,.12); border-radius: 26px;
	background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.045));
	-webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
	box-shadow: 0 24px 60px rgba(0,0,0,.28); overflow: hidden;
}
.wsho-wrap .shine { position: absolute; inset: -100% auto auto -30%; width: 30%; height: 300%; transform: rotate(20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent); animation: wshoSweep 5.5s ease-in-out infinite; }
.wsho-wrap .head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.wsho-wrap .eyebrow { color: #ffd870; font-size: 12px; }
.wsho-wrap .head h2 { font-size: 26px; margin: 6px 0 0; color: #fff; }
.wsho-wrap .meta { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 10px; }
.wsho-wrap .meta div,
.wsho-wrap .customer > div { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.08); }
.wsho-wrap .meta span,
.wsho-wrap .customer span { display: block; color: #aeb8dd; font-size: 12px; margin-bottom: 6px; }
.wsho-wrap .meta strong, .wsho-wrap .customer strong { color: #fff; }
.wsho-wrap .divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.17), transparent); margin: 24px 0; }

.wsho-wrap .customer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.wsho-wrap .customer-grid .customer-info {
	min-height: 92px; display: flex; flex-direction: column; justify-content: center;
	padding: 17px 18px; border-radius: 18px;
	background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(3,10,42,.32));
	border: 1px solid rgba(255,255,255,.09);
}
.wsho-wrap .customer-grid .customer-info strong { font-size: 16px; color: #fff; }

/* ===== وضعیت پرداخت متحرک ===== */
.wsho-wrap .payment-status {
	grid-column: 1/-1; direction: ltr; display: flex; width: 100%; height: 110px;
	position: relative; overflow: hidden; border-radius: 18px;
	background: linear-gradient(135deg, #fff, #f2f5ff);
	box-shadow: 0 16px 34px rgba(0,0,0,.18);
	transition: transform .35s ease, box-shadow .35s ease;
}
.wsho-wrap .payment-status:hover { transform: translateY(-3px); box-shadow: 0 22px 42px rgba(0,0,0,.24); }
.wsho-wrap .payment-left { position: relative; width: 128px; min-width: 128px; height: 110px; display: flex; justify-content: center; align-items: center; overflow: hidden; cursor: pointer; background: linear-gradient(145deg, #ffd55f, #ffb000); transition: width .38s ease; }
.wsho-wrap .payment-status:hover .payment-left { width: 170px; }
.wsho-wrap .payment-right { direction: rtl; flex: 1; display: flex; align-items: center; justify-content: space-between; overflow: hidden; padding: 0 22px; color: #07113e; white-space: nowrap; }
.wsho-wrap .payment-new { font-size: 20px; font-weight: 900; color: #8DFFC3; text-shadow: 0 0 10px rgba(141,255,195,.42), 0 0 24px rgba(141,255,195,.18); }
.wsho-wrap .payment-new.is-pending { color: #7d86aa; text-shadow: none; }
.wsho-wrap .pay-arrow { width: 19px; height: 19px; color: #7d86aa; transform: rotate(180deg); }
.wsho-wrap .pay-card { width: 70px; height: 46px; position: absolute; z-index: 10; display: flex; flex-direction: column; align-items: center; border-radius: 7px; background: linear-gradient(145deg, #fff4bd, #ffe071); box-shadow: 9px 9px 14px -5px rgba(85,58,0,.35); }
.wsho-wrap .pay-card-line { width: 64px; height: 12px; margin-top: 7px; border-radius: 2px; background: #07113e; }
.wsho-wrap .pay-buttons { width: 8px; height: 8px; margin: 10px 0 0 -30px; border-radius: 50%; background: #d69d00; box-shadow: 0 -10px 0 #ffcf36, 0 10px 0 #a47500; transform: rotate(90deg); }
.wsho-wrap .pay-post { width: 63px; height: 75px; position: absolute; z-index: 11; top: 110px; border-radius: 7px; overflow: hidden; background: #e2e4eb; }
.wsho-wrap .pay-post-line { width: 47px; height: 9px; position: absolute; right: 8px; top: 8px; border-radius: 0 0 3px 3px; background: #51546a; }
.wsho-wrap .pay-post-line:before { content: ""; position: absolute; width: 47px; height: 9px; top: -8px; background: #777b91; }
.wsho-wrap .pay-screen { width: 47px; height: 23px; position: absolute; top: 22px; right: 8px; border-radius: 3px; background: #fff; }
.wsho-wrap .pay-check { position: absolute; inset: 0; display: grid; place-items: center; color: #1c9b5d; font-size: 17px; font-weight: 900; }
.wsho-wrap .pay-numbers, .wsho-wrap .pay-numbers-line2 { width: 12px; height: 12px; position: absolute; left: 25px; border-radius: 2px; transform: rotate(90deg); }
.wsho-wrap .pay-numbers { top: 52px; background: #83869a; box-shadow: 0 -18px 0 #83869a, 0 18px 0 #83869a; }
.wsho-wrap .pay-numbers-line2 { top: 68px; background: #b0b3c1; box-shadow: 0 -18px 0 #b0b3c1, 0 18px 0 #b0b3c1; }
.wsho-wrap .payment-status:hover .pay-card { animation: wshoPaySlideTop 1.2s cubic-bezier(.645,.045,.355,1) both; }
.wsho-wrap .payment-status:hover .pay-post { animation: wshoPaySlidePost 1s cubic-bezier(.165,.84,.44,1) both; }
.wsho-wrap .payment-status:hover .pay-check { animation: wshoPayFade .3s 1s backwards; }

/* ===== اقلام سفارش ===== */
.wsho-wrap .item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 17px; margin-top: 18px; border-radius: 18px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.07); }
.wsho-wrap .item-info strong { display: block; margin-bottom: 6px; font-size: 16px; color: #ffe18e; }
.wsho-wrap .item-info span { color: #abb6db; font-size: 12px; line-height: 1.8; }
.wsho-wrap .price { font-size: 16px; white-space: nowrap; color: #fff; font-weight: 700; }
.wsho-wrap .price .cur { font-size: 11px; color: #bac3e2; margin-inline-start: 4px; font-weight: 500; }
.wsho-wrap .prices { margin-top: 20px; padding-top: 16px; border-top: 1px dashed rgba(255,255,255,.16); }
.wsho-wrap .prices > div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; color: #d4d9ef; }
.wsho-wrap .prices strong { color: #fff; white-space: nowrap; }
.wsho-wrap .total { margin-top: 8px; padding: 16px 18px !important; border-radius: 18px; background: linear-gradient(90deg, rgba(255,189,23,.16), rgba(255,189,23,.06)); border: 1px solid rgba(255,205,80,.22); }
.wsho-wrap .total span, .wsho-wrap .total strong { color: #ffe18e; }
.wsho-wrap .total strong { font-size: 21px; }

/* ===== آیکن پوشه دوره ===== */
.wsho-wrap .folder {
	--folder-back-1: #f7c14b; --folder-back-2: #e9a52f;
	--folder-front-1: #ffd970; --folder-front-2: #fbc548;
	--folder-edge: #d68f23; --paper: #fdfdfb; --paper-2: #f1f0ea;
	--ring: #ffe38a; --radius: .875em; --ease: cubic-bezier(.22,.61,.36,1);
	position: relative; display: inline-block; width: 54px; min-width: 54px;
	font-size: 16px; color: #2a2520; cursor: pointer; user-select: none;
	filter: drop-shadow(0 10px 14px rgba(255,184,0,.22));
}
.wsho-wrap .folder__toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.wsho-wrap .folder__shape { position: relative; display: block; width: 100%; aspect-ratio: 5/4; transition: transform .45s var(--ease); }
.wsho-wrap .folder__back { position: absolute; inset: 14% 0 0; background: linear-gradient(135deg, var(--folder-back-1), var(--folder-back-2)); border-radius: .25em var(--radius) var(--radius) var(--radius); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.wsho-wrap .folder__back:before { content: ""; position: absolute; top: -13%; left: 0; width: 46%; height: 16%; background: linear-gradient(135deg, var(--folder-back-1), var(--folder-back-2)); border-radius: .375em .375em 0 0; clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%); }
.wsho-wrap .folder__papers { position: absolute; inset: 6% 8% 12%; z-index: 2; display: block; }
.wsho-wrap .folder .paper { position: absolute; left: 50%; bottom: 0; width: 86%; height: 78%; translate: -50% 0; background: var(--paper); border-radius: .375em; box-shadow: 0 .25em .875em rgba(60,40,10,.12); transition: transform .45s var(--ease), bottom .45s var(--ease); overflow: hidden; }
.wsho-wrap .folder .paper:before, .wsho-wrap .folder .paper:after { content: ""; position: absolute; left: 14%; right: 24%; height: 6%; border-radius: .2em; background: var(--paper-2); }
.wsho-wrap .folder .paper:before { top: 22%; }
.wsho-wrap .folder .paper:after { top: 40%; right: 40%; }
.wsho-wrap .folder .paper--1 { width: 78%; height: 70%; background: #f6f4ee; }
.wsho-wrap .folder .paper--2 { width: 82%; height: 74%; background: #fbfaf6; }
.wsho-wrap .folder .paper--3 { width: 86%; }
.wsho-wrap .folder__front { position: absolute; inset: 38% 0 0; z-index: 3; background: linear-gradient(150deg, var(--folder-front-1), var(--folder-front-2)); border-radius: var(--radius); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 -1px 0 var(--folder-edge), 0 .875em 1.375em -.75em rgba(120,80,10,.35); transform-origin: bottom center; transition: transform .45s var(--ease); }
.wsho-wrap .folder__front:after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); background: linear-gradient(120deg, rgba(255,255,255,.35), transparent 45%); pointer-events: none; }
@media (hover: hover) {
	.wsho-wrap .folder:hover .folder__shape { transform: translateY(-.22em); }
	.wsho-wrap .folder:hover .folder__front { transform: rotateX(-32deg); }
	.wsho-wrap .folder:hover .paper { transform: translateY(-26%); }
	.wsho-wrap .folder:hover .paper--1 { transform: translate(-26%, -18%) rotate(-7deg); }
	.wsho-wrap .folder:hover .paper--2 { transform: translate(22%, -22%) rotate(6deg); }
}
.wsho-wrap .folder:active .folder__shape { transform: translateY(-.1em) scale(.99); }
.wsho-wrap .folder__toggle:checked ~ .folder__shape { transform: translateY(-.22em); }
.wsho-wrap .folder__toggle:checked ~ .folder__shape .folder__front { transform: rotateX(-32deg); }
.wsho-wrap .folder__toggle:checked ~ .folder__shape .paper { transform: translateY(-26%); }
.wsho-wrap .folder__toggle:checked ~ .folder__shape .paper--1 { transform: translate(-26%, -18%) rotate(-7deg); }
.wsho-wrap .folder__toggle:checked ~ .folder__shape .paper--2 { transform: translate(22%, -22%) rotate(6deg); }
.wsho-wrap .folder__toggle:focus-visible ~ .folder__shape .folder__back { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: var(--radius); }

/* ===== بلیط قرعه‌کشی ===== */
.wsho-wrap .ticket-zone { position: relative; max-width: 790px; margin: 28px auto 0; padding: 8px; }
.wsho-wrap .ticket-zone:before { content: ""; position: absolute; inset: 20% 8%; background: rgba(255,189,23,.24); filter: blur(45px); z-index: -1; animation: wshoTicketPulse 2.8s ease-in-out infinite; }
.wsho-wrap .ticket { position: relative; display: grid; grid-template-columns: 1fr 165px; min-height: 190px; border-radius: 26px; overflow: hidden; color: #07113e; background: linear-gradient(120deg, #ffe595 0%, #ffc729 50%, #ffb000 100%); box-shadow: 0 24px 60px rgba(255,174,0,.24); transition: transform .25s ease; }
.wsho-wrap .ticket:before, .wsho-wrap .ticket:after { content: ""; position: absolute; top: 50%; width: 34px; height: 34px; border-radius: 50%; background: #07113e; z-index: 4; }
.wsho-wrap .ticket:before { right: -17px; }
.wsho-wrap .ticket:after { left: -17px; }
.wsho-wrap .ticket-main { position: relative; padding: 24px 28px; display: grid; grid-template-columns: 1fr auto; gap: 25px; align-items: center; overflow: hidden; }
.wsho-wrap .ticket-main:before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(7,17,62,.12) 1px, transparent 1px); background-size: 14px 14px; opacity: .6; }
.wsho-wrap .ticket-copy, .wsho-wrap .counter { position: relative; z-index: 1; }
.wsho-wrap .ticket-label { display: inline-flex; padding: 6px 11px; border-radius: 999px; background: rgba(7,17,62,.1); font-size: 11px; font-weight: 700; }
.wsho-wrap .ticket-copy h2 { margin: 12px 0 7px; font-size: clamp(22px, 4vw, 34px); color: #07113e; }
.wsho-wrap .ticket-copy p { margin: 0; max-width: 480px; font-size: 13px; line-height: 1.9; color: rgba(7,17,62,.72); }
.wsho-wrap .ticket-draws { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.wsho-wrap .ticket-draws li { font-size: 11.5px; font-weight: 700; background: rgba(7,17,62,.1); border-radius: 999px; padding: 5px 11px; }
.wsho-wrap .counter { min-width: 120px; text-align: center; padding: 15px; border-radius: 22px; background: rgba(7,17,62,.92); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 15px 28px rgba(7,17,62,.22); animation: wshoCounterFloat 2.7s ease-in-out infinite; }
.wsho-wrap .counter span, .wsho-wrap .counter small { display: block; color: #d8def7; font-size: 11px; }
.wsho-wrap .counter strong { display: block; font-size: 48px; line-height: 1.05; margin: 6px 0; color: #ffd552; text-shadow: 0 0 20px rgba(255,190,0,.35); }
.wsho-wrap .seam { position: absolute; top: 0; bottom: 0; left: 165px; width: 1px; border-left: 2px dashed rgba(7,17,62,.35); z-index: 3; }
.wsho-wrap .stub { position: relative; padding: 20px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(255,255,255,.17); }
.wsho-wrap .stub > span { font-size: 11px; letter-spacing: 2px; opacity: .65; }
.wsho-wrap .stub > strong { font-size: 18px; margin: 7px 0 14px; direction: ltr; }
.wsho-wrap .barcode { width: 90px; height: 54px; background: repeating-linear-gradient(90deg, #07113e 0 2px, transparent 2px 5px, #07113e 5px 6px, transparent 6px 9px); opacity: .85; }
.wsho-wrap .stub small { margin-top: 10px; font-size: 8px; letter-spacing: 1px; opacity: .6; }

/* ===== جوایز ===== */
.wsho-wrap .prize-zone { max-width: 820px; margin: 24px auto 0; padding: 20px 24px; border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.12); }
.wsho-wrap .prize-zone h3 { margin: 0 0 12px; font-size: 17px; color: #ffe18e; }
.wsho-wrap .prize-zone ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.wsho-wrap .prize-zone li { padding: 11px 14px; border-radius: 14px; background: rgba(3,10,42,.3); border: 1px solid rgba(255,255,255,.07); font-size: 13.5px; color: #eef1ff; }
.wsho-wrap .prize-zone li em { font-style: normal; color: #aeb8dd; font-size: 12px; }

/* ===== دکمه‌ها ===== */
.wsho-wrap .actions { max-width: 820px; margin: 28px auto 0; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.wsho-wrap .actions a, .wsho-wrap .actions button { min-height: 52px; padding: 0 22px; border: 0; border-radius: 16px; text-decoration: none; font-family: inherit; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: .25s; }
.wsho-wrap .actions a:hover, .wsho-wrap .actions button:hover { transform: translateY(-3px); }
.wsho-wrap .primary { position: relative; overflow: hidden; gap: 14px; background: linear-gradient(135deg, #ffd861, #ffb000); color: #07113e; box-shadow: 0 13px 28px rgba(255,177,0,.24); animation: wshoCoursePulse 2.2s ease-in-out infinite; }
.wsho-wrap .primary:before { content: ""; position: absolute; inset: -50% auto -50% -35%; width: 24%; transform: rotate(18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent); animation: wshoButtonShine 2.6s ease-in-out infinite; }
.wsho-wrap .download { background: linear-gradient(135deg, #ffffff, #dfe6ff); color: #07113e; border: 1px solid rgba(255,255,255,.55); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.wsho-wrap .secondary { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.12); }
.wsho-wrap .ending { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 25px; color: #d5dbf1; text-align: center; }
.wsho-wrap .ending p { margin: 0; }
.wsho-wrap .spark { color: #ffd14c; animation: wshoBlink 1.4s ease-in-out infinite alternate; }

.wsho-wrap .confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 10; }
.wsho-wrap .piece { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; opacity: .9; animation: wshoFall linear forwards; }

/* ===== انیمیشن‌ها ===== */
@keyframes wshoPop { 0% { transform: scale(.2) rotate(-25deg); opacity: 0; } 70% { transform: scale(1.12) rotate(4deg); } 100% { transform: scale(1); } }
@keyframes wshoDraw { to { stroke-dashoffset: 0; } }
@keyframes wshoSpin { to { transform: rotate(360deg); } }
@keyframes wshoPulse { 50% { transform: scale(1.13); opacity: .68; } }
@keyframes wshoFloatOrb { 50% { transform: translateY(18px) translateX(-8px) scale(1.06); } }
@keyframes wshoSweep { 0%, 20% { transform: translateX(-220%) rotate(20deg); } 55%, 100% { transform: translateX(550%) rotate(20deg); } }
@keyframes wshoTicketPulse { 50% { opacity: .55; transform: scale(1.04); } }
@keyframes wshoCounterFloat { 50% { transform: translateY(-7px) rotate(-1deg); } }
@keyframes wshoBlink { to { opacity: .35; transform: scale(.8); } }
@keyframes wshoCoursePulse { 50% { transform: translateY(-3px) scale(1.025); box-shadow: 0 18px 34px rgba(255,177,0,.34); } }
@keyframes wshoButtonShine { 0%, 25% { left: -35%; } 70%, 100% { left: 125%; } }
@keyframes wshoFall { to { transform: translate3d(var(--x), 1100px, 0) rotate(720deg); opacity: 0; } }
@keyframes wshoPaySlideTop { 0% { transform: translateY(0); } 50%, 60% { transform: translateY(-70px) rotate(90deg); } 100% { transform: translateY(-8px) rotate(90deg); } }
@keyframes wshoPaySlidePost { 50% { transform: translateY(0); } 100% { transform: translateY(-70px); } }
@keyframes wshoPayFade { 0% { opacity: 0; transform: translateY(-5px); } 100% { opacity: 1; transform: translateY(0); } }

/* ===== ریسپانسیو ===== */
@media (max-width: 760px) {
	.wsho-wrap { padding: 32px 12px 26px; }
	.wsho-wrap .invoice { padding: 20px; }
	.wsho-wrap .head { display: block; }
	.wsho-wrap .meta { margin-top: 16px; grid-template-columns: 1fr 1fr; }
	.wsho-wrap .customer-grid { grid-template-columns: 1fr; }
	.wsho-wrap .payment-status { grid-column: auto; }
	.wsho-wrap .item { grid-template-columns: auto 1fr; }
	.wsho-wrap .price { grid-column: 2; }
	.wsho-wrap .ticket { grid-template-columns: 1fr; }
	.wsho-wrap .ticket-main { grid-template-columns: 1fr; padding: 26px 22px; }
	.wsho-wrap .counter { width: 100%; }
	.wsho-wrap .seam { display: none; }
	.wsho-wrap .stub { min-height: 130px; border-top: 2px dashed rgba(7,17,62,.35); }
	.wsho-wrap .ticket:before, .wsho-wrap .ticket:after { top: calc(100% - 130px); }
}
@media (max-width: 480px) {
	.wsho-wrap .success-hero { width: 160px; height: 160px; }
	.wsho-wrap .r1 { width: 150px; height: 150px; }
	.wsho-wrap .r2 { width: 126px; height: 126px; }
	.wsho-wrap .check { width: 98px; height: 98px; }
	.wsho-wrap .intro h1 { font-size: 25px; }
	.wsho-wrap .meta { grid-template-columns: 1fr; }
	.wsho-wrap .payment-status { height: 96px; }
	.wsho-wrap .payment-left { width: 104px; min-width: 104px; height: 96px; transform: scale(.88); transform-origin: left center; }
	.wsho-wrap .payment-status:hover .payment-left { width: 122px; }
	.wsho-wrap .payment-right { padding: 0 14px; }
	.wsho-wrap .payment-new { font-size: 17px; }
	.wsho-wrap .actions { display: grid; grid-template-columns: 1fr; }
	.wsho-wrap .actions a, .wsho-wrap .actions button { width: 100%; }
}

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

/* ===== حالت داخل مودال پروفایل (فشرده) ===== */
.clw-invoice-modal-content .wsho-wrap { min-height: 0; padding: 22px 14px; border-radius: 14px; }
.clw-invoice-modal-content .wsho-wrap .success-hero,
.clw-invoice-modal-content .wsho-wrap .confetti,
.clw-invoice-modal-content .wsho-wrap .actions { display: none; }
.clw-invoice-modal-content .wsho-wrap .intro { margin-bottom: 18px; }
.clw-invoice-modal-content .wsho-wrap .intro h1 { font-size: 21px; }

/* ===== چاپ / ذخیره PDF ===== */
@media print {
	body { background: #fff; }
	.wsho-wrap { min-height: auto; background: #07113e; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.wsho-wrap .actions, .wsho-wrap .confetti, .wsho-wrap .orb { display: none !important; }
}

/* صفحه «پرداخت موفق»: عناصر پیش‌فرض ووکامرس پنهان می‌شوند تا طرح یکدست بماند */
body.clw-thankyou .woocommerce-order > .woocommerce-notice,
body.clw-thankyou .woocommerce-order-overview,
body.clw-thankyou .woocommerce-thankyou-order-received,
body.clw-thankyou .woocommerce-thankyou-order-details { display: none !important; }
body.clw-thankyou .woocommerce-order { max-width: none; }
