/* ============================================================
   سکه مجید — استایل صفحات (هیرو، محصولات، احراز هویت، مدیریت)
   ============================================================ */

/* ============================================================
   هیروی صفحه اصلی
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 24px 0 30px; /* هیروی کوتاه‌شده — یک درجه فشرده‌تر از نسخه قبل (پاسخ کارفرما) */
  background:
    radial-gradient(820px 460px at 82% 18%, rgba(212, 175, 55, 0.13), transparent 65%),
    radial-gradient(600px 380px at 12% 88%, rgba(212, 175, 55, 0.07), transparent 60%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(720px 480px at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(720px 480px at 50% 40%, #000 30%, transparent 75%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
/* در RTL: ستون اول سمت راست قرار می‌گیرد؛ تصویر اول تا سمت چپ بیفتد */
.hero-visual { order: 2; position: relative; }
.hero-content { order: 1; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--gold-soft);
  border: 1px solid var(--border-gold);
  color: var(--gold-2);
  border-radius: 40px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.hero-kicker svg { width: 15px; height: 15px; }

.hero-title { font-size: 52px; font-weight: 900; line-height: 1.35; margin-bottom: 8px; }
.hero-title .line2 { display: block; font-size: 0.62em; color: var(--text); font-weight: 700; margin-top: 6px; }

.hero-tags { display: flex; gap: 10px; margin: 10px 0 14px; flex-wrap: wrap; }
.hero-tags span {
  border: 1px solid var(--border-gold);
  background: rgba(212, 175, 55, 0.06);
  color: var(--gold-2);
  padding: 6px 20px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 600;
}

.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-trust .trust-item { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.hero-trust svg { width: 21px; height: 21px; color: var(--gold); }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual .coin-wrap {
  position: relative;
  border-radius: 50%;
  max-width: 300px; /* دایره با نسبت طبیعی تصویر — کوچک‌تر برای هیروی کوتاه (پاسخ کارفرما) */
  margin-inline: auto;
  animation: float-y 6s ease-in-out infinite;
}
.hero-visual img {
  width: 100%;
  height: auto; /* غلبه بر اتریبیوت height="560" — بدون این، با کوچک‌شدن کانتینر تصویر بیضی عمودی می‌شود */
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 72%);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 65%);
  filter: blur(30px);
  z-index: -1;
}
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ============================================================
   نوار ویژگی‌ها (انتهای صفحه، پیش از فوتر)
   ============================================================ */
.features-bar { border-top: 1px solid var(--border); background: var(--bg-2); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.feature-cell {
  display: flex;
  gap: 16px;
  padding: 30px 24px;
  border-inline-start: 1px solid var(--border);
  align-items: flex-start;
}
.feature-cell:first-child { border-inline-start: 0; }
.feature-icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--gold-soft);
  border: 1px solid var(--border-gold);
  display: grid; place-items: center;
  color: var(--gold-2);
}
.feature-icon svg { width: 25px; height: 25px; }
.feature-cell h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.feature-cell p { font-size: 13px; color: var(--text-3); line-height: 1.9; }

/* ============================================================
   قیمت‌های زنده
   ============================================================ */
.live-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-3);
  font-size: 13px;
}

.price-table-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.price-row-card:hover { border-color: var(--border-gold); transform: translateY(-3px); }
.pr-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.pr-name .cat-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--gold-soft); display: grid; place-items: center; color: var(--gold-2); flex-shrink: 0; }
.pr-name .cat-ico svg { width: 18px; height: 18px; }
.pr-sub { font-size: 12px; color: var(--text-3); font-weight: 400; margin-top: 2px; }
.pr-nums { text-align: left; direction: ltr; }
.pr-num { font-size: 15.5px; font-weight: 700; color: var(--text); }
.pr-label { font-size: 11px; color: var(--text-3); text-align: center; margin-top: 1px; }

/* ============================================================
   دسته‌بندی محصولات (کارت‌های تصویری)
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.cat-card:hover { transform: translateY(-8px); border-color: var(--border-gold); box-shadow: var(--shadow-gold); }
.cat-card .cat-img { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.cat-card .cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.cat-card:hover .cat-img img { transform: scale(1.07); }
.cat-card .cat-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--img-fade), transparent 55%);
}
.cat-card .cat-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat-card h3 { font-size: 17px; font-weight: 800; }
.cat-card p { font-size: 13px; color: var(--text-3); line-height: 1.9; flex: 1; }
.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 700;
  transition: gap 0.2s;
}
.cat-link:hover { gap: 13px; }
.cat-link svg { width: 17px; height: 17px; }

/* ============================================================
   چرا سکه مجید؟ — طرح فشرده و بهینه
   ============================================================ */
.why-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 34px; align-items: center; }
/* بخش فشرده — ارتفاع کمتر و ریتم عمودی بهینه‌تر */
.section-tight { padding: 46px 0; }
.section-tight .section-head { margin-bottom: 22px; }
/* در RTL ستون اول راست است؛ ویژگی‌ها اول (راست)، تصویر دوم (چپ) مطابق طرح */
.why-visual { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-gold); }
.why-visual img { width: 100%; height: auto; max-height: 360px; object-fit: cover; }
.why-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to left, var(--img-fade-side), transparent 45%);
}
.why-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.why-point { display: flex; align-items: flex-start; gap: 13px; }
.why-ico {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--gold-soft);
  border: 1px solid var(--border-gold);
  display: grid; place-items: center;
  color: var(--gold-2);
  transition: all 0.25s;
}
.why-point:hover .why-ico { background: var(--gold-grad); color: #191204; box-shadow: var(--shadow-gold); }
.why-ico svg { width: 21px; height: 21px; }
.why-point h3 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.why-point p { font-size: 12.5px; color: var(--text-3); line-height: 1.75; }

/* اسکلتون‌های بارگذاری */
.skel-row { height: 86px; }
.skel-card { height: 320px; }

/* ============================================================
   سرصفحه صفحات داخلی
   ============================================================ */
.page-hero {
  padding: 56px 0 44px;
  background:
    radial-gradient(620px 300px at 50% 0%, rgba(212, 175, 55, 0.1), transparent 70%),
    var(--bg-2);
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
}
.page-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.page-hero .crumbs { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; margin-bottom: 14px; flex-wrap: wrap; }
.page-hero .crumbs a { color: var(--gold-2); }
.page-hero .crumbs svg { width: 13px; height: 13px; transform: scaleX(-1); }
.page-hero .lead { color: var(--text-2); font-size: 15px; max-width: 640px; }

/* ============================================================
   فیلترها و جستجو
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 40px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.filter-pill:hover { border-color: var(--gold); color: var(--gold-2); }
.filter-pill.active { background: var(--gold-grad); border-color: transparent; color: #191204; }
.search-box { position: relative; margin-inline-start: auto; min-width: 250px; }
.search-box .input { padding-inline-start: 42px; border-radius: 40px; }
.search-box svg {
  position: absolute;
  inset-inline-start: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-3);
  pointer-events: none;
}

/* ============================================================
   کارت محصول
   ============================================================ */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--border-gold); box-shadow: var(--shadow-gold); }
.pc-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .pc-img img { transform: scale(1.06); }
.pc-img .pc-badge { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; }
.pc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pc-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pc-title-row h3 { font-size: 16.5px; font-weight: 800; line-height: 1.5; }
.pc-specs { display: flex; gap: 8px; flex-wrap: wrap; }
.pc-spec {
  background: var(--grey-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px 11px;
  font-size: 12px;
  color: var(--text-3);
}
.pc-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.pc-price-box {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
}
.pc-price-box .v { font-size: 14.5px; font-weight: 700; color: var(--text); }
.pc-price-box .l { font-size: 11px; color: var(--text-3); }
.pc-price-box.sell .v { color: var(--gold-2); }
.pc-price-box.buy .v { color: var(--green); }
.pc-actions { display: flex; gap: 10px; }
.pc-actions .btn { flex: 1; }

/* ============================================================
   صفحه جزئیات محصول
   ============================================================ */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.pd-image { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-gold); }
.pd-image img { width: 100%; aspect-ratio: 16/12; object-fit: cover; }
.pd-info h1 { font-size: 28px; font-weight: 800; margin: 10px 0 14px; }
.pd-desc { color: var(--text-2); font-size: 14.5px; line-height: 2; margin-bottom: 20px; }

