/* ═══════════════════════════════════════════════
   Continents Page — Full Responsive
   ═══════════════════════════════════════════════ */
#wpfm-cont-page {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #fff;
  isolation: isolate;
}

#wpfm-cont-page .wpfm-wrap {
  max-width: 1200px;
  margin: 60px auto 80px;
  padding: 0 24px;
}

#wpfm-cont-page .wpfm-surface {
  background:
    radial-gradient(1000px 500px at 50% -10%, rgba(255,205,80,.12), transparent 60%),
    linear-gradient(180deg, #181203 0%, #120d03 100%);
  border-radius: 24px;
  border: 1px solid rgba(255,204,77,.15);
  padding: 40px 40px 32px;
  box-shadow: 0 40px 120px rgba(0,0,0,.65);
  position: relative;
  overflow: hidden;
}

#wpfm-cont-page .wpfm-surface::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,204,77,.6), transparent);
}

#wpfm-cont-page h1 {
  font-size: 48px;
  line-height: 1.05;
  margin: 0 0 16px;
  font-weight: 900;
  letter-spacing: -.02em;
}

/* ── Search ── */
#wpfm-cont-page .wpfm-search {
  position: relative;
  margin: 16px 0;
}
#wpfm-cont-page .wpfm-search input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,204,77,.12);
  border-radius: 12px;
  color: #fff;
  padding: 14px 14px 14px 44px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
#wpfm-cont-page .wpfm-search input:focus { border-color: rgba(255,204,77,.4); }
#wpfm-cont-page .wpfm-search input::placeholder { color: rgba(255,255,255,.35); }
#wpfm-cont-page .wpfm-search .icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); opacity: .5;
}

/* ── Tabs ── */
#wpfm-cont-page .wpfm-tabs {
  display: flex;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid rgba(255,204,77,.14);
  padding-bottom: 0;
  margin: 0 0 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#wpfm-cont-page .wpfm-tabs::-webkit-scrollbar { display: none; }

#wpfm-cont-page .wpfm-tab {
  display: flex;
  gap: 6px;
  align-items: center;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.5);
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .01em;
  position: relative;
  transition: color .15s;
}
#wpfm-cont-page .wpfm-tab:hover { color: rgba(255,255,255,.8); }
#wpfm-cont-page .wpfm-tab.active { color: #ffcc4d; }
#wpfm-cont-page .wpfm-tab.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  height: 3px;
  background: #ffcc4d;
  border-radius: 3px 3px 0 0;
}

/* ── Last updated ── */
#wpfm-cont-page .wpfm-last {
  color: rgba(255,255,255,.4);
  font-size: 12px;
  margin: 8px 0 16px;
}

/* ══════════════════════════════════════════
   TABLE — اسکرول افقی، همه ستون‌ها حفظ می‌شن
   ══════════════════════════════════════════ */

/* wrapper: اسکرول افقی + نشانگر سایه */
#wpfm-cont-page .wpfm-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  margin-top: 8px;
  /* سایه راست برای نشان دادن scroll */
  background:
    linear-gradient(to right, transparent calc(100% - 20px), rgba(0,0,0,.4)),
    linear-gradient(to left, transparent calc(100% - 20px), rgba(0,0,0,.4));
  background-attachment: local, local;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,204,77,.3) transparent;
}
#wpfm-cont-page .wpfm-table-wrap::-webkit-scrollbar {
  height: 4px;
}
#wpfm-cont-page .wpfm-table-wrap::-webkit-scrollbar-track {
  background: rgba(255,255,255,.04);
  border-radius: 4px;
}
#wpfm-cont-page .wpfm-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(255,204,77,.35);
  border-radius: 4px;
}

#wpfm-cont-page .wpfm-table {
  width: 100%;
  border-collapse: collapse;
  /* عرض ثابت — scrollbar موبایل همه ستون‌ها رو نشون میده */
  min-width: 520px;
}

#wpfm-cont-page thead th {
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 11px;
  color: rgba(255,255,255,.35);
  font-weight: 800;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,204,77,.12);
  white-space: nowrap;
  /* ثابت ماندن header هنگام اسکرول عمودی */
  position: sticky;
  top: 0;
  background: rgba(24,18,3,.95);
  backdrop-filter: blur(8px);
  z-index: 1;
}

#wpfm-cont-page tbody td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 15px;
  vertical-align: middle;
  white-space: nowrap;
}
#wpfm-cont-page tbody tr:last-child td { border-bottom: none; }
#wpfm-cont-page tbody tr:hover { background: rgba(255,255,255,.025); }

/* ── ستون currency — sticky چپ ── */
#wpfm-cont-page thead th:first-child,
#wpfm-cont-page tbody td:first-child {
  position: sticky;
  left: 0;
  background: rgba(24,18,3,.97);
  z-index: 2;
  /* سایه برای جدا کردن از بقیه */
  box-shadow: 2px 0 8px rgba(0,0,0,.4);
}
#wpfm-cont-page thead th:first-child {
  z-index: 3; /* بالای sticky td */
}

/* ── Currency cell ── */
#wpfm-cont-page .wpfm-currency {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  min-width: 0;
}
#wpfm-cont-page .wpfm-currency > div { min-width: 0; flex: 1; }

#wpfm-cont-page .wpfm-flag {
  width: 42px; height: 28px;
  border-radius: 5px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
#wpfm-cont-page .wpfm-flag img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

#wpfm-cont-page .wpfm-cur-name {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 128px;
  display: block;
  text-decoration: none;
  transition: color .15s;
}
#wpfm-cont-page a.wpfm-cur-name:hover { color: #ffcc4d; text-decoration: underline; }

#wpfm-cont-page .wpfm-code {
  color: rgba(255,255,255,.4);
  font-weight: 700;
  font-size: 13px;
  display: block; /* زیر اسم ارز — نه ستون جداگانه */
}

#wpfm-cont-page .wpfm-buy,
#wpfm-cont-page .wpfm-sell { color: #ffcc4d; font-weight: 800; font-size: 15px; }

/* ── View button ── */
#wpfm-cont-page .wpfm-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.4);
  border-radius: 8px;
  color: #c9a84c;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .03em;
  transition: all .15s;
  white-space: nowrap;
}
#wpfm-cont-page .wpfm-view-btn::after { content: '→'; font-size: 13px; transition: transform .15s; }
#wpfm-cont-page .wpfm-view-btn:hover { background: rgba(201,168,76,.2); border-color: #c9a84c; color: #e0c060; }
#wpfm-cont-page .wpfm-view-btn:hover::after { transform: translateX(3px); }
#wpfm-cont-page .wpfm-track { display: none; }

#wpfm-cont-page .wpfm-empty {
  color: rgba(255,255,255,.4);
  padding: 28px 14px;
  text-align: center;
  font-size: 13px;
}

/* ── نشانگر scroll برای موبایل ── */
#wpfm-cont-page .wpfm-scroll-hint {
  display: none;
  font-size: 11px;
  color: rgba(255,204,77,.55);
  text-align: right;
  margin-bottom: 6px;
  letter-spacing: .02em;
}

/* ── Hide theme cruft ── */
body.wpfm-rates-page .page-title, body.wpfm-rates-page .page-header,
body.wpfm-rates-page .entry-header, body.wpfm-rates-page .title-wrapper,
body.wpfm-rates-page .breadcrumbs, body.wpfm-rates-page .breadcrumb,
body.wpfm-rates-page .woodmart-page-title, body.wpfm-rates-page .wd-page-title,
body.wpfm-rates-page [class*="page-title"], body.wpfm-rates-page [class*="breadcrumb"],
body.wpfm-rates-page [class*="breadcrumbs"] { display: none !important; }


/* ── Numbers — center aligned ── */
#wpfm-cont-page .wpfm-num {
  text-align: center !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

/* ── Action cell — center ── */
#wpfm-cont-page .wpfm-action-cell {
  text-align: center !important;
}

/* ── thead numeric + action headers — center ── */
#wpfm-cont-page thead th:not(:first-child) {
  text-align: center !important;
}

/* ══════════════════════════════════════════
   CARD LIST — موبایل
   ══════════════════════════════════════════ */

#wpfm-cont-page .wpfm-card-list {
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

#wpfm-cont-page .wpfm-cur-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 12px 14px;
  transition: background .15s;
}
#wpfm-cont-page .wpfm-cur-card:active {
  background: rgba(255,255,255,.07);
}

/* header کارت: پرچم + نام + کد + دکمه */
#wpfm-cont-page .wpfm-cur-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
#wpfm-cont-page .wpfm-cur-card-info {
  flex: 1;
  min-width: 0;
}
#wpfm-cont-page .wpfm-cur-card-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#wpfm-cont-page .wpfm-cur-card-name:hover { color: #ffcc4d; }
#wpfm-cont-page .wpfm-cur-card-code {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  font-weight: 700;
  letter-spacing: .04em;
}

/* سه قیمت در یه ردیف */
#wpfm-cont-page .wpfm-cur-card-prices {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

