/* =========================================
   مرحله ۱: صفحه و پنجره آگهی ویژه
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
  direction: rtl;
  font-family: Tahoma, Arial, sans-serif;
  background: #050607;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

/* ===== صفحه اصلی ===== */

.gk-featured-page {
  position: relative;

  width: 100%;
  height: 100vh;
  height: 100dvh;

  padding: 10px 15px;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  overflow: hidden;
  direction: ltr;
}

/* ===== ویدیوی پس‌زمینه ===== */

.gk-featured-video {
  position: absolute;
  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  pointer-events: none;
  background: #050607;
}

/* ===== لایه تیره روی ویدیو ===== */

.gk-featured-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  pointer-events: none;

  background: linear-gradient(
    110deg,
    rgba(0, 0, 0, 0.36),
    rgba(22, 16, 9, 0.16),
    rgba(0, 0, 0, 0.32)
  );
}

/* ===== پنجره اصلی ===== */

.gk-featured-window {
  position: relative;
  z-index: 2;

  width: min(580px, calc(100vw - 30px));
  height: min(640px, calc(100dvh - 20px));

  margin: 0 auto 0 0;

  overflow-x: hidden;
  overflow-y: auto;

  direction: rtl;

  border: 1px solid rgba(240, 190, 83, 0.65);
  border-radius: 20px;

  color: #f8f2e6;

  background: linear-gradient(
    145deg,
    rgba(8, 14, 17, 0.82),
    rgba(3, 8, 11, 0.76)
  );

  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);

  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(224, 171, 58, 0.1),
    inset 0 1px 0 rgba(255, 239, 196, 0.15);

  scrollbar-width: thin;
  scrollbar-color: #a8792e rgba(255, 255, 255, 0.05);
  overscroll-behavior: contain;
}

/* اسکرول پنجره */

.gk-featured-window::-webkit-scrollbar {
  width: 7px;
}

