/* ==========================================================
   Orderbook Page – Scoped Styles
   Applies ONLY inside `.place-order`
   ========================================================== */

.place-order {
  margin-top: 2rem;
}

/* ==========================================================
   Pillar Layout
   ========================================================== */

.place-order .po-pillar {
  background: transparent;
}

/* ==========================================================
   Header Cards (COMPACT)
   ========================================================== */

.place-order .po-header-card {
  padding: 16px 20px;              /* ↓ reduced height */
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    #1c2129 0%,
    #171b22 100%
  );
  border: 1px solid #242a33;
  margin-bottom: 16px;
}

/* Title */
.place-order .po-header-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Number badge */
.place-order .po-index {
  background: #10141b;
  border: 1px solid #2a313d;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Subtitle */
.place-order .po-subtitle {
  font-size: 0.9rem;
  margin-bottom: 6px;
  line-height: 1.3;
  color: #c9d1d9;
}

/* Description suggests height reduction */
.place-order .po-desc {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  color: #9aa3ad;
}

/* ==========================================================
   Options Grid (LTP / Bid / Ask cards)
   ========================================================== */

.place-order .po-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

/* Option Cards */
.place-order .po-option {
  border-radius: 12px;
  padding: 14px 14px;
  border: 1px solid transparent;
  background: #151a22;
}

/* Code label */
.place-order .po-option code {
  display: inline-block;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #0e131b;
  color: #e6edf3;
}

/* Option description */
.place-order .po-option-desc {
  font-size: 0.85rem;
  line-height: 1.35;
  margin: 0;
  color: #9aa3ad;
}

/* ==========================================================
   BUY / SELL Color Semantics
   ========================================================== */

.place-order .po-option.po-buy {
  background: linear-gradient(
    180deg,
    #123525 0%,
    #0f2b1d 100%
  );
  border-color: #1f5c3e;
}

.place-order .po-option.po-sell {
  background: linear-gradient(
    180deg,
    #3a1a1a 0%,
    #2f1414 100%
  );
  border-color: #6b2a2a;
}

/* Neutral (LTP / LTQ) */
.place-order .po-option.po-regular {
  background: linear-gradient(
    180deg,
    #202632 0%,
    #1a1f2a 100%
  );
  border-color: #2d3442;
}

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

@media (max-width: 900px) {
  .place-order .po-options-grid {
    grid-template-columns: 1fr;
  }

  .place-order .po-header-card {
    padding: 14px 16px;
  }
}

.orderbook-visual-card {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  background: #0e0e0e;
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  padding: 20px;
  margin: 32px 0;
}

.ob-visual-media img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #222;
}

.ob-visual-text h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.ob-visual-text ul {
  padding-left: 18px;
  margin: 12px 0;
}

.ob-visual-text li {
  margin-bottom: 6px;
}

.ob-note {
  font-size: 0.9rem;
  color: #b0b0b0;
}
