:root {
  --primary: #486294;
  --secondary: #5D7AC2;
  --bg: #F8FAFC;
  --accent: #6CC4FF;
  --text: #1F2937;
  --surface: rgba(255,255,255,0.85);
  --shadow: 0 24px 80px rgba(72,98,148,.12);
}

body .a158-wizard {
  font-family: "Yekan", Sans-serif;
  color: var(--text);
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(108,196,255,.15), transparent 25%),
              radial-gradient(circle at bottom right, rgba(72,98,148,.08), transparent 20%),
              linear-gradient(180deg, #ffffff 0%, #eef3ff 100%);
  padding: 32px;
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

.a158-wizard,
.a158-wizard * {
  direction: inherit;
  text-align: inherit;
}
button.a158-start {
    float: inline-end;
}
#a158-otp, #a158-mobile {
    text-align: left;
    direction: ltr;
}

.my-download {
  color: #fff !important;
  text-decoration: none;
  font-size: 22px;
  margin-left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.my-download:hover {
  opacity: .8;
}

.elementor-slideshow__header a.my-download,
.elementor-slideshow__header a.my-download:visited,
.elementor-slideshow__header a.my-download:hover {
  color: #fff !important;
}

div[data-elementor-id="344"]{
  display: none;
}
h1.entry-title {
    text-align: center;
    margin: 20px 0 50px 0;
}
main#content {
    padding: 0;
}

.a158-stage {
  max-width: 1200px;
  margin: 0 auto;
}

.a158-stage-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 74vh;
}

.a158-hero-card {
  width: 100%;
  max-width: 760px;
  padding: 50px;
  border-radius: 32px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  text-align: right;
}

.a158-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(76,124,211,.12);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 24px;
}

.a158-hero-card h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.a158-hero-card p {
  margin: 0 0 32px;
  color: #4b5563;
  font-size: 1.05rem;
  max-width: 680px;
  margin-inline: auto;
}

.a158-start,
.a158-button,
a158-loading-button,
a158-loading-button .a158-button {
  appearance: none !important;
  border: none !important;
  outline: none !important;
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: #fff !important;
  border-radius: 18px !important;
  padding: 16px 32px !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 18px 30px rgba(72,98,148,.16) !important;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  min-height: 62px !important;
  min-width: 190px !important;
  line-height: 1.1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  position: relative !important;
  overflow: hidden !important;
  letter-spacing: 0.01em !important;
}

.a158-button:focus,
.a158-button:focus-visible,
.a158-start:focus,
.a158-start:focus-visible {
  outline: none;
  box-shadow: 0 18px 30px rgba(72,98,148,.16);
}

.a158-button .a158-button-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.a158-start:hover,
.a158-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(72,98,148,.2);
}

.a158-button.loading {
  cursor: progress;
  opacity: 1;
  pointer-events: none;
  background: linear-gradient(135deg, #2f4f86 0%, #5f4ca8 100%) !important;
  color: #fff !important;
  border: none !important;
  border-color: transparent !important;
  filter: brightness(0.95);
  box-shadow: 0 22px 36px rgba(72,98,148,.24) !important;
  transform: none !important;
}

.a158-button.loading:hover {
  transform: none !important;
  box-shadow: 0 22px 36px rgba(72,98,148,.24) !important;
}

a158-loading-button,
a158-loading-button .a158-button,
a158-loading-button .a158-button-content {
  appearance: none !important;
  border: none !important;
  outline: none !important;
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: #fff !important;
}

a158-loading-button .a158-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

a158-loading-button .a158-button:focus,
a158-loading-button .a158-button:focus-visible {
  outline: none !important;
  box-shadow: 0 18px 30px rgba(72,98,148,.16) !important;
}

a158-loading-button .a158-button::-moz-focus-inner {
  border: 0 !important;
}

.a158-button-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.28);
  border-top-color: #fff;
  border-right-color: #fff;
  box-sizing: border-box;
  animation: a158-spinner 0.9s linear infinite;
}

