html, body, *, .rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl h5, .rtl h6 { font-family: 'YekanBakh', 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, "Font Awesome 6 Free", 'dashicons' !important; }
/* Bajet Journey - Scoped Styles */
.bj-wrap { position: relative; min-height: 100vh; overflow: hidden; font-family: 'YekanBakh', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.bj-wrap { background: linear-gradient(-30deg, #01071c 0%, #00132b 27%, #120035 56%, #1F0732 81%, #1F072D 100%) fixed; }
/* Starfield layers */
.bj-stars-layer, .bj-stars-layer::before, .bj-stars-layer::after {
  position: absolute; inset: 0; content: ""; display: block;
  background-repeat: repeat; background-size: 300px 300px; pointer-events: none;
}
.bj-stars-layer { z-index: 1; opacity: 0.65; }
.bj-stars-layer::before { opacity: 0.8; filter: blur(0.2px); }
.bj-stars-layer::after  { opacity: 0.45; filter: blur(0.6px); }
/* base star sprites created via radial-gradients */
.bj-stars-layer { background-image:
  radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.9) 40%, rgba(255,255,255,0) 41%),
  radial-gradient(1px 1px at 110px 90px, rgba(255,255,255,0.8) 45%, rgba(255,255,255,0) 46%),
  radial-gradient(1.5px 1.5px at 200px 150px, rgba(255,255,255,0.85) 45%, rgba(255,255,255,0) 46%),
  radial-gradient(1px 1px at 260px 10px, rgba(255,255,255,0.8) 45%, rgba(255,255,255,0) 46%),
  radial-gradient(1px 1px at 140px 210px, rgba(255,255,255,0.75) 45%, rgba(255,255,255,0) 46%),
  radial-gradient(1px 1px at 60px 260px, rgba(255,255,255,0.85) 45%, rgba(255,255,255,0) 46%);
}
.bj-stars-layer::before { background-image:
  radial-gradient(1px 1px at 30px 160px, rgba(255,255,255,0.9) 45%, rgba(255,255,255,0) 46%),
  radial-gradient(1.5px 1.5px at 170px 40px, rgba(255,255,255,0.85) 45%, rgba(255,255,255,0) 46%),
  radial-gradient(1px 1px at 250px 120px, rgba(255,255,255,0.9) 45%, rgba(255,255,255,0) 46%),
  radial-gradient(1px 1px at 80px 80px, rgba(255,255,255,0.8) 45%, rgba(255,255,255,0) 46%);
}
.bj-stars-layer::after { background-image:
  radial-gradient(1px 1px at 90px 240px, rgba(255,255,255,0.8) 45%, rgba(255,255,255,0) 46%),
  radial-gradient(1px 1px at 220px 200px, rgba(255,255,255,0.8) 45%, rgba(255,255,255,0) 46%),
  radial-gradient(1px 1px at 10px 120px, rgba(255,255,255,0.85) 45%, rgba(255,255,255,0) 46%);
}
button.bj-promo-link {
  background: transparent;
  border: none !important;
}
.bj-card.bj-center {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
/* subtle parallax motion for starfield */
@keyframes bj-stars-pan-1 { 0% { transform: translateY(0); } 100% { transform: translateY(-300px); } }
@keyframes bj-stars-pan-2 { 0% { transform: translateY(0); } 100% { transform: translateY(-600px); } }
@keyframes bj-stars-pan-3 { 0% { transform: translateY(0); } 100% { transform: translateY(-900px); } }
.bj-stars-layer { animation: bj-stars-pan-1 120s linear infinite; }
.bj-stars-layer::before { animation: bj-stars-pan-2 180s linear infinite; }
.bj-stars-layer::after  { animation: bj-stars-pan-3 240s linear infinite; }
/* twinkle for JS-generated particles */
@keyframes bj-twinkle { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

/* Canvas starfield layer (replaces heavy DOM particles) */
.bj-stars-canvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: block; }

/* Hide scrollbars only on plugin page (blank template) */
::-webkit-scrollbar { width: 0; }

/* Progress bar */
.bj-progress { position: fixed; top: 0; right: 0; width: 4px; height: 100%; z-index: 9999; background: linear-gradient(to bottom, transparent, rgba(59,130,246,0.25), transparent); }
.bj-progress-bar { width: 100%; height: 0%; background: linear-gradient(to bottom, #22d3ee, #3b82f6); transform-origin: top; }

/* Container and grid */
.bj-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 2; }
.bj-grid-2 { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
/* Mobile: show visual first, then text */
.bj-hero .bj-visual { order: 1; }
.bj-hero .bj-text { order: 2; }
@media (min-width: 1024px){
  .bj-grid-2 { grid-template-columns: 1fr 1fr; }
  /* Reset order on desktop natural flow */
  .bj-hero .bj-visual { order: 0; }
  .bj-hero .bj-text { order: 0; }
}

/* Hero */
.bj-hero { min-height: 40vh; display: flex; align-items: center; justify-content: center; padding-top: 24px; padding-bottom: 0; margin-bottom: 120px; }
@media (min-width: 640px){ .bj-hero { margin-bottom: 0; } }
.bj-hero-title { font-weight: 800; color: #fff; line-height: 1.2; font-size: 23px; opacity: 0; transform: translateY(40px); transition: all .9s cubic-bezier(.22,.61,.36,1); }
@media (min-width: 1024px){ .bj-hero-title { font-size: 50px; } }
.bj-gradient-text { display: block; background: linear-gradient(90deg, #22d3ee, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bj-hero-subtitle { text-align: justify; color: #cbd5e1; font-size: 18px; max-width: 640px; margin: 16px auto; opacity: 0; transform: translateY(30px); transition: all .8s .2s cubic-bezier(.22,.61,.36,1); white-space: pre-line; }
.bj-hero-cta { opacity: 0; transform: translateY(20px) scale(.95); transition: all .6s .4s cubic-bezier(.22,.61,.36,1); }
.bj-btn-primary { font-size: 15px; width: 50% !important; position: relative; display: inline-block; padding: 12px 0px; color: #000000; font-weight: 700; border: 0; border-radius: 9999px; background: linear-gradient(45deg, #a2cd00, #b0c651); cursor: pointer; transition: box-shadow .25s ease; }

/* Hero visual */
/* Hero visual card stripped styles per request */
.bj-hero-card { position: relative; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; max-width: 100%; animation: bj-hero-bob 3.6s ease-in-out infinite; will-change: transform; }
/* Ensure hero image scales and stays within viewport */
.bj-hero-image { display: block; max-width: 100%; height: auto; width: 100%; object-fit: contain; }
/* Desktop width cap and float left */
@media (min-width: 1024px){
  .bj-hero-card { max-width: 450px; float: left; }
}
.bj-hero-icons { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; }
.bj-ico { width: 40px; height: 40px; }
.bj-hero-prize { color: #fff; font-size: 28px; font-weight: 800; margin-bottom: 6px; text-align: center; }
.bj-hero-note { color: #cbd5e1; text-align: center; }

/* Road */
.bj-road-container { position: relative; min-height: 520vh; padding: 0; z-index: 2; }
/* Make the SVG fill container without extra gaps; ensure it touches arcs */
.bj-road-svg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; display: block; }
.bj-arc-text { fill: #35768d; font-weight: 700; font-size: 8px; }
.bj-start-arc .bj-arc-text { fill: #fff; }
/* Rope visual replacing the road */
.bj-rope { stroke: url(#bj-ropeGradient); stroke-width: 5.2; opacity: 0.98; vector-effect: non-scaling-stroke; }
.bj-rope-anchor { transform-box: fill-box; transform-origin: center; animation: bj-rope-anchor-pulse 2.2s ease-in-out infinite; }
@keyframes bj-rope-anchor-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.25); opacity: 1; }
}
/* Keep for backward compatibility if road line exists */
.bj-road-line { stroke: url(#bj-roadLines); }

/* Stages */
.bj-stage { position: absolute; z-index: 3; max-width: 640px; margin: 16px; }
.bj-stage-left { left: 8%; right: auto; }
.bj-stage-right { right: 8%; left: auto; }
@media (min-width: 1024px){ .bj-stage-left { left: 15%; } .bj-stage-right { right: 15%; } }

.bj-card { position: relative; background: rgba(255,255,255,0.08); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.2); border-radius: 24px; padding: 32px 10px 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.25); opacity: 0; transform: translateY(60px) scale(.95) rotate(-2deg); transition: transform 1s cubic-bezier(.22,.61,.36,1), opacity 1s; min-width: 250px;
}
.bj-card.is-visible { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
.bj-stage-icon { position: absolute; top: -24px; right: 32px; width: 56px; height: 56px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.bj-stage-icon.big { width: 80px; height: 80px; margin: 0 auto 20px; position: static; }
.bj-grad-blue { background: linear-gradient(90deg, #06b6d4, #2563eb); }
.bj-grad-orange { background: linear-gradient(90deg, #f59e0b, #ea580c); }
.bj-grad-purple { background: linear-gradient(90deg, #a855f7, #ec4899); }
.bj-grad-green { background: linear-gradient(90deg, #22c55e, #10b981); }
.bj-grad-bluepurple { background: linear-gradient(90deg, #3b82f6, #8b5cf6); }
button.bj-btn-primary.bj-phone-submit { background: linear-gradient(45deg, #06B6D4, #2563EB); }
/* Mobile: stack stages to prevent overflow */
@media (max-width: 640px){
  /* Keep stages on the road path by centering horizontally over the road's X (50%) */
  .bj-stage { position: absolute; left: 50%; right: auto; transform: translateX(-50%); max-width: calc(100% - 32px); margin: 0; }
  /* Side classes collapse to center on mobile via .bj-stage rule above */
  .bj-hero-subtitle { font-size: 15px;}
}

.bj-card-title { color: #fff; font-size: 22px; font-weight: 800; margin: 16px 0; }
.bj-card-text { color: #cbd5e1; margin-bottom: 16px; line-height: 1.9; }
.bj-card-sub { color: #94a3b8; margin-bottom: 16px; font-size: 14px; }

.bj-reward { display: flex; align-items: center; justify-content: flex-start; gap: 12px; }
.bj-ico-s { width: 24px; height: 24px; }
.bj-ico-m { width: auto; height: 40px; display: inline-block; transform-origin: center bottom; animation: bj-bounce-up 2s ease-in-out infinite; }
.bj-reward-title { color: #fff; font-weight: 700; }
.bj-reward-sub { color: #94a3b8; font-size: 14px; }
.bj-gap { gap: 16px; }

/* Final */
.bj-final { position: relative; min-height: 0; margin-top: -28vh; margin-bottom: 32px; display: block; }
@media (min-width: 640px){ .bj-final { margin-top: 80px; } }
.bj-center { text-align: center; display: block; }
.bj-final-title { margin: 0; color: #fff; font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.bj-final-sub { color: #fff; font-size: 14px; margin-bottom: 0px; }
.bj-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.bj-badge { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 9999px; background: rgba(255,255,255,0.06); color: #fff; font-weight: 600; }
/* Final simple layout */
.bj-final .bj-card { padding: 20px; border-radius: 16px; background: linear-gradient(90deg, #0b2653, #fff); border: 2px solid #2d6fb7; animation: bj-card-border 4s ease-in-out infinite; margin: 0 auto; display: flex ; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 450px; place-content: space-between; width: fit-content; }
.bj-final-logo { display: block; max-width: 115px; width: auto; height: auto; margin: 0; object-fit: contain; }
/* When a custom final image is uploaded, show it full-width inside the card */
.bj-final-upload { display: block; width: 100%; max-width: 80%; height: auto; margin: 0 auto; object-fit: contain; }
/* Inline layout for title and subtitle next to logo */
.bj-final .bj-final-title { margin: 0; color: #000; font-weight: 500; }
.bj-final .bj-final-sub { margin: 0; }
@media (min-width: 640px){
  .bj-final-title { font-size: 32px; }
  .bj-final-sub { font-size: 16px; }
}
@media (min-width: 1024px){
  .bj-final-title { font-size: 36px; }
  .bj-final-sub { font-size: 18px; }
}

/* Promo */
.bj-promo { position: relative; padding: 0; margin: 0 0 120px; background: transparent; }
.bj-promo-wrap { padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; margin: 0 auto; }
.bj-promo-title { font-weight: 600; font-size: 27px; margin: 0 0 20px; text-align: center; color: #ffffff; }
.bj-promo-image { display: block; width: 100%; max-width: 500px; height: auto; margin: 0 auto; object-fit: contain; box-shadow: none; border: 0; background: transparent; }
.bj-promo-link { display: inline-block; }
@keyframes bj-card-border {
  0% { border-color: #2d6fb7; }
  50% { border-color: #cdd600; }
  100% { border-color: #2d6fb7; }
}

/* Tilt */
.bj-tilt { transform-style: preserve-3d; will-change: transform; }

/* Mobile spacing helper parity */
@media (max-width: 480px){ .bj-hero-section-mobile-mb { margin-bottom: 120px !important; } }

/* Popup modal */
.bj-popup { position: fixed; inset: 0; display: none !important; z-index: 10000; align-items: center; justify-content: center; padding: 16px; }
.bj-popup[aria-hidden="false"] { display: flex !important; }
.bj-popup-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.bj-popup-dialog { position: relative; z-index: 2; max-width: 520px; width: calc(100% - 32px); margin: 0 auto; background: #0b1020; border: 1px solid rgba(255,255,255,0.15); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5); padding: 24px; display: flex; flex-direction: column; max-height: 90dvh; overflow: hidden; transition: transform .35s cubic-bezier(.22,.61,.36,1), opacity .35s ease; will-change: transform; }
.bj-popup-header { display: grid; grid-auto-flow: row; align-items: center; justify-items: center; gap: 8px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 10px; position: relative; }
.bj-popup-handle { width: 48px; height: 4px; background: rgba(255,255,255,0.28); border-radius: 9999px; }
.bj-popup-title { margin-left: auto !important; color: #fff; font-weight: 500; font-size: 18px; margin: 0; text-align: center; }
.bj-popup-close { position: absolute; left: 0; width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); color: #fff; cursor: pointer; display: none; }
.bj-popup-body { color: #cbd5e1; overflow: auto; }
.bj-form-row { margin: 12px 0; position: relative; }
.bj-input { font-size: 14px; margin-bottom: 15px; width: -webkit-fill-available; background: rgba(255,255,255,0.06); color: #fff; border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; padding: 12px 14px; direction: rtl; text-align: right; outline: none; box-shadow: none; }
.bj-input::placeholder { direction: rtl; text-align: right; color: #94a3b8; }
.bj-input:hover, .bj-input:focus, .bj-input:focus-visible { outline: none; box-shadow: none; border-color: rgba(255,255,255,0.2); }
/* Input validation states */
.bj-input.is-valid { border-color: #10b981; background-image: url('../icons/success.svg'); background-repeat: no-repeat; background-position: left 10px center; background-size: 18px 18px; padding-left: 36px; }
.bj-input.is-invalid { border-color: #ef4444; background-image: url('../icons/error.svg'); background-repeat: no-repeat; background-position: left 10px center; background-size: 18px 18px; padding-left: 36px; }
.bj-form-actions { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.bj-btn-secondary { display: inline-block; padding: 10px 18px; border-radius: 9999px; background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.2); cursor: pointer; }
.bj-btn-secondary:hover { background: rgba(255,255,255,0.18); }
.bj-phone-submit.is-loading { opacity: .7; cursor: wait; }
.bj-form-note { font-size: 12px; color: #94a3b8; text-align: center; width: 100%; }
.bj-form-message { font-size: 12px; position: absolute; display: block; top:50px; right: 14px; text-align: right; min-height: 16px; visibility: hidden; }
/* Force-visible state to beat overly-specific or external rules */
.bj-form-message.is-visible { visibility: visible !important; }
/* Phone popup: full-width submit button */
.bj-popup .bj-phone-submit { width: 100% !important; }
.bj-dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Force 2-up layout for download mode on all sizes */
.bj-popup-mode-download .bj-dl-grid { grid-template-columns: 1fr 1fr !important; }
.bj-dl-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0; background: transparent; border: 0; border-radius: 0; color: #fff; cursor: pointer; }
.bj-dl-btn img { max-height: 46px; width: auto; display: block; }
.bj-share { display: grid; gap: 12px; }
.bj-share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bj-share-app { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; text-decoration: none; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #fff; transition: background .2s ease, border-color .2s ease, transform .1s ease; cursor: pointer; }
.bj-share-app:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.24); }
.bj-share-app:active { transform: translateY(1px); }
.bj-share-app .bj-ico { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.bj-share-app svg { width: 100%; height: 100%; display: block; }
.bj-share-note { font-size: 12px; color: #94a3b8; text-align: center; width: 100%; }
.bj-share-actions { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.bj-copy-link { width: 50% !important; padding-left: 0; padding-right: 0; text-align: center; }
/* Copied state: temporary border highlight */
.bj-btn-secondary.is-copied, .bj-copy-link.is-copied { border-color: #236ae9; }

/* Mobile: bottom-sheet popup */
@media (max-width: 640px){
  .bj-popup { padding: 0; align-items: flex-end; }
  .bj-popup-dialog { width: 100vw; max-width: none; border-radius: 16px 16px 0 0; padding: 12px 16px 16px; transform: translateY(100%); opacity: 0.98; max-height: 92dvh; height: auto; }
  .bj-popup[aria-hidden="false"] .bj-popup-dialog { transform: translateY(0); }
  .bj-popup-body { flex: 1 1 auto; min-height: 0; }
  .bj-form-message { font-size: 10px;}
  /* Mobile: show handle, hide close button */
  .bj-popup-handle { display: block; }
  .bj-popup-close { display: none; }
  .bj-popup-title { margin-right: auto !important; }
  .bj-final .bj-card { min-width: 0; }
  .bj-promo-title { font-size: 20px; }
}

/* Desktop popup fixed width */
@media (min-width: 641px){
  .bj-popup-dialog { max-width: 380px; }
  /* Desktop: hide handle, show close button, keep title centered */
  .bj-popup-header { display: flex; align-items: center; justify-content: center; gap: 12px; }
  .bj-popup-handle { display: none; }
  .bj-popup-close { display: inline-block; }
}

/* Reward area button */
.bj-reward-action { margin-right: auto; position: relative; z-index: 0; border-radius: 9999px; border: 2px solid transparent; background-clip: padding-box; }
.bj-reward-action::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; border: 2px solid #2d6fb7; box-sizing: border-box; z-index: 1; background: transparent; animation: bj-card-border 4s ease-in-out infinite; }

/* Custom moving image rotation */
.bj-custom-image { transform: rotate(-90deg) translate(var(--bj-custom-offset-x, 0px), var(--bj-custom-offset-y, 0px)) scale(1.8); transform-box: fill-box; transform-origin: center; will-change: transform; }

/* Footer */
.bj-footer { position: relative; padding: 20px 0 36px; margin-top: 0; }
.bj-footer .bj-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-flow: row-reverse; }
.bj-footer-support { color: #fff; font-size: 14px; line-height: 1.8; background: linear-gradient(45deg, #2567AE, #012F60); border-radius: 12px; padding: 5px 15px; text-align: center; }
.bj-footer-actions { display: flex; align-items: center; gap: 14px; flex-flow: row-reverse; }
.bj-footer-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(45deg, #2567AE, #012F60); color: #000; text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.bj-footer-link .bj-ico { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.bj-footer-link svg { width: 100%; height: 100%; display: block; }
.bj-label { font-size: 14px; }
.bj-only-mobile { display: none; }

/* Mobile: show label next to icon, stretch actions */
@media (max-width: 640px){
  .bj-footer .bj-container { flex-direction: column; align-items: stretch; gap: 12px; }
  .bj-footer-actions { gap: 10px; align-self: center; }
  .bj-footer-link { width: auto; min-height: 44px; height: 44px; padding: 0 12px; justify-content: flex-start; }
  .bj-only-mobile { display: inline; padding-top: 5px; color: #fff; }
  .bj-input { font-size: 12px;}
  .bj-footer-support { margin: auto; width: fit-content; }
}

/* Keyframes */
@keyframes bj-bounce-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}