@charset "utf-8";

/* ============================================================
   IQ-Style Quick Trade Card
   ============================================================ */
.iq-trade-card {
  position: relative;
  background-color: var(--bt-card-bg);
  border-radius: 16px;
  box-shadow: var(--bt-card-shadow);
  overflow: hidden;
  transition: background-color .2s, box-shadow .2s;
}

body.dark .iq-trade-card {
  box-shadow: 0 2px 16px rgba(0, 0, 0, .3);
}

.iq-trade-layout {
  display: flex;
  align-items: stretch;
}

/* --- Chart Area --- */
.iq-chart-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--bt-border);
  position: relative;
  min-width: 0;
}

.iq-chart-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--bt-border);
  flex-shrink: 0;
  gap: 12px;
}

.iq-asset-info {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.iq-asset-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00c853;
  flex-shrink: 0;
}

.iq-asset-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--bt-text);
  white-space: nowrap;
}

.iq-asset-arrow {
  color: var(--bt-text);
  opacity: .5;
}

.iq-asset-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(75, 169, 140, .15);
  color: var(--bt-accent);
  font-weight: 600;
}

.iq-clock-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.iq-clock-icon {
  font-size: 14px;
  color: var(--bt-text);
  opacity: .4;
}

.iq-clock {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--bt-text);
  letter-spacing: 1px;
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
}

/* Chart body */
.iq-chart-body {
  flex: 1;
  position: relative;
  padding: 0;
  cursor: crosshair;
  overflow: hidden;
  touch-action: none;
}

.iq-chart-body canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Overlay tools (inside chart, bottom-left) */
.iq-chart-overlay-tools {
  position: absolute;
  left: 14px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(20, 20, 35, .75);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  padding: 4px;
  z-index: 5;
  opacity: .6;
  transition: opacity .2s;
}
.iq-chart-overlay-tools:hover {
  opacity: 1;
}

.iq-overlay-btn {
  width: 30px;
  height: 28px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: #ccc;
  cursor: pointer;
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 0;
}
.iq-overlay-btn:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.iq-overlay-timeframe {
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #4fc3f7;
  letter-spacing: .5px;
  white-space: nowrap;
}
.iq-overlay-timeframe:hover {
  color: #81d4fa;
}

.iq-overlay-divider {
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, .12);
  margin: 2px 0;
}

/* Timeframe Selector Popup */
.iq-tf-popup {
  display: none;
  position: absolute;
  left: 52px;
  bottom: 40px;
  width: 200px;
  background: rgba(28, 28, 46, .94);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 10px;
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .06);
}
.iq-tf-popup.active {
  display: block;
}
.iq-tf-header {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
  padding: 0 2px;
}
.iq-tf-desc {
  font-size: 10px;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 8px;
  line-height: 1.3;
  padding: 0 2px;
}
.iq-tf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3px;
}
.iq-tf-item {
  padding: 6px 4px;
  border-radius: 5px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background .15s, color .15s;
}
.iq-tf-item:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.iq-tf-item.active {
  background: rgba(79, 195, 247, .18);
  color: #4fc3f7;
  font-weight: 700;
}

/* --- Trade Panel --- */
.iq-trade-panel {
  width: 260px;
  flex-shrink: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 1px solid var(--bt-border);
}

/* Balance bar */
.iq-balance-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bt-input-bg);
  border: 1px solid var(--bt-border);
}
.iq-balance-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--bt-text);
  opacity: .45;
  white-space: nowrap;
}
.iq-balance-value {
  flex: 1;
  text-align: right;
  font-size: 16px;
  font-weight: 800;
  color: var(--bt-accent);
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-variant-numeric: tabular-nums;
}
.iq-balance-refresh {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--bt-text);
  opacity: .3;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s, transform .3s;
  flex-shrink: 0;
}
.iq-balance-refresh:hover {
  opacity: .7;
}
.iq-balance-refresh:active {
  transform: rotate(180deg);
}

.iq-panel-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.iq-panel-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--bt-text);
  opacity: .4;
  letter-spacing: .3px;
}