@keyframes a158-spinner {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.swal2-popup.a158-swal-popup {
  direction: rtl;
  text-align: right;
  font-family: "Yekan", Sans-serif;
}

.swal2-popup.a158-swal-popup .swal2-title,
.swal2-popup.a158-swal-popup .swal2-html-container,
.swal2-popup.a158-swal-popup .swal2-actions {
  text-align: right;
}

.swal2-popup.a158-swal-popup .swal2-actions {
  justify-content: flex-end;
  gap: 8px;
}

.a158-button:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

[v-cloak] {
  display: none !important;
}

.hidden { display: none; }
#a158-file {
    margin: 30px 0 0 0;
}
#a158-crop-next, #a158-create-card {
    margin: 20px 0 0 0;
}

.a158-stage-form {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  padding: 32px 0;
}

.a158-progress {
  position: relative;
  grid-column: 1 / -1;
  margin-bottom: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 12px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(72,98,148,.3) transparent;
  -webkit-overflow-scrolling: touch;
}

.a158-progress-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-width: max-content;
  padding-inline: 8px;
}

.a158-progress::-webkit-scrollbar {
  height: 6px;
}

.a158-progress::-webkit-scrollbar-thumb {
  background: rgba(72,98,148,.3);
  border-radius: 999px;
}

.a158-progress-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 5px;
  background: rgba(72,98,148,.12);
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}

.a158-progress-item {
  position: relative;
  z-index: 1;
  width: 72px;
  min-width: 72px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
}

.a158-progress-item span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(229,231,235,.9);
  color: var(--primary);
  font-weight: 700;
}

.a158-progress-item.active span {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.a158-progress-item.active small {
  color: var(--text);
}

.a158-form-shell {
  grid-column: 1 / 2;
  display: grid;
  gap: 24px;
}

.a158-form-panel {
  display: none;
  background: var(--surface);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.9);
  transition: transform .25s ease, opacity .25s ease;
  opacity: 0;
  transform: translateY(20px);
}

.a158-form-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.a158-form-panel h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.a158-form-panel p {
  margin: 0 0 20px;
  color: #4b5563;
}

.a158-input-group {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(229,231,235,.9);
  margin-bottom: 18px;
}

.a158-input-group span {
  font-size: 1.2rem;
}

.a158-input-group input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  text-align: right;
}

.a158-input-grid {
  display: grid;
  gap: 16px;
}

.a158-drop-zone {
  border: 2px dashed rgba(72,98,148,.25);
  border-radius: 24px;
  padding: 48px;
  text-align: right;
  color: #4b5563;
  cursor: pointer;
  background: rgba(246,248,252,.85);
}

.a158-drop-zone.dragover {
  background: rgba(255,255,255,.95);
  border-color: var(--accent);
  transform: scale(1.01);
}

.a158-crop-shell {
  display: grid;
  gap: 16px;
}

.a158-crop-preview {
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  min-height: 420px;
}

.a158-crop-preview img {
  max-width: 100%;
  display: block;
  width: 100%;
}

.a158-preview-shell {
  margin-top: 18px;
}

.a158-status.success {
  padding: 18px;
  border-radius: 20px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.2);
  color: #166534;
}

.a158-result {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.a158-result a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 1040px) {
  .a158-stage-form { grid-template-columns: 1fr; }
  .a158-preview-card { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body .a158-wizard { padding: 18px; }
  .a158-hero-card { padding: 32px; }
  .a158-progress {
    justify-content: flex-start;
    gap: 12px;
    padding: 8px 2px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }
  .a158-progress-line {
    inset: 33% 40px auto 12px;
  }
  .a158-progress-item {
    min-width: 64px;
    scroll-snap-align: center;
  }
  .a158-progress-item span {
    width: 40px;
    height: 40px;
  }
}