/* Transfer page */

.tr-stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.tr-stat{
  border-radius: 16px;
  border: 1px solid rgba(219,233,255,0.18);
  background: #292041;
  padding: 18px 18px;
  box-shadow: 0 16px 28px rgba(0,0,0,0.25);
}
.tr-stat-top{ display:flex; align-items:center; gap: 14px; }
.tr-stat-info{ flex: 1 1 auto; min-width: 0; }
.tr-stat-k{ color: rgba(255,255,255,0.78); font-weight: 700; font-size: 0.78rem; }
.tr-stat-v{ font-weight: 700; font-size: 1.5rem; margin-top: 2px; line-height: 1.15; }
.tr-stat-s{ color: rgba(255,255,255,0.48); font-weight: 600; font-size: 0.7rem; margin-top: 3px; }
.tr-stat-ic{
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}
.tr-stat-ic img{
  width: 28px;
  height: 28px;
  object-fit: contain;
  display:block;
}
.tr-stat-green{ background: #292041; }
.tr-ic-green{ background: #1F5A37; }
.tr-ic-green img{
  /* tint white PNG to green */
  filter: brightness(0) saturate(100%) invert(64%) sepia(43%) saturate(515%) hue-rotate(94deg) brightness(94%) contrast(88%);
}
.tr-stat-green .tr-stat-v{ color:#34D27A; }
.tr-stat-blue{ background: #292041; }
.tr-ic-blue{ background: #1E2C5C; }
.tr-ic-blue img{
  /* tint white PNG to blue */
  filter: brightness(0) saturate(100%) invert(56%) sepia(67%) saturate(545%) hue-rotate(192deg) brightness(101%) contrast(96%);
}
.tr-stat-blue .tr-stat-v{ color:#5C9EFF; }
.tr-stat-purple{ background: #292041; }
.tr-ic-purple{ background: #3A2A5C; }
.tr-ic-purple img{
  /* tint white PNG to purple */
  filter: brightness(0) saturate(100%) invert(57%) sepia(35%) saturate(1130%) hue-rotate(231deg) brightness(102%) contrast(97%);
}
.tr-stat-purple .tr-stat-v{ color:#B98BFF; }

.tr-panel{
  border-radius: 18px;
  border: 1px solid rgba(219,233,255,0.14);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 18px 28px rgba(0,0,0,0.25);
  padding: 18px 18px;
  position: relative;
  overflow: hidden;
}

/* Gradient like screenshot for Make a Transfer */
.tr-transfer-panel{
  background: linear-gradient(180deg, #171224 0%, #3F3163 52%, #171224 100%);
  border-color: rgba(219,233,255,0.20);
  padding: 26px 28px 28px;
}
.tr-transfer-panel::before{
  content:"";
  position:absolute;
  inset: 0;
  background: radial-gradient(1200px 520px at 55% 35%, rgba(63,49,99,0.55), rgba(23,18,36,0));
  pointer-events:none;
}
.tr-transfer-panel > *{ position: relative; z-index: 1; }
.tr-panel-title{
  color: rgba(255,255,255,0.95);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.tr-form{ width: 100%; padding: 6px 4px 4px; }
.tr-block{
  border-radius: 16px;
  background: #282828;
  border: 1px solid rgba(219,233,255,0.10);
  padding: 22px 22px 20px;
}
.tr-block-to{
  background: #DBE9FF21;
  border-color: #0A5BE2;
  box-shadow: 0 0 0 1px rgba(10,91,226,0.65) inset, 0 0 0 4px rgba(10,91,226,0.10);
}
.tr-block .tr-label{ font-size: 0.95rem; color: rgba(255,255,255,0.92); margin-bottom: 12px; }
.tr-block .tr-meta{ font-size: 0.85rem; color: rgba(255,255,255,0.60); margin-top: 12px; }
.tr-label{ color: rgba(255,255,255,0.62); font-weight: 600; font-size: 0.78rem; margin-bottom: 8px; }
.tr-meta{ color: rgba(255,255,255,0.55); font-weight: 600; font-size: 0.78rem; margin-top: 8px; }

.tr-dd-btn{
  background: transparent;
  border: 1px solid rgba(219,233,255,0.22);
  color:#fff;
  border-radius: 10px;
  height: 48px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.tr-dd-btn:hover,
.tr-dd-btn:focus{ background: transparent; color:#fff; box-shadow:none; border-color: rgba(219,233,255,0.45); }
.tr-dd-menu{
  background: #282828;
  border: 1px solid rgba(219,233,255,0.22);
  border-radius: 12px;
  padding: 6px;
}
.tr-dd-item{
  color: rgba(255,255,255,0.88);
  border-radius: 10px;
  padding: 10px 10px;
  font-weight: 600;
  font-size: 0.86rem;
}
.tr-dd-item:hover{ background: rgba(255,255,255,0.08); color:#fff; }

.tr-swap{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #0A5BE2;
  color:#fff;
  display:grid;
  place-items:center;
  margin: 10px auto;
  font-size: 0.95rem;
  box-shadow: 0 12px 18px rgba(10,91,226,0.35);
}

.tr-currency{
  height: 48px;
  border-radius: 10px;
  background: #545454;
  border: 1px solid rgba(219,233,255,0.22);
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 0 14px;
  color:#fff;
  font-weight: 700;
}
.tr-flag{ width: 22px; height: 22px; border-radius: 50%; object-fit: cover; display:block; }

.tr-req-btn{
  height: 50px;
  border-radius: 12px;
  border: 0;
  background: #0A5BE2;
  color:#fff;
  font-weight: 700;
}
.tr-req-btn:hover{ background:#094fca; color:#fff; }

.tr-terms{ min-height: 520px; }
.tr-terms-panel{ background: #282828; }
.tr-terms-title{ text-decoration: underline; text-underline-offset: 3px; }
.tr-terms-list{ display:grid; gap: 10px; margin-top: 2px; }
.tr-term{ display:flex; gap: 10px; color: rgba(255,255,255,0.74); font-weight: 600; font-size: 0.86rem; }
.tr-bullet{
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: #ffbf2f;
  color:#111;
  font-weight: 800;
  font-size: 0.78rem;
  margin-top: 2px;
  flex: 0 0 auto;
}
.tr-terms-illus{
  position:absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  width: min(440px, 92%);
  pointer-events:none;
  opacity: 0.9;
}
.tr-terms-illus img{ width: 100%; height: auto; display:block; object-fit: contain; }

.tr-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.72rem;
  min-width: 92px;
}
.tr-status-ok{ background:#8BE59F; color:#08210f; border: 1px solid rgba(8,33,15,0.18); }
.tr-status-pending{ background:#DBE9FF; color:#0A5BE2; border: 1px solid rgba(10,91,226,0.22); }
.tr-dt{ color: rgba(255,255,255,0.80); font-weight: 600; }

.tr-recent .cm-table tbody td{ color: rgba(255,255,255,0.92); }
.tr-recent .cm-table tbody td:nth-child(6){ color: rgba(255,255,255,0.92); }

/* Pagination like screenshot */
.tr-pager{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 6px 4px 2px;
}
.tr-perpage{
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  font-size: 0.78rem;
}
.tr-perpage-select{
  height: 34px;
  min-width: 56px;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 8px;
  padding: 4px 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #111;
}
.tr-pager .pagination .page-link{
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.55);
  padding: 6px 10px;
}
.tr-pager .pagination .page-item.active .page-link{
  background: rgba(255,255,255,0.92);
  color: #111;
  border-radius: 6px;
}
.tr-pager .pagination .page-item.disabled .page-link{ opacity: 0.45; }

/* Success modal (match Commissions style) */
.tr-success-modal .modal-dialog{ max-width: 520px; margin-top: 34px; }
.tr-success-content{
  border-radius: 18px;
  border: 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.tr-success-x{
  position:absolute;
  right: 18px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 0;
  background: rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.65);
  display:grid;
  place-items:center;
}
.tr-success-body{ padding: 26px 24px 22px; text-align: center; }
.tr-success-title{
  font-weight: 700;
  color: #111;
  font-size: 1.35rem;
  line-height: 1.18;
  margin: 0 0 10px;
}
.tr-success-sub{
  color: rgba(0,0,0,0.58);
  font-weight: 500;
  font-size: 0.85rem;
  max-width: 420px;
  margin: 0 auto 18px;
}
.tr-success-btn{
  width: min(260px, 100%);
  height: 54px;
  border-radius: 10px;
  background: #0A5BE2;
  border: 0;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 10px auto 0;
}
.tr-success-btn:hover{ background: #094fca; color:#fff; }

/* reuse success illustration helper */
.success-illus-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.success-illus-img {
  width: 280px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ===== Responsive ===== */

/* Large tablets / small desktops */
@media (max-width: 1199.98px){
  .tr-stats{ gap: 14px; }
  .tr-stat{ padding: 16px; }
  .tr-stat-v{ font-size: 1.35rem; }
  .tr-stat-ic{ width: 48px; height: 48px; }
  .tr-stat-ic img{ width: 26px; height: 26px; }
  .tr-transfer-panel{ padding: 22px 22px 24px; }
  .tr-form{ padding: 4px 0 0; }
  .tr-form.px-5{ padding-left: 0 !important; padding-right: 0 !important; }
  .tr-terms{ min-height: 460px; }
}

/* Tablets — stack the transfer / terms columns, keep 3 stat cards if possible */
@media (max-width: 991.98px){
  .tr-stats{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tr-stat-v{ font-size: 1.25rem; }
  .tr-stat-k{ font-size: 0.74rem; }
  .tr-stat-s{ font-size: 0.66rem; }
  .tr-stat-ic{ width: 44px; height: 44px; border-radius: 10px; }
  .tr-stat-ic img{ width: 24px; height: 24px; }
  .tr-block{ padding: 18px; }
  .tr-terms{ min-height: 420px; }
}

/* Small tablets / large phones — 2-up stat cards, more compact form */
@media (max-width: 767.98px){
  .tr-stats{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .tr-stat-purple{ grid-column: span 2; }
  .tr-stat-top{ gap: 12px; }
  .tr-transfer-panel{ padding: 18px 16px 20px; }
  .tr-block{ padding: 16px; border-radius: 14px; }
  .tr-dd-btn{ height: 44px; font-size: 0.9rem; padding: 8px 14px; }
  .tr-currency{ height: 44px; }
  .tr-req-btn{ height: 46px; font-size: 0.95rem; }
  .tr-panel-title{ font-size: 1rem; margin-bottom: 14px; }
  .tr-block .tr-label{ font-size: 0.88rem; margin-bottom: 10px; }

  .tr-terms{ min-height: auto; padding-bottom: 220px; }
  .tr-terms-illus{ width: min(360px, 86%); bottom: 14px; }

  .cm-filters{ align-items: stretch; }
  .cm-filters-left{ width: 100%; }
  .cm-search-wrap, .cm-select-wrap{ flex: 1 1 100%; }
  .cm-search, .cm-select{ width: 100%; }
  .cm-download-btn{ width: 100%; justify-content: center; }

  .tr-pager{ flex-wrap: wrap; justify-content: space-between; gap: 12px; }
  .tr-pager .pagination{ flex-wrap: wrap; }
}

/* Phones — single-column stat cards, tighter spacing */
@media (max-width: 575.98px){
  .tr-stats{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tr-stat-purple{ grid-column: auto; }
  .tr-stat{ padding: 14px; border-radius: 14px; }
  .tr-stat-v{ font-size: 1.4rem; }
  .tr-stat-ic{ width: 50px; height: 50px; }
  .tr-stat-ic img{ width: 28px; height: 28px; }

  .tr-transfer-panel{ padding: 16px 14px 18px; }
  .tr-block{ padding: 14px; }
  .tr-block .tr-label,
  .tr-block .tr-meta{ font-size: 0.82rem; }
  .tr-dd-btn{ font-size: 0.86rem; padding: 8px 12px; }
  .tr-swap{ width: 28px; height: 28px; margin: 8px auto; font-size: 0.85rem; }

  .tr-terms-panel{ padding: 16px 14px 18px; }
  .tr-terms{ padding-bottom: 200px; }
  .tr-terms-illus{ width: min(320px, 92%); bottom: 12px; }
  .tr-term{ font-size: 0.8rem; }

  .cm-card-head{ font-size: 1rem; padding: 10px 14px; }
  .cm-card-body{ padding: 12px 10px 14px; }
  .cm-table{ width: auto; margin: 0 6px 6px; }
  .cm-table thead th,
  .cm-table tbody td{ font-size: 0.78rem; padding: 10px 10px; }

  .tr-pager{ padding: 4px 2px 2px; }
  .tr-perpage{ font-size: 0.74rem; }
  .tr-pager .pagination .page-link{ padding: 4px 8px; font-size: 0.82rem; }
}