/* Amount control */
.iq-amount-control {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 12px;
  background: var(--bt-input-bg);
  border: 1px solid var(--bt-border);
  overflow: hidden;
  transition: border-color .2s;
}
.iq-amount-control:focus-within {
  border-color: var(--bt-accent);
}

.iq-amount-btn {
  width: 38px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,.03);
  color: var(--bt-text);
  opacity: .5;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s, background .15s;
  flex-shrink: 0;
}
.iq-amount-btn:hover {
  opacity: 1;
  background: rgba(255,255,255,.07);
}

.iq-amount-input {
  flex: 1;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--bt-text);
  font-variant-numeric: tabular-nums;
  outline: none;
  min-width: 0;
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
}

/* Expiry selector */
.iq-expiry-selector {
  display: flex;
  gap: 3px;
  border-radius: 10px;
  background: var(--bt-input-bg);
  padding: 3px;
  border: 1px solid var(--bt-border);
}

.iq-expiry-btn {
  flex: 1;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--bt-text);
  opacity: .5;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 0;
  cursor: pointer;
  transition: all .2s;
}
.iq-expiry-btn:hover {
  opacity: .8;
  background: rgba(255,255,255,.04);
}
.iq-expiry-btn.active {
  background: var(--bt-accent);
  color: #fff;
  opacity: 1;
  box-shadow: 0 2px 10px rgba(75,169,140,.35);
}

/* Profit display with donut gauge */
.iq-profit-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,200,83,.08), rgba(0,200,83,.015));
  border: 1px solid rgba(0,200,83,.1);
  position: relative;
  overflow: hidden;
}

.iq-profit-pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,200,83,.1), transparent 70%);
  animation: profitPulse 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes profitPulse {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}

