/* ============================
   Trade module styles
   - Admin pages (/admin/trade...)
   - Index banner (.tradeBanner)
   ============================ */

/* Admin layout */
.tradeWrap{
  padding: 20px 12px 40px;
}
.tradeCard{
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
  padding: 18px 18px 16px;
}
.tradeHint{
  color: rgba(15,23,42,.72);
  font-size: 13px;
  line-height: 1.4;
}

.tradeGrid{
  display: grid;
  gap: 12px;
}
.tradeGrid--2{
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tradeLabel{
  font-size: 13px;
  font-weight: 700;
  color: rgba(15,23,42,.78);
  margin: 0 0 6px;
}

.tradeInput{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.18);
  background: rgba(255,255,255,.95);
  outline: none;
  font-size: 14px;
  line-height: 1.2;
}
.tradeInput:focus{
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}

.tradeBtnRow{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tradeBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.18);
  background: rgba(15,23,42,.95);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}
.tradeBtn:hover{
  background: rgba(15,23,42,1);
}
.tradeBtn--ghost{
  background: rgba(255,255,255,.85);
  color: rgba(15,23,42,.92);
}
.tradeBtn--ghost:hover{
  background: rgba(255,255,255,1);
}

/* Table */
.tradeTable{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
}
.tradeTable thead th{
  text-align: left;
  font-size: 12px;
  letter-spacing: .02em;
  color: rgba(15,23,42,.72);
  background: rgba(15,23,42,.04);
  padding: 10px 10px;
  border-bottom: 1px solid rgba(15,23,42,.10);
}
.tradeTable tbody td{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  vertical-align: middle;
  font-size: 13px;
}
.tradeTable tbody tr:last-child td{
  border-bottom: 0;
}

/* Mobile: stack fields */
@media (max-width: 720px){
  .tradeCard{ padding: 16px 14px 14px; }
  .tradeGrid--2{ grid-template-columns: 1fr; }
}

/* ============================
   Index banner
   - Title & period on separate lines
   ============================ */
.tradeBanner{
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 10px 40px 10px 14px;  /* right padding for arrow */
  border-radius: 14px;

  background: rgba(0,0,0,.88);   /* darker */
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);

  text-decoration: none;
  line-height: 1.2;
}
.tradeBanner:hover{
  background: rgba(0,0,0,.92);
}

.tradeBanner *{ color: #fff !important; }

.tradeBanner .tradeTitle{
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
}
.tradeBanner .tradePeriod{
  display: block;
  font-weight: 600;
  opacity: .96;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
}
.tradeBanner .tradeArrow{
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 900;
  opacity: .95;
}

@media (max-width: 520px){
  .tradeBanner{
    padding: 7px 10px;
    border-radius: 12px;
    max-width: 100%;
  }
  .tradeBanner .tradeTitle{ font-size: 13px; }
  .tradeBanner .tradePeriod{ font-size: 12px; }
}