.pd-price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.pd-price-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.pd-price-card::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 100%; height: 3px; }
.pd-price-card.sell::before { background: var(--gold-grad); }
.pd-price-card.buy::before { background: linear-gradient(90deg, #34c77b, #1f8f57); }
.pd-price-card .l { font-size: 13px; color: var(--text-3); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.pd-price-card .l svg { width: 16px; height: 16px; color: var(--gold); }
.pd-price-card .v { font-size: 21px; font-weight: 800; }
.pd-price-card .u { font-size: 12px; color: var(--text-3); font-weight: 500; }

/* فرم سفارش */
.order-card { position: sticky; top: calc(var(--header-h) + 20px); }
.order-type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.order-type-btn {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-2);
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s;
}
.order-type-btn.active-buy { background: linear-gradient(135deg, #43d98a, #1f8f57); border-color: transparent; color: #04140b; }
.order-type-btn.active-sell { background: linear-gradient(135deg, #f25555, #b32222); border-color: transparent; color: #fff; }

/* ---------- مودال تحویل — روش دریافت (v18) ---------- */
.delivery-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.delivery-btn {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-2);
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s;
}
.delivery-btn svg { width: 17px; height: 17px; }
.delivery-btn.active {
  background: var(--gold-grad);
  border-color: transparent;
  color: #191204;
}
.shipping-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border: 1px dashed rgba(212, 175, 55, 0.5);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(212, 175, 55, 0.06);
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 10px;
}
.shipping-note svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--gold); margin-top: 1px; }

/* ---------- کارت‌های آدرس (v18) ---------- */
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.address-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 16px 14px;
  background: var(--panel-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.address-card.is-default { border-color: rgba(212, 175, 55, 0.55); box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25) inset; }
.address-card .ac-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.address-card .ac-title svg { width: 17px; height: 17px; color: var(--gold); }
.address-card .ac-body { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.address-card .ac-body b { color: var(--text-1); }
.address-card .ac-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.addr-default-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  padding: 2px 9px;
  margin-inline-start: auto;
}

/* ---------- نمای کلی کیف پول بالای پروفایل (v18) ---------- */
.wallet-overview {
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 18px 20px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(212, 175, 55, 0.14), transparent 55%),
    var(--panel);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}
.wallet-overview .wo-item { display: flex; flex-direction: column; gap: 3px; min-width: 120px; }
.wallet-overview .wo-label { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.wallet-overview .wo-label svg { width: 14px; height: 14px; }
.wallet-overview .wo-value { font-size: 19px; font-weight: 800; }
.wallet-overview .wo-value small { font-size: 11px; font-weight: 500; color: var(--text-3); margin-inline-start: 4px; }
.wallet-overview .wo-cta { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- شعبه‌ها — صفحه تماس (v18) ---------- */
.branches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.branch-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: var(--panel-2);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.branch-card .bc-ic {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold);
  flex-shrink: 0;
}
.branch-card .bc-ic svg { width: 20px; height: 20px; }
.branch-card .bc-name { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.branch-card .bc-addr { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.branch-card .bc-meta { font-size: 12px; color: var(--text-3); margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.branch-card .bc-meta .ltr { direction: ltr; text-align: right; }

.qty-row { display: flex; gap: 10px; align-items: stretch; }
.qty-btn {
  width: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--gold-2);
  font-size: 20px;
  font-weight: 800;
  transition: border-color 0.2s;
}
.qty-btn:hover { border-color: var(--gold); }
.qty-input {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.order-summary {
  background: var(--input-bg);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 20px 0;
}
.order-summary .row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); padding: 4px 0; }
.order-summary .row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-size: 16px; font-weight: 800; color: var(--text); }

/* نمودار قیمت */
.chart-panel { margin-top: 34px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.chart-legend { display: flex; gap: 20px; font-size: 13px; color: var(--text-2); }
.chart-legend i { display: inline-block; width: 22px; height: 4px; border-radius: 4px; margin-inline-end: 8px; vertical-align: middle; }
#price-chart { width: 100%; height: 300px; display: block; }

/* ============================================================
   صفحات احراز هویت
   ============================================================ */
.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 48px 20px;
  background:
    radial-gradient(700px 400px at 78% 12%, rgba(212, 175, 55, 0.1), transparent 65%),
    radial-gradient(520px 340px at 16% 92%, rgba(212, 175, 55, 0.06), transparent 60%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--panel);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 38px 36px;
  box-shadow: var(--shadow);
}
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 26px; text-align: center; }
.auth-logo .brand-logo { width: 64px; height: 64px; }
.auth-logo .brand-logo svg { width: 36px; height: 36px; }
.auth-logo h1 { font-size: 21px; font-weight: 800; }
.auth-logo p { font-size: 13px; color: var(--text-3); margin-top: -8px; }
.auth-alt { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-3); }
.auth-alt a { color: var(--gold-2); font-weight: 700; }

/* ============================================================
   سفارش‌ها / پروفایل / مدیریت — طرح‌های مشترک
   ============================================================ */