.iq-profit-ring {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.iq-donut {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.iq-donut-bg {
  fill: none;
  stroke: rgba(255,255,255,.06);
  stroke-width: 2.5;
}
.iq-donut-fill {
  fill: none;
  stroke: url(#donutGrad);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: 106.81;
  stroke-dashoffset: 16.02;
  transition: stroke-dashoffset .6s cubic-bezier(.4,0,.2,1);
}
.iq-donut-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: #00e676;
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  text-shadow: 0 0 8px rgba(0,230,118,.4);
  padding-top: 1px;
}

.iq-profit-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.iq-profit-pct {
  font-size: 17px;
  font-weight: 800;
  color: #00e676;
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  line-height: 1;
  text-shadow: 0 0 12px rgba(0,230,118,.3);
}
.iq-profit-amount {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  color: var(--bt-text);
  opacity: .55;
  white-space: nowrap;
}
.iq-profit-amount strong {
  color: #00e676;
  font-weight: 700;
  opacity: 1;
}

.iq-profit-live {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 6px rgba(0,230,118,.6);
  animation: liveBlink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(0,230,118,.6); }
  50% { opacity: .3; box-shadow: 0 0 2px rgba(0,230,118,.2); }
}

/* HIGHER / LOWER buttons */
.iq-trade-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.iq-btn-higher,
.iq-btn-lower {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  padding: 11px 0;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: transform .1s, box-shadow .2s, filter .15s;
  letter-spacing: .5px;
  position: relative;
  overflow: hidden;
}
.iq-btn-higher:active,
.iq-btn-lower:active {
  transform: scale(.97);
}

.iq-btn-higher {
  background: linear-gradient(135deg, #00e676, #00c853);
  box-shadow: 0 4px 20px rgba(0,200,83,.3);
}
.iq-btn-higher:hover {
  box-shadow: 0 6px 25px rgba(0,200,83,.45);
  filter: brightness(1.05);
}

.iq-btn-lower {
  background: linear-gradient(135deg, #ff5252, #e53935);
  box-shadow: 0 4px 20px rgba(255,82,82,.3);
}
.iq-btn-lower:hover {
  box-shadow: 0 6px 25px rgba(255,82,82,.45);
  filter: brightness(1.05);
}

.iq-btn-higher i,
.iq-btn-lower i {
  font-size: 16px;
}

/* Panel footer */
.iq-panel-footer {
  text-align: center;
  padding-top: 2px;
}
.iq-panel-footer-text {
  font-size: 10px;
  color: var(--bt-text);
  opacity: .2;
  letter-spacing: .2px;
}

/* Active trades */
/* ── Position Bar (IQ Option style) ── */
.iq-pos-bar {
  position: relative;
  z-index: 8;
}

.iq-pos-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 16px;
  font-size: 11px;
  background: var(--bt-card-bg);
  border-top: 1px solid var(--bt-border);
}

.iq-pos-label {
  font-weight: 700;
  color: var(--bt-text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.iq-pos-count {
  background: #ff5252;
  color: #fff;
  font-size: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.iq-pos-invest,
.iq-pos-pl {
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.iq-pos-invest { color: var(--bt-text); opacity: .6; }
.iq-pos-pl.up { color: #00c853; }
.iq-pos-pl.down { color: #ff5252; }

.iq-pos-toggle {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--bt-text);
  opacity: .5;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: opacity .15s, background .15s;
}
.iq-pos-toggle:hover { opacity: 1; background: rgba(255,255,255,.06); }
.iq-pos-toggle i { font-size: 10px; transition: transform .2s; transform: rotate(180deg); }
.iq-pos-bar.open .iq-pos-toggle i { transform: rotate(0deg); }
.iq-pos-bar.open .iq-pos-toggle span::after { content: ''; }

.iq-pos-table-wrap {
  display: none;
  overflow-x: auto;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  background: var(--bt-card-bg);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--bt-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .4);
  max-height: 280px;
  overflow-y: auto;
}
.iq-pos-bar.open .iq-pos-table-wrap { display: block; }

.iq-pos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  white-space: nowrap;
}
.iq-pos-table th {
  padding: 6px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--bt-text);
  opacity: .35;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--bt-border);
  background: rgba(0,0,0,.08);
}
.iq-pos-table td {
  padding: 8px 12px;
  color: var(--bt-text);
  border-bottom: 1px solid var(--bt-border);
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.iq-pos-table tr:last-child td { border-bottom: none; }

.iq-pos-dir {
  font-weight: 700;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}
.iq-pos-dir.higher { background: rgba(0,200,83,.15); color: #00c853; }
.iq-pos-dir.lower { background: rgba(255,82,82,.15); color: #ff5252; }

.iq-pos-timer {
  color: #ffc107;
  font-weight: 600;
}
.iq-pos-price-cur { font-weight: 600; }
.iq-pos-pnl { font-weight: 700; }
.iq-pos-pnl.up { color: #00c853; }
.iq-pos-pnl.down { color: #ff5252; }

.iq-pos-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 6px 12px;
  border-top: 1px solid var(--bt-border);
  font-size: 11px;
  background: rgba(0,0,0,.08);
}
.iq-pos-total {
  color: var(--bt-text);
  opacity: .6;
  font-size: 11px;
}
.iq-pos-total .val {
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-variant-numeric: tabular-nums;
}

.iq-pos-empty {
  text-align: center;
  padding: 16px;
  color: var(--bt-text);
  opacity: .3;
  font-size: 12px;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
  .iq-trade-layout {
    flex-direction: column;
    min-height: auto;
  }
  .iq-chart-area {
    border-right: none;
    border-bottom: 1px solid var(--bt-border);
  }
  .iq-chart-body {
    min-height: 250px;
  }
  .iq-trade-panel {
    width: 100%;
    padding: 14px;
    border-left: none;
    border-top: 1px solid var(--bt-border);
  }
  .iq-balance-bar {
    flex-direction: row;
    gap: 8px;
  }
  .iq-profit-display {
    padding: 10px 12px;
  }
  .iq-trade-buttons {
    flex-direction: row;
    gap: 8px;
  }
  .iq-btn-higher,
  .iq-btn-lower {
    flex: 1;
  }
  .iq-panel-footer {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .iq-chart-topbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
  }
  .iq-clock {
    font-size: 16px;
  }
  .iq-chart-body {
    min-height: 200px;
  }
  .iq-tf-popup {
    left: 0;
    bottom: auto;
    top: 0;
    width: auto;
    max-width: calc(100vw - 24px);
  }
}

/* ── History Button ── */
.iq-history-btn {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: var(--bt-text);
  opacity: .45;
  cursor: pointer;
  transition: opacity .2s, background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 0;
  font-size: 11px;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-left: auto;
  flex-shrink: 0;
}
.iq-history-btn:hover {
  opacity: .7;
  background: rgba(255,255,255,.06);
}
.iq-history-btn i {
  font-size: 10px;
}

/* ── History Overlay ── */
.iq-history-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(3px);
}
.iq-history-overlay.active {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.iq-history-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--bt-bg);
  overflow: hidden;
}

.iq-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--bt-border);
  flex-shrink: 0;
}
.iq-history-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--bt-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.iq-history-close {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--bt-text);
  opacity: .5;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s, background .15s;
}
.iq-history-close:hover {
  opacity: 1;
  background: var(--bt-border);
}

.iq-history-stats {
  display: flex;
  gap: 6px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--bt-border);
  flex-shrink: 0;
}
.iq-stat-chip {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--bt-input-bg);
  color: var(--bt-text);
  opacity: .8;
  font-weight: 600;
  white-space: nowrap;
}
.iq-stat-chip .val { font-variant-numeric: tabular-nums; }
.iq-stat-won { color: #00c853; }
.iq-stat-lost { color: #ff5252; }

.iq-history-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.iq-history-body::-webkit-scrollbar { width: 4px; }
.iq-history-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.iq-history-loading {
  text-align: center;
  padding: 40px;
  color: var(--bt-text);
  opacity: .4;
  font-size: 12px;
}
.iq-history-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--bt-text);
  opacity: .3;
  font-size: 13px;
}

