﻿* {
  box-sizing: border-box;
}

.xb-page {
  min-height: 100vh;
  padding: 40px 24px;
  color: #042152;
}

.xb-container {
  max-width: 1120px;
  margin: 0 auto;
}

tr.dnnGridItem > td:first-child img,
tr.dnnGridAltItem > td:first-child img {
  width: 18px; /* عرض دلخواه */
  height: auto; /* حفظ نسبت تصویر */
  object-fit: cover; /* جلوگیری از دفرمه شدن عکس */
}

table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: #fff !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

table th {
  background: #042152 !important;
  color: #fff !important;
  padding: 18px 22px !important;
  font-weight: 600 !important;
  border: none !important;
  position: relative !important;
}

/* خط طلایی زیر هدر */
table th {
  box-shadow: inset 0 -3px #e8aa6d !important;
}

table td {
  padding: 18px 22px !important;
  border: none !important;
  color: #3d4a5d !important;
  transition: 0.25s !important;
}

/* فقط خطوط عمودی */
table th:not(:last-child),
table td:not(:last-child) {
  border-left: 1px solid rgba(4, 33, 82, 0.08) !important;
}

/* خطوط افقی خیلی محو */
table tr {
  border-bottom: 1px solid rgba(4, 33, 82, 0.05) !important;
}

table tr img {
  width: 45px;
  filter: grayscale(1);
}

table tr:last-child {
  border-bottom: none !important;
}

/* Hover */
.dnnGridItem:hover,
.dnnGridAltItem:hover {
  background-color: unset;
}

table tr:hover td {
  color: #042152 !important;
}

/* اولین ستون */
table td:first-child {
  font-weight: 600 !important;
  color: #042152 !important;
}

.dnnGridAltItem {
  background-color: #fff !important;
}

table td a {
  color: #e8aa6d !important;
  text-decoration: underline !important;
}

table th a img {
  display: none;
}

/* ===== HEADER ===== */
.xb-header {
  background: #042152;
  border-radius: 20px;
  padding: 38px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: 0 18px 40px -22px rgba(4, 33, 82, 0.7);
}
.xb-header-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.xb-header-main p {
  color: #e8aa6d;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
#dnn_headerTitle h1,
#dnn_headerTitle h2,
#dnn_headerTitle h3,
#dnn_headerTitle h4,
#dnn_headerTitle h5,
#dnn_headerTitle h6,
#dnn_headerTitle p {
  margin: 0;
  font-size: 54px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.xb-unit h4 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 170, 109, 0.16);
  border: 1px solid rgba(232, 170, 109, 0.45);
  color: #e8aa6d;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  width: fit-content;
}
.xb-header-right {
  text-align: left;
  min-width: 220px;
}
.xb-header-right-label p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}
.xb-total p {
  color: #fff;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}
.xb-accent-line {
  height: 4px;
  width: 64px;
  background: #e8aa6d;
  border-radius: 999px;
  margin-top: 14px;
  margin-right: auto;
}

/* ===== SECTIONS ===== */
.xb-section {
  margin-top: 34px;
}
.xb-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.xb-bar {
  width: 6px;
  height: 24px;
  border-radius: 999px;
}
.xb-bar-gold {
  background: #e8aa6d;
}
.xb-bar-navy {
  background: #042152;
}
.xb-section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #042152;
}

.xb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

/* ===== STAT CARDS ===== */
.xb-card {
  border-radius: 16px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.xb-card-top {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: #e8aa6d;
}
.xb-card-label p {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.5;
}
.xb-card-value p {
  font-size: 34px;
  font-weight: 800;
}

/* light card (Iran) */
.xb-card--light {
  background: #fff;
  border: 1px solid #ece5d7;
}
.xb-card--light .xb-card-label p {
  color: #6a7790;
}
.xb-card--light .xb-card-value p {
  color: #042152;
}

/* dark card (World) */
.xb-card--dark {
  background: #042152;
}
.xb-card--dark .xb-card-label p {
  color: rgba(255, 255, 255, 0.62);
}
.xb-card--dark .xb-card-value p {
  color: #fff;
}

/* ===== COUNTRIES ===== */
.xb-countries {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.xb-box {
  background: #fff;
  border: 1px solid #ece5d7;
  border-radius: 16px;
  padding: 24px;
}
.xb-box-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.xb-tag {
  font-size: 13px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 8px;
}
.xb-tag--export {
  color: #fff;
  background: #e8aa6d;
}
.xb-tag--import {
  color: #fff;
  background: #042152;
}
.xb-box-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #042152;
}
.xb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.chipwrapper p,
.chipwrapper2 p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: #042152;
}
.xb-chip-rank {
  font-weight: 800;
}
.chipwrapper p {
  background: #faf6ef;
  border: 1px solid #e8aa6d;
}
.xb-chip--export .xb-chip-rank {
  color: #e8aa6d;
}
.chipwrapper2 p {
  background: #f3f6fb;
  border: 1px solid #042152;
}
.xb-chip--import .xb-chip-rank {
  color: #042152;
}

/* ===== PRODUCTS ===== */
.xb-products {
  margin-top: 34px;
  background: #fff;
  border: 1px solid #ece5d7;
  border-radius: 16px;
  padding: 26px;
}

.xb-product {
  background: #f6f3ec;
  border: 1px solid #ece5d7;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #042152;
  transition: all 0.15s ease;
}
.xb-product:hover {
  background: #042152;
  color: #fff;
  border-color: #042152;
}

/* ===== CONTACT ===== */
.xb-contact {
  margin-top: 24px;
  background: #042152;
  border-radius: 16px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.xb-phones {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.xb-phone {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.xb-phone-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 500;
}
.xb-phone-number p {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.xb-divider {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.18);
}
.xb-more {
  background: #e8aa6d;
  color: #042152;
  border: none;
  border-radius: 999px;
  padding: 13px 30px;

  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.xb-more:hover {
  background: #f0bd87;
}
.xb-more-arrow {
  font-size: 18px;
}

.console {
  width: 105% !important;
}

.console-small h3 {
  color: #fff;
  font-size: 14px !important;
  margin: 0 !important;
}

.console-small div {
  margin: 10px;
  width: 180px;
  height: 100px !important;
  align-items: center;
  padding: 0px;
  cursor: pointer;
  text-align: center;
  float: right;
  background-color: #042152;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 12px;
  transition: all 250ms ease-in;
  color: #fff;
  padding: 6px;
  border: 1px solid #f5f5f5;
}

.console-small div:hover {
  transform: translateY(-10px);

  transition: all 250ms ease-in;
}

.console-small img {
  float: none;
  /* padding: 10px 0px 0px 0px; */
  width: 36px;
  height: auto;
  margin-bottom: 8px;
}

.console-small img {
  padding: 0 !important;
}