.gk-featured-window::-webkit-scrollbar-track {
  margin-block: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.gk-featured-window::-webkit-scrollbar-thumb {
  border-radius: 20px;
  background: linear-gradient(#ddb052, #6c491b);
}
/* =========================================
   مرحله ۲: سربرگ و مراحل ثبت آگهی ویژه
========================================= */

/* ===== دکمه بستن ===== */

.gk-featured-close {
  position: absolute;
  top: 10px;
  left: 11px;
  z-index: 20;

  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(239, 190, 86, 0.58);
  border-radius: 50%;

  color: #f7d889;
  background: rgba(5, 10, 13, 0.68);

  text-decoration: none;
  font-size: 22px;
  line-height: 1;

  transition:
    transform 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.gk-featured-close:hover {
  color: #171106;
  background: #e4b650;
  transform: rotate(90deg);
}

/* ===== سربرگ ===== */

.gk-featured-header {
  padding: 12px 44px 10px;

  border-bottom: 1px solid rgba(222, 174, 74, 0.24);

  background: linear-gradient(180deg, rgba(255, 215, 128, 0.055), transparent);
}

/* عنوان */

.gk-featured-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.gk-featured-diamond {
  flex-shrink: 0;

  color: #efbd52;
  font-size: 29px;

  filter: drop-shadow(0 0 7px rgba(239, 189, 82, 0.42));
}

.gk-featured-heading > div {
  text-align: right;
}

.gk-featured-heading h1 {
  display: inline-block;
  margin: 0 7px 2px 0;

  color: #ffe5a5;
  font-size: 21px;
  font-weight: 900;

  text-shadow: 0 0 13px rgba(225, 176, 70, 0.18);
}

.gk-featured-heading p {
  margin-top: 2px;

  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
}

/* نشان نمایش ممتاز */

.gk-featured-badge {
  display: inline-flex;
  align-items: center;

  padding: 4px 8px;

  border: 1px solid rgba(239, 189, 82, 0.58);
  border-radius: 20px;

  color: #f8d788;
  background: rgba(191, 133, 27, 0.1);

  font-size: 8px;
  font-weight: bold;
}

/* ===== مراحل ثبت ===== */

.gk-featured-steps {
  position: relative;

  width: min(390px, 100%);
  margin: 10px auto 0;

  display: grid;
  grid-template-columns: repeat(3, 1fr);

  list-style: none;
}

.gk-featured-steps::before {
  content: "";

  position: absolute;
  top: 12px;
  right: 16%;
  left: 16%;

  height: 1px;

  background: linear-gradient(
    90deg,
    rgba(229, 181, 80, 0.18),
    rgba(229, 181, 80, 0.7),
    rgba(229, 181, 80, 0.18)
  );
}

.gk-featured-steps li {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;

  color: rgba(255, 255, 255, 0.4);
}

.gk-featured-steps li > span {
  width: 25px;
  height: 25px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;

  background: #0e1519;

  font-size: 8px;
  font-weight: bold;
}

.gk-featured-steps li strong {
  font-size: 8px;
  font-weight: normal;
}

/* مرحله فعال */

.gk-featured-steps li.active {
  color: #f4ca70;
}

.gk-featured-steps li.active > span {
  border-color: #f0c159;

  color: #1b1306;
  background: linear-gradient(135deg, #ffe29a, #c78b24);

  box-shadow:
    0 0 0 4px rgba(233, 181, 70, 0.06),
    0 0 13px rgba(233, 181, 70, 0.22);
}
/* =========================================
   مرحله ۳: چیدمان داخلی و تصاویر آگهی
========================================= */

/* ===== چیدمان اصلی فرم ===== */

.gk-featured-layout {
  width: 100%;
  padding: 10px;

  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  grid-template-areas:
    "gallery details"
    "payment payment";

  align-items: start;
  gap: 9px;

  direction: ltr;
}

.gk-featured-gallery {
  grid-area: gallery;
  direction: rtl;
}

.gk-featured-details {
  grid-area: details;
  min-width: 0;
  direction: rtl;
}

.gk-featured-payment {
  grid-area: payment;
  min-width: 0;
  direction: rtl;
}

/* ===== قاب تصاویر ===== */

.gk-featured-gallery {
  padding: 8px;

  border: 1px solid rgba(238, 188, 82, 0.28);
  border-radius: 13px;

  background: rgba(255, 255, 255, 0.035);

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* عنوان تصاویر */

.gk-gallery-heading {
  margin-bottom: 7px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.gk-gallery-heading > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.gk-gallery-heading h2 {
  color: #f6d17d;
  font-size: 10px;
}

.gk-gallery-heading > div span {
  font-size: 11px;
}

.gk-gallery-heading > small {
  padding: 3px 6px;

  border-radius: 20px;

  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);

  font-size: 7px;
}

/* ===== پیش‌نمایش اصلی ===== */

.gk-featured-main-preview {
  position: relative;

  width: 100%;
  aspect-ratio: 4 / 3;

  overflow: hidden;

  border: 1px solid rgba(238, 190, 86, 0.48);
  border-radius: 10px;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.02)
  );
}

#gkFeaturedMainImage {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;
}

#gkFeaturedMainImage[hidden] {
  display: none;
}

/* نوشته داخل پیش‌نمایش */

.gk-featured-image-placeholder {
  position: absolute;
  inset: 0;

  padding: 9px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  color: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.gk-featured-image-placeholder > span {
  color: #e8b953;
  font-size: 27px;

  filter: drop-shadow(0 0 7px rgba(232, 185, 83, 0.35));
}

.gk-featured-image-placeholder strong {
  margin-top: 4px;

  color: #f2d48d;
  font-size: 9px;
}

.gk-featured-image-placeholder small {
  margin-top: 3px;

  font-size: 7px;
  line-height: 1.5;
}

/* ===== تصاویر کوچک ===== */

.gk-featured-thumbnails {
  margin-top: 6px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.gk-featured-thumb {
  position: relative;

  width: 100%;
  aspect-ratio: 1 / 1;

  overflow: hidden;

  display: grid;
  place-items: center;

  border: 1px solid rgba(238, 190, 86, 0.3);
  border-radius: 7px;

  color: rgba(244, 203, 113, 0.7);
  background: rgba(255, 255, 255, 0.035);

  cursor: pointer;
  font-size: 14px;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.gk-featured-thumb:hover,
.gk-featured-thumb.active {
  border-color: #e9b94f;
  background: rgba(220, 167, 56, 0.11);
  transform: translateY(-1px);
}

.gk-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== دکمه انتخاب تصاویر ===== */

#gkFeaturedImageInput {
  display: none;
}

.gk-featured-image-button {
  width: 100%;
  min-height: 32px;
  margin-top: 7px;
  padding: 5px 8px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  border: 1px solid rgba(235, 185, 78, 0.56);
  border-radius: 8px;

  color: #f7d78b;

  background: linear-gradient(
    135deg,
    rgba(177, 124, 25, 0.19),
    rgba(91, 63, 17, 0.13)
  );

  cursor: pointer;
  font-size: 9px;
  font-weight: bold;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.gk-featured-image-button:hover {
  background: rgba(205, 151, 43, 0.25);
  transform: translateY(-1px);
}

.gk-featured-image-help {
  margin-top: 5px;

  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  font-size: 7px;
  line-height: 1.5;
}
/* =========================================
   مرحله ۴: اطلاعات اصلی آگهی ویژه
========================================= */

/* ===== قاب اطلاعات ===== */

.gk-featured-details {
  min-width: 0;
  padding: 9px;

  border: 1px solid rgba(237, 187, 80, 0.25);
  border-radius: 13px;

  background: rgba(255, 255, 255, 0.035);

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

/* ===== عنوان بخش ===== */

.gk-details-heading {
  margin-bottom: 9px;
  padding-bottom: 7px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  border-bottom: 1px solid rgba(231, 181, 76, 0.17);
}

.gk-details-heading > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gk-details-heading > div > span {
  color: #eaba51;
  font-size: 13px;

  filter: drop-shadow(0 0 5px rgba(234, 186, 81, 0.32));
}

.gk-details-heading h2 {
  color: #f7d27f;
  font-size: 11px;
}

.gk-details-heading small {
  display: block;
  margin-top: 2px;

  color: rgba(255, 255, 255, 0.42);
  font-size: 7px;
}

.gk-required-note {
  flex-shrink: 0;

  color: rgba(240, 188, 82, 0.62);
  font-size: 7px;
}

/* ===== چیدمان فیلدها ===== */

.gk-featured-fields-grid {
  width: 100%;
  margin-bottom: 7px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.gk-featured-field {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gk-featured-field > label {
  min-height: 15px;
  padding-right: 2px;

  display: flex;
  align-items: center;
  gap: 3px;

  color: rgba(255, 245, 219, 0.87);
  font-size: 8px;
  font-weight: bold;
}

.gk-featured-field > label span {
  color: #e7b54a;
}

/* ===== ورودی‌ها ===== */

.gk-featured-field input,
.gk-featured-field textarea {
  width: 100%;
  min-width: 0;

  border: 1px solid rgba(255, 220, 144, 0.2);
  border-radius: 8px;
  outline: none;

  color: #fff7e6;
  background: rgba(255, 255, 255, 0.045);

  font-size: 8px;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.gk-featured-field input {
  height: 33px;
  padding: 0 9px;
}

.gk-featured-field textarea {
  min-height: 75px;
  padding: 8px 9px;

  resize: vertical;
  line-height: 1.7;
}

.gk-featured-field input::placeholder,
.gk-featured-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.gk-featured-field input:focus,
.gk-featured-field textarea:focus {
  border-color: rgba(238, 188, 81, 0.72);

  background: rgba(255, 255, 255, 0.07);

  box-shadow:
    0 0 0 3px rgba(221, 168, 57, 0.08),
    0 0 12px rgba(221, 168, 57, 0.06);
}

/* ===== ورودی آیکون‌دار ===== */

.gk-featured-input-icon {
  position: relative;

  width: 100%;
  min-width: 0;
}

.gk-featured-input-icon > span {
  position: absolute;
  top: 50%;
  right: 9px;
  z-index: 2;

  transform: translateY(-50%);
  pointer-events: none;

  font-size: 10px;
}

.gk-featured-input-icon input {
  padding-right: 29px;
}

/* ===== ورودی مبلغ ===== */

.gk-featured-price-input {
  width: 100%;
  min-width: 0;

  display: flex;
  direction: rtl;
}

.gk-featured-price-input input {
  flex: 1;
  min-width: 0;

  border-radius: 0 8px 8px 0;
}

.gk-featured-price-input > span {
  width: 42px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 220, 144, 0.2);
  border-right: 0;
  border-radius: 8px 0 0 8px;

  color: rgba(255, 232, 180, 0.68);
  background: rgba(214, 161, 51, 0.075);

  font-size: 7px;
}

/* ===== توضیحات کامل ===== */

.gk-featured-field-full {
  margin-top: 2px;
}

.gk-description-footer {
  padding: 0 2px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;

  color: rgba(255, 255, 255, 0.34);
  font-size: 7px;
}

.gk-description-footer > span {
  flex-shrink: 0;
  direction: rtl;

  color: rgba(238, 190, 87, 0.6);
}

/* ===== شماره تماس ===== */

.gk-featured-phone-field {
  margin-top: 8px;
}

.gk-featured-phone-field > small {
  padding-right: 2px;

  color: rgba(255, 255, 255, 0.35);
  font-size: 7px;
  line-height: 1.5;
}

#gkFeaturedPhone {
  direction: ltr;
  text-align: right;
}
/* =========================================
   مرحله ۵: پلن‌ها، مزایا و پرداخت
========================================= */

/* ===== چیدمان قسمت پایین ===== */

.gk-featured-payment {
  padding: 8px;

  display: grid;
  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(0, 0.9fr)
    minmax(0, 1fr);

  gap: 7px;

  border: 1px solid rgba(235, 184, 76, 0.24);
  border-radius: 13px;

  background: rgba(255, 255, 255, 0.025);
}

/* قاب بخش‌های پرداخت */

.gk-featured-plans,
.gk-featured-benefits,
.gk-featured-summary {
  min-width: 0;
  padding: 8px;

  border: 1px solid rgba(235, 184, 76, 0.18);
  border-radius: 10px;

  background: rgba(2, 7, 10, 0.28);
}

/* ===== عنوان انتخاب مدت ===== */

.gk-payment-heading {
  margin-bottom: 7px;

  display: flex;
  align-items: center;
  gap: 6px;
}

.gk-payment-heading > span {
  color: #efbc50;
  font-size: 16px;
}

.gk-payment-heading h2 {
  color: #f5cf79;
  font-size: 9px;
}

.gk-payment-heading small {
  display: block;
  margin-top: 2px;

  color: rgba(255, 255, 255, 0.38);
  font-size: 6px;
}

/* ===== کارت‌های مدت نمایش ===== */

.gk-plan-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.gk-plan-card {
  position: relative;

  min-width: 0;
  min-height: 82px;
  padding: 7px 3px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;

  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.025);

  cursor: pointer;
  text-align: center;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.gk-plan-card:hover {
  border-color: rgba(235, 185, 78, 0.5);
  transform: translateY(-1px);
}

/* مخفی‌کردن دکمه رادیویی */

.gk-plan-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* پلن انتخاب‌شده */

.gk-plan-card:has(input:checked) {
  border-color: #e8b64c;

  color: #ffe6a6;

  background: linear-gradient(
    145deg,
    rgba(212, 157, 43, 0.17),
    rgba(93, 62, 13, 0.09)
  );

  box-shadow:
    0 0 0 2px rgba(231, 181, 75, 0.07),
    0 0 14px rgba(231, 181, 75, 0.12);
}

.gk-plan-crown {
  color: #eebc51;
  font-size: 14px;
}

.gk-plan-card strong {
  font-size: 9px;
}

.gk-plan-card small {
  font-size: 6px;
}

/* علامت انتخاب پلن */

.gk-plan-check {
  position: absolute;
  top: 4px;
  left: 4px;

  width: 14px;
  height: 14px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  color: #191105;
  background: #e9b94f;

  font-size: 8px;
  font-weight: bold;

  opacity: 0;
  transform: scale(0.5);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.gk-plan-card input:checked ~ .gk-plan-check {
  opacity: 1;
  transform: scale(1);
}

/* ===== مزایای آگهی ویژه ===== */

.gk-benefits-heading,
.gk-summary-heading {
  margin-bottom: 7px;

  display: flex;
  align-items: center;
  gap: 5px;
}

.gk-benefits-heading span,
.gk-summary-heading span {
  color: #eabb51;
  font-size: 13px;
}

.gk-benefits-heading h2,
.gk-summary-heading h2 {
  color: #f5cf79;
  font-size: 9px;
}

.gk-featured-benefits ul {
  display: flex;
  flex-direction: column;
  gap: 5px;

  list-style: none;
}

.gk-featured-benefits li {
  min-height: 29px;
  padding: 5px 6px;

  display: flex;
  align-items: center;
  gap: 6px;

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;

  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.025);

  font-size: 7px;
}

.gk-featured-benefits li span {
  width: 20px;
  height: 20px;

  display: grid;
  place-items: center;

  border-radius: 6px;

  color: #efbd53;
  background: rgba(222, 167, 52, 0.1);

  font-size: 10px;
}

/* ===== خلاصه هزینه ===== */

.gk-summary-row {
  padding: 5px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.075);

  color: rgba(255, 255, 255, 0.5);
  font-size: 7px;
}

.gk-summary-row strong {
  color: #f7d27f;
  font-size: 8px;
}

/* ===== پذیرش قوانین ===== */

.gk-featured-rules {
  margin-top: 7px;
  padding: 5px;

  display: flex;
  align-items: center;
  gap: 5px;

  border-radius: 7px;

  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.025);

  cursor: pointer;
  font-size: 6px;
}

#gkFeaturedRules {
  appearance: none;
  -webkit-appearance: none;

  width: 15px;
  height: 15px;
  flex-shrink: 0;

  display: grid;
  place-items: center;

  border: 1px solid rgba(235, 185, 78, 0.48);
  border-radius: 4px;

  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

#gkFeaturedRules::after {
  content: "✓";

  color: #161005;
  font-size: 10px;
  font-weight: bold;

  opacity: 0;
  transform: scale(0.4);

  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

#gkFeaturedRules:checked {
  background: #e9b94f;
}

#gkFeaturedRules:checked::after {
  opacity: 1;
  transform: scale(1);
}

/* ===== دکمه پرداخت ===== */

.gk-featured-submit {
  width: 100%;
  min-height: 33px;
  margin-top: 6px;
  padding: 6px 8px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  border: 1px solid #f2cb75;
  border-radius: 8px;

  color: #201606;
  background: linear-gradient(135deg, #ffe29a, #c88d27);

  box-shadow:
    0 7px 16px rgba(205, 145, 34, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);

  cursor: pointer;
  font-size: 8px;
  font-weight: 900;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.gk-featured-submit:hover {
  transform: translateY(-1px);

  box-shadow:
    0 9px 20px rgba(205, 145, 34, 0.24),
    0 0 12px rgba(237, 187, 79, 0.16);
}

/* ===== انصراف ===== */

.gk-featured-cancel {
  width: 100%;
  min-height: 28px;
  margin-top: 5px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;

  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.025);

  text-decoration: none;
  font-size: 7px;

  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.gk-featured-cancel:hover {
  color: #f5ce76;
  border-color: rgba(235, 185, 78, 0.42);
}

/* پیام امنیت */

.gk-featured-security {
  display: block;
  margin-top: 5px;

  color: rgba(130, 211, 139, 0.64);
  text-align: center;
  font-size: 6px;
}
/* ===== پنجره تأیید نهایی پرداخت آگهی ویژه ===== */

.gk-featured-payment-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 16px;
  direction: rtl;

  background: rgba(0, 0, 0, 0.78);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

/* حالت باز */
.gk-featured-payment-modal.show,
.gk-featured-payment-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* خود پنجره */
.gk-payment-modal-box {
  position: relative;
  width: min(390px, 100%);

  padding: 25px 20px 19px;

  color: #f7eed5;
  text-align: center;

  border: 1px solid rgba(255, 205, 96, 0.55);
  border-radius: 22px;

  background:
    radial-gradient(circle at top, rgba(191, 135, 35, 0.2), transparent 42%),
    linear-gradient(145deg, rgba(25, 27, 27, 0.98), rgba(8, 11, 12, 0.99));

  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.72),
    0 0 35px rgba(218, 169, 67, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  transform: translateY(24px) scale(0.96);

  transition: transform 0.28s ease;
}

.gk-featured-payment-modal.show .gk-payment-modal-box,
.gk-featured-payment-modal[aria-hidden="false"] .gk-payment-modal-box {
  transform: translateY(0) scale(1);
}

/* دکمه ضربدر */
.gk-payment-modal-close {
  position: absolute;
  top: 12px;
  left: 12px;

  width: 35px;
  height: 35px;

  display: grid;
  place-items: center;

  padding: 0;

  color: #f5d991;
  font-size: 24px;
  line-height: 1;

  border: 1px solid rgba(239, 194, 91, 0.32);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.gk-payment-modal-close:hover {
  color: #17120a;
  background: #e5b84f;
}

/* آیکون قفل */
.gk-payment-modal-icon {
  width: 64px;
  height: 64px;

  display: grid;
  place-items: center;

  margin: 0 auto 12px;

  font-size: 27px;

  border: 1px solid rgba(255, 211, 111, 0.65);
  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(241, 190, 76, 0.23),
    rgba(87, 58, 13, 0.1)
  );

  box-shadow:
    0 0 26px rgba(240, 186, 70, 0.2),
    inset 0 0 15px rgba(255, 215, 115, 0.08);
}

.gk-payment-modal-label {
  display: block;
  margin-bottom: 5px;

  color: #d9ae50;
  font-size: 12px;
}

.gk-payment-modal-box h2 {
  margin: 0 0 9px;

  color: #fff5d8;
  font-size: 20px;
}

.gk-payment-modal-box > p {
  max-width: 330px;
  margin: 0 auto 17px;

  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.9;
}

/* مشخصات سفارش */
.gk-payment-modal-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;

  margin-bottom: 12px;
}

.gk-payment-modal-details div {
  display: flex;
  flex-direction: column;
  gap: 6px;

  padding: 11px 8px;

  border: 1px solid rgba(255, 210, 111, 0.19);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.035);
}

.gk-payment-modal-details span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.gk-payment-modal-details strong {
  color: #f2ca70;
  font-size: 14px;
}

/* متن امنیت */
.gk-payment-modal-security {
  margin-bottom: 15px;
  padding: 9px;

  color: #a8d98d;
  font-size: 11px;

  border: 1px solid rgba(110, 184, 91, 0.23);
  border-radius: 10px;

  background: rgba(58, 125, 45, 0.09);
}

/* دکمه‌ها */
.gk-payment-modal-actions {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 9px;
}

.gk-payment-modal-actions button {
  min-height: 44px;

  border-radius: 11px;
  font-family: inherit;
  font-size: 12px;

  cursor: pointer;
}

.gk-payment-modal-back {
  color: rgba(255, 255, 255, 0.75);

  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.045);
}

.gk-payment-modal-gateway {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  color: #211706;
  font-weight: 800;

  border: 1px solid #f7d77d;

  background: linear-gradient(100deg, #b47a18, #f5d578, #c99025);

  box-shadow: 0 9px 25px rgba(210, 155, 39, 0.22);
}

.gk-payment-modal-gateway:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* نسخه موبایل */
@media (max-width: 480px) {
  .gk-featured-payment-modal {
    padding: 10px;
  }

  .gk-payment-modal-box {
    padding: 23px 15px 15px;
    border-radius: 18px;
  }

  .gk-payment-modal-box h2 {
    font-size: 18px;
  }

  .gk-payment-modal-actions {
    grid-template-columns: 1fr;
  }

  .gk-payment-modal-gateway {
    grid-row: 1;
  }

  .gk-payment-modal-back {
    grid-row: 2;
  }
}
/* ===== وضعیت مراحل ثبت آگهی ویژه ===== */

.gk-featured-steps li {
  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

/* مرحله فعال */
.gk-featured-steps li.active span {
  color: #1b1305;
  border-color: #f8d77e;
  background: linear-gradient(135deg, #fff0a5, #d99c27);
  box-shadow:
    0 0 0 4px rgba(232, 177, 57, 0.12),
    0 0 18px rgba(232, 177, 57, 0.55);

  animation: gkStepGlow 1.2s ease-in-out infinite alternate;
}

.gk-featured-steps li.active strong {
  color: #f6d377;
}

/* مرحله انجام‌شده */
.gk-featured-steps li.completed span {
  color: #ffffff;
  border-color: #43c98b;
  background: linear-gradient(135deg, #229c69, #116142);
  box-shadow: 0 0 14px rgba(52, 202, 136, 0.35);
}

.gk-featured-steps li.completed strong {
  color: #76dca5;
}

@keyframes gkStepGlow {
  from {
    box-shadow:
      0 0 0 3px rgba(232, 177, 57, 0.1),
      0 0 10px rgba(232, 177, 57, 0.3);
  }

  to {
    box-shadow:
      0 0 0 5px rgba(232, 177, 57, 0.15),
      0 0 21px rgba(232, 177, 57, 0.65);
  }
}
/* ===== رفع نوشته و آیکون روی تصویر انتخاب‌شده ===== */

#gkFeaturedMainPreview {
  position: relative;
  overflow: hidden;
}

#gkFeaturedMainImage {
  position: absolute;
  inset: 0;
  z-index: 2;

  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;
  object-position: center;

  border-radius: inherit;
}

#gkFeaturedMainImage[hidden] {
  display: none !important;
}

#gkFeaturedImagePlaceholder {
  position: relative;
  z-index: 1;
}

#gkFeaturedImagePlaceholder[hidden],
#gkFeaturedMainPreview.has-image #gkFeaturedImagePlaceholder {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