/* Row Card */
.iq-hrow {
  padding: 12px 18px;
  border-bottom: 1px solid var(--bt-border);
  transition: background .12s;
}
.iq-hrow:last-child { border-bottom: none; }
.iq-hrow:hover { background: rgba(255, 255, 255, .02); }

.iq-hrow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.iq-hrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}
.iq-hrow-badge .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.iq-hrow-badge.won .status-dot { background: #00c853; }
.iq-hrow-badge.lost .status-dot { background: #ff5252; }
.iq-hrow-badge.draw .status-dot { background: #ffc107; }
.iq-hrow-badge.won { color: #00c853; }
.iq-hrow-badge.lost { color: #ff5252; }
.iq-hrow-badge.draw { color: #ffc107; }

.iq-hrow-result {
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
}
.iq-hrow-result.won { color: #00c853; }
.iq-hrow-result.lost { color: #ff5252; }
.iq-hrow-result.draw { color: #ffc107; }

.iq-hrow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}
.iq-hrow-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding: 2px 0;
}
.iq-hrow-label {
  color: var(--bt-text);
  opacity: .4;
  font-size: 10px;
}
.iq-hrow-val {
  color: var(--bt-text);
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}
.iq-hrow-val.dir-higher { color: #00c853; font-weight: 600; }
.iq-hrow-val.dir-lower { color: #ff5252; font-weight: 600; }

.iq-hrow-prices {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .03);
  font-size: 11px;
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
}
.iq-hrow-prices .lbl {
  font-size: 9px;
  color: var(--bt-text);
  opacity: .4;
  min-width: 28px;
}
.iq-hrow-prices .price {
  color: var(--bt-text);
  font-variant-numeric: tabular-nums;
}
.iq-hrow-prices .arrow {
  color: var(--bt-text);
  opacity: .25;
  font-size: 10px;
  margin: 0 2px;
}
.iq-hrow-prices .price.up { color: #00c853; }
.iq-hrow-prices .price.down { color: #ff5252; }

/* Footer / Pagination */
.iq-history-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-top: 1px solid var(--bt-border);
  flex-shrink: 0;
}
.iq-hf-btn {
  padding: 5px 14px;
  border: 1px solid var(--bt-border);
  border-radius: 6px;
  background: transparent;
  color: var(--bt-text);
  font-size: 11px;
  cursor: pointer;
  transition: background .15s;
}
.iq-hf-btn:hover { background: var(--bt-border); }
.iq-hf-btn:disabled { opacity: .3; pointer-events: none; }
.iq-hf-page {
  font-size: 11px;
  color: var(--bt-text);
  opacity: .5;
  font-variant-numeric: tabular-nums;
}