#wpfm-cont-page .wpfm-price-box {
  border-radius: 8px;
  padding: 7px 8px;
  text-align: center;
}
#wpfm-cont-page .wpfm-price-lbl {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 3px;
}
#wpfm-cont-page .wpfm-price-val {
  font-size: 13px;
  font-weight: 700;
}

/* Global */
#wpfm-cont-page .wpfm-price-box.global {
  background: rgba(255,255,255,.04);
}
#wpfm-cont-page .wpfm-price-box.global .wpfm-price-lbl { color: rgba(255,255,255,.35); }
#wpfm-cont-page .wpfm-price-box.global .wpfm-price-val { color: rgba(255,255,255,.7); }

/* Buy */
#wpfm-cont-page .wpfm-price-box.buy.has-price {
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.2);
}
#wpfm-cont-page .wpfm-price-box.buy.has-price .wpfm-price-lbl { color: rgba(34,197,94,.6); }
#wpfm-cont-page .wpfm-price-box.buy.has-price .wpfm-price-val { color: #4ade80; }

/* Sell */
#wpfm-cont-page .wpfm-price-box.sell.has-price {
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.2);
}
#wpfm-cont-page .wpfm-price-box.sell.has-price .wpfm-price-lbl { color: rgba(201,168,76,.6); }
#wpfm-cont-page .wpfm-price-box.sell.has-price .wpfm-price-val { color: #c9a84c; }

/* no-price (مقدار صفر یا خالی) */
#wpfm-cont-page .wpfm-price-box.no-price {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.05);
}
#wpfm-cont-page .wpfm-price-box.no-price .wpfm-price-lbl { color: rgba(255,255,255,.18); }
#wpfm-cont-page .wpfm-price-box.no-price .wpfm-price-val { color: rgba(255,255,255,.2); }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

/* Tablet ≤900px */
@media (max-width: 900px) {
  #wpfm-cont-page .wpfm-wrap { margin: 40px auto 60px; padding: 0 16px; }
  #wpfm-cont-page .wpfm-surface { padding: 28px 24px; border-radius: 18px; }
  #wpfm-cont-page h1 { font-size: 36px; }
}

/* Mobile ≤680px */
@media (max-width: 680px) {
  #wpfm-cont-page .wpfm-wrap { margin: 24px auto 48px; padding: 0 10px; }
  #wpfm-cont-page .wpfm-surface { padding: 18px 12px; border-radius: 14px; }
  #wpfm-cont-page h1 { font-size: 26px; margin-bottom: 12px; }
  #wpfm-cont-page .wpfm-tab { font-size: 12px; padding: 8px 10px; gap: 4px; }
  #wpfm-cont-page .wpfm-tab svg { display: none; }

  /* نشانگر scroll */
  #wpfm-cont-page .wpfm-scroll-hint { display: block; }

  /* اندازه جدول موبایل:
     - Currency sticky چپ: ~160px
     - Code: 60px
     - Global: 80px
     - Buy: 80px
     - Sell: 80px
     - Action: 80px
     = ~540px min-width → scrollable در 390px */
  #wpfm-cont-page .wpfm-table { min-width: 480px; }

  #wpfm-cont-page thead th { padding: 10px 8px; font-size: 10px; }
  #wpfm-cont-page tbody td { padding: 12px 8px; font-size: 13px; }

  #wpfm-cont-page .wpfm-flag { width: 32px; height: 22px; border-radius: 4px; }
  #wpfm-cont-page .wpfm-cur-name { font-size: 13px; max-width: 100px; }
  #wpfm-cont-page .wpfm-code { font-size: 11px; }
  #wpfm-cont-page .wpfm-buy,
  #wpfm-cont-page .wpfm-sell { font-size: 13px; }

  #wpfm-cont-page .wpfm-view-btn {
    padding: 5px 10px;
    font-size: 11px;
  }
  #wpfm-cont-page .wpfm-view-btn::after { display: none; }
}

/* Small mobile ≤420px */
@media (max-width: 420px) {
  #wpfm-cont-page .wpfm-surface { padding: 14px 10px; }
  #wpfm-cont-page h1 { font-size: 22px; }

  /* ستون اول (currency) کمتر padding */
  #wpfm-cont-page tbody td:first-child { padding-left: 6px; padding-right: 6px; }
  #wpfm-cont-page thead th:first-child { padding-left: 6px; padding-right: 6px; }

  #wpfm-cont-page .wpfm-flag { width: 28px; height: 19px; }
  #wpfm-cont-page .wpfm-cur-name { font-size: 12px; max-width: 85px; }
  #wpfm-cont-page tbody td { padding: 10px 7px; font-size: 12px; }
  #wpfm-cont-page thead th { padding: 8px 7px; font-size: 9px; }
}