.status-filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }

.order-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}
.order-item:hover { border-color: var(--border-gold); }
.oi-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.oi-icon.buy { background: var(--gold-soft); color: var(--gold-2); }
.oi-icon.sell { background: var(--green-soft); color: var(--green); }
.oi-icon svg { width: 23px; height: 23px; }
.oi-main { flex: 1; min-width: 220px; }
.oi-title { font-weight: 700; font-size: 15.5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.oi-sub { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.oi-amount { text-align: left; }
.oi-amount .v { font-weight: 800; font-size: 16px; }
.oi-amount .l { font-size: 11.5px; color: var(--text-3); }

/* پروفایل */
.panel h3 svg { width: 21px; height: 21px; color: var(--gold); margin-inline-end: 9px; vertical-align: -4px; }
.profile-grid { display: grid; grid-template-columns: 340px 1fr; gap: 26px; align-items: start; }
.profile-side { text-align: center; }
.profile-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #191204;
  font-size: 34px;
  font-weight: 900;
  display: grid; place-items: center;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-gold);
  /* جعبه مربع برای تصویر آواتار — برش مرکزی، بدون دفرمه شدن (v10) */
  position: relative;
  overflow: hidden;
}
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.stat-box { background: var(--input-bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-align: center; }
.stat-box .v { font-size: 20px; font-weight: 800; color: var(--gold-2); }
.stat-box .l { font-size: 12px; color: var(--text-3); }

/* پنل مدیریت */
.admin-grid { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: start; }
.admin-side {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.admin-side button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  background: none;
  border: 0;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 14px;
  text-align: start;
  transition: all 0.15s;
}
.admin-side button:hover { background: var(--gold-soft); color: var(--gold-2); }
.admin-side button.active { background: var(--gold-grad); color: #191204; }
.admin-side svg { width: 19px; height: 19px; flex-shrink: 0; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-card-lg {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}
.stat-card-lg .v { font-size: 26px; font-weight: 900; color: var(--gold-2); }
.stat-card-lg .l { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.stat-card-lg .ic { position: absolute; top: 18px; inset-inline-end: 18px; color: var(--gold-3); opacity: 0.55; }
.stat-card-lg .ic svg { width: 30px; height: 30px; }

.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .form-field { margin-bottom: 0; flex: 1; min-width: 140px; }

/* درباره ما / تماس */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.about-card { text-align: center; padding: 34px 26px; }
.about-card .why-ico { margin: 0 auto 16px; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.about-stat { text-align: center; padding: 28px 16px; }
.about-stat .v { font-size: 34px; font-weight: 900; }
.about-stat .l { color: var(--text-3); font-size: 13.5px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; }
.contact-info-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-info-card:last-child { border-bottom: 0; }
.contact-info-card .feature-icon { border-radius: 50%; }

/* ============================================================
   واکنش‌گرایی صفحات
   ============================================================ */
@media (max-width: 1080px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-cell:nth-child(3) { border-inline-start: 0; }
  .feature-cell:nth-child(n+3) { border-top: 1px solid var(--border); }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .price-table-2col { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-side { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .admin-side button { white-space: nowrap; width: auto; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero { padding: 20px 0 26px; }
  .hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero-content { order: 1; }
  .hero-visual { order: 2; max-width: 230px; }
  .hero-title { font-size: 34px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { max-width: 480px; margin-inline: auto; }
  .why-visual img { max-height: 300px; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .order-card { position: static; }
  .profile-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-cell { border-inline-start: 0; border-top: 1px solid var(--border); }
  .feature-cell:first-child { border-top: 0; }
  .search-box { margin-inline-start: 0; width: 100%; }
  .pd-price-cards { grid-template-columns: 1fr; }
  .why-points { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .order-item { gap: 12px; }
  .oi-amount { text-align: right; }
}

/* ============================================================
   پنل کاربر — تب‌ها، KYC، بانک، کیف پول (v6)
   ============================================================ */
.ptabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 18px;
  overflow-x: auto;
}
.ptab {
  flex: 1;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--text-2, #aaa);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.ptab:hover { color: var(--text-1, #eee); }
.ptab.active {
  background: linear-gradient(135deg, rgba(242, 201, 76, 0.16), rgba(212, 175, 55, 0.1));
  color: var(--gold, #d4af37);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.3);
}

/* آواتار با دکمه ویرایش */
.profile-avatar-wrap { position: relative; display: inline-block; }
.avatar-edit {
  position: absolute;
  bottom: 2px;
  left: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg-1, #111);
  background: linear-gradient(135deg, #f2c94c, #d4af37);
  color: #241a04;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s;
}
.avatar-edit svg { width: 14px; height: 14px; }
.avatar-edit:hover { transform: scale(1.1); }

/* بنر وضعیت KYC */
.kyc-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.kyc-banner svg { width: 30px; height: 30px; flex-shrink: 0; margin-top: 2px; }
.kyc-banner b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.kyc-banner p { font-size: 13px; color: var(--text-3, #999); line-height: 1.8; margin: 0; }
.kyc-banner.ok { background: rgba(76, 175, 125, 0.08); border: 1px solid rgba(76, 175, 125, 0.25); color: #4caf7d; }
.kyc-banner.ok b { color: #4caf7d; }
.kyc-banner.wait { background: rgba(242, 201, 76, 0.07); border: 1px solid rgba(242, 201, 76, 0.25); color: #f2c94c; }
.kyc-banner.wait b { color: #f2c94c; }
.kyc-banner.bad { background: rgba(224, 112, 90, 0.08); border: 1px solid rgba(224, 112, 90, 0.25); color: #e0705a; }
.kyc-banner.bad b { color: #e0705a; }
.kyc-banner.info { background: rgba(90, 150, 224, 0.07); border: 1px solid rgba(90, 150, 224, 0.25); color: #5a96e0; }
.kyc-banner.info b { color: #5a96e0; }

/* آپلود مدارک KYC */
.kyc-uploads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.kyc-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 12px;
  border: 1.5px dashed rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.03);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.kyc-drop:hover, .kyc-drop.has-file {
  border-color: rgba(212, 175, 55, 0.7);
  background: rgba(212, 175, 55, 0.07);
}
.kyc-drop-ic svg { width: 34px; height: 34px; color: var(--gold, #d4af37); }
.kyc-drop-t { font-size: 13px; font-weight: 700; }
.kyc-drop-s { font-size: 11px; color: var(--text-3, #888); direction: ltr; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .kyc-uploads { grid-template-columns: 1fr; } }

/* حساب‌های بانکی */
.bank-list { display: grid; gap: 10px; }
.bank-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 13px 16px;
}
.bank-sheba { font-size: 14px; font-weight: 600; letter-spacing: 0.4px; direction: ltr; }
.bank-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }

/* کارت‌های کیف پول */
.wallet-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.wcard {
  background: var(--panel);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wcard .wc-l { font-size: 12px; color: var(--text-3, #888); }
.wcard .wc-v { font-size: 19px; font-weight: 800; line-height: 1.4; }
.wcard .wc-v small { font-size: 10.5px; font-weight: 400; color: var(--text-3, #888); margin-inline-start: 5px; }
.wcard .wc-s { font-size: 11px; color: var(--text-3, #777); }
.wcard.amber { border-color: rgba(242, 201, 76, 0.3); }
.wcard.amber .wc-v { color: #f2c94c; }
.wcard.gold {
  background: linear-gradient(135deg, rgba(242, 201, 76, 0.12), rgba(212, 175, 55, 0.05));
  border-color: rgba(212, 175, 55, 0.4);
}
.wcard.gold .wc-v { color: var(--gold, #d4af37); }
/* کارت‌ها و متن سود/زیان — v14 */
.wcard.green { border-color: rgba(52, 199, 123, 0.35); }
.wcard.green .wc-v { color: var(--green, #34c77b); }
.wcard.red { border-color: rgba(229, 83, 75, 0.35); }
.wcard.red .wc-v { color: var(--red, #e5534b); }
.pl-pos { color: var(--green, #34c77b); font-weight: 700; white-space: nowrap; }
.pl-neg { color: var(--red, #e5534b); font-weight: 700; white-space: nowrap; }
.pl-zero { color: var(--text-3, #999); font-weight: 600; white-space: nowrap; }
@media (max-width: 860px) { .wallet-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .wallet-cards { grid-template-columns: 1fr; } }

.tx-in { color: #4caf7d; }
.tx-out { color: #e0705a; }

/* ============================================================
   صفحه محصول — نوار کیف پول و سوییچ سفارش شرطی (v6)
   ============================================================ */
.wallet-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
}
.wallet-strip b { font-size: 13.5px; color: var(--gold, #d4af37); }
.ws-sep { flex: 1; }
.ws-link { color: var(--gold, #d4af37); text-decoration: underline; font-size: 12px; }

.exec-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.exec-btn {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  background: transparent;
  color: var(--text-2, #aaa);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.exec-btn:hover { border-color: rgba(212, 175, 55, 0.4); }
.exec-btn.active {
  background: linear-gradient(135deg, rgba(242, 201, 76, 0.15), rgba(212, 175, 55, 0.08));
  border-color: rgba(212, 175, 55, 0.55);
  color: var(--gold, #d4af37);
}

/* ============================================================
   قواعد تجارت v6 — هشدار نوسان قیمت و پذیرش قوانین معامله
   ============================================================ */
.risk-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px solid rgba(229, 83, 75, 0.35);
  border-radius: 12px;
  background: var(--red-soft, rgba(229, 83, 75, 0.14));
  color: var(--text-2, #b8b8b8);
  font-size: 13px;
  line-height: 1.9;
}
.risk-banner svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--red, #e5534b);
}
.risk-banner b { color: var(--red, #e5534b); }

.terms-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 14px;
  padding: 12px 14px;
  border: 1px dashed rgba(212, 175, 55, 0.45);
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.06);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-2, #b8b8b8);
  transition: border-color 0.15s, background 0.15s;
}
.terms-check:hover { border-color: var(--gold, #d4af37); }
.terms-check input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin-top: 5px;
  accent-color: var(--gold, #d4af37);
  cursor: pointer;
  flex-shrink: 0;
}
.terms-check a {
  color: var(--gold-2, #f2c94c);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.terms-check.shake {
  animation: terms-shake 0.4s ease;
  border-color: var(--red, #e5534b);
}
@keyframes terms-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(4px); }
  50% { transform: translateX(-4px); }
  75% { transform: translateX(3px); }
}

/* نشان موجودی روی کارت محصول — قواعد v6 */
.pc-stock-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold-2, #f2c94c);
  backdrop-filter: blur(4px);
}
.pc-stock-badge.unlimited {
  background: var(--green-soft, rgba(52, 199, 123, 0.14));
  border-color: rgba(52, 199, 123, 0.4);
  color: var(--green, #34c77b);
}
.pc-stock-badge.out {
  background: var(--red-soft, rgba(229, 83, 75, 0.14));
  border-color: rgba(229, 83, 75, 0.4);
  color: var(--red, #e5534b);
}

/* ============================================================
   وضعیت مدارک KYC + ارسال مجدد تک‌مدرکی — v6
   ============================================================ */
.kyc-docs {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.kyc-doc-item {
  border: 1px solid var(--border, rgba(255, 255, 255, 0.09));
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--panel-2, rgba(255, 255, 255, 0.02));
}
.kyc-doc-item.is-rejected {
  border-color: rgba(229, 83, 75, 0.45);
  background: var(--red-soft, rgba(229, 83, 75, 0.14));
}
.kyc-doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
}
.kyc-doc-note {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--red, #e5534b);
  line-height: 1.8;
}
.kyc-doc-reupload {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}
.kyc-drop.small {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.05);
  color: var(--text-3, #999);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.kyc-drop.small:hover { border-color: var(--gold, #d4af37); }
.kyc-drop.small.has-file {
  border-style: solid;
  border-color: var(--green, #34c77b);
  color: var(--green, #34c77b);
}

/* ============================================================
   واریز اینترنتی v7 — درگاه پرداخت زرین‌پال (تب کیف پول)
   ============================================================ */
.info-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 11px 14px;
  border: 1px solid rgba(242, 201, 76, 0.35);
  border-radius: 12px;
  background: rgba(242, 201, 76, 0.07);
  color: var(--text-2, #b8b8b8);
  font-size: 12.5px;
  line-height: 1.9;
}
.info-banner svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 5px;
  color: #f2c94c;
}
.info-banner b { color: #f2c94c; }

.dep-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.dep-quick button {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.05);
  color: var(--text-2, #b8b8b8);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.dep-quick button:hover {
  border-color: var(--gold, #d4af37);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold, #d4af37);
}

/* ================= انتقال داخلی (v8) ================= */

/* جعبه شماره حساب اختصاصی — نمایش با دکمه کپی */
.acct-number-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px dashed rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.06);
}
.acct-number-box .acct-label {
  display: block;
  font-size: 12px;
  color: var(--text-3, #9a9a9a);
  margin-bottom: 4px;
}
.acct-number-box .acct-number {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--gold, #d4af37);
  direction: ltr;
  text-align: right;
}
