/* ========== INSTRUMENT INFO BAR ========== */
.instrument-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px 32px 14px;
  background: #1a1a1f;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.inst-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
}

.inst-breadcrumb a {
  color: #5a5a6a;
  text-decoration: none;
  transition: color 0.15s;
}

.inst-breadcrumb a:hover {
  color: #5cb8e6;
}

.inst-breadcrumb svg {
  color: #3a3a4a;
}

.inst-breadcrumb-current {
  color: #8a8a9a;
}

.inst-bar-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inst-bar-symbol {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #e0e0e8;
  letter-spacing: -0.3px;
}

.exchange-badge {
  font-size: 11px;
  font-weight: 600;
  color: #8a8a9a;
  background: rgba(255,255,255,0.06);
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.inst-bar-metrics {
  display: flex;
  align-items: flex-end;
  gap: 0;
}

.inst-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0 20px;
}

.inst-metric:last-child {
  padding-right: 0;
}

.inst-metric-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.metric-label {
  font-size: 10px;
  font-weight: 600;
  color: #4a4a5a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 15px;
  font-weight: 600;
  color: #e0e0e8;
  font-variant-numeric: tabular-nums;
}

.metric-sub {
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
}

.metric-sub.positive { color: #4ecb71; }
.metric-sub.negative { color: #e65c5c; }

.expiry-countdown {
  color: #5cb8e6 !important;
}

/* ========== GREEKS BAR ========== */
.greeks-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 32px;
  height: 40px;
  background: rgba(26, 26, 31, 0.6);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.greek-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,0.04);
}

.greek-item:last-child {
  border-right: none;
}

.greek-label {
  font-size: 11px;
  font-weight: 500;
  color: #5a5a6a;
}

.greek-value {
  font-size: 12px;
  font-weight: 600;
  color: #a8a8b8;
  font-variant-numeric: tabular-nums;
}

.greek-value.negative { color: #e65c5c; }

/* ========== TRADE MAIN ========== */
.trade-main {
  padding: 28px 40px 80px;
}

.trade-card {
  background: #1a1a1f;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 20px;
}

.trade-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.trade-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #e0e0e8;
}

/* ========== CHART + ORDER TOP GRID ========== */
.trade-top-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  margin-bottom: 16px;
}

/* Chart Card */
.trade-chart-card {
  display: flex;
  flex-direction: column;
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.chart-type-tabs {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  padding: 2px;
}

.chart-type-btn {
  background: none;
  border: none;
  color: #6a6a7a;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.chart-type-btn:hover {
  color: #e0e0e8;
}

.chart-type-btn.active {
  color: #e0e0e8;
  background: rgba(255,255,255,0.06);
}

.trade-chart-area {
  display: flex;
  flex: 1;
  min-height: 0;
}

.chart-y-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 12px;
  font-size: 10px;
  color: #4a4a5a;
  font-variant-numeric: tabular-nums;
  min-width: 55px;
  text-align: right;
  padding-bottom: 22px;
}

.chart-svg-wrap {
  flex: 1;
  position: relative;
}

.trade-perf-chart {
  width: 100%;
  height: 240px;
  display: block;
}

.chart-entry-label {
  position: absolute;
  top: 14px;
  right: 8px;
  font-size: 10px;
  font-weight: 600;
  color: #5cb8e6;
  background: rgba(92, 184, 230, 0.12);
  padding: 2px 8px;
  border-radius: 3px;
}

.chart-x-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #4a4a5a;
  padding-top: 8px;
}

/* ========== ORDER PANEL ========== */
.trade-order-panel {
  display: flex;
  flex-direction: column;
}

.order-side-toggle {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 3px;
}

.order-side-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
  color: #6a6a7a;
}

.order-side-btn.buy.active {
  background: rgba(78, 203, 113, 0.15);
  color: #4ecb71;
}

.order-side-btn.sell.active {
  background: rgba(230, 92, 92, 0.15);
  color: #e65c5c;
}

.order-side-btn:hover:not(.active) {
  color: #a8a8b8;
}

.order-type-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.order-type-label {
  font-size: 12px;
  color: #6a6a7a;
  font-weight: 500;
}

.order-type-tabs {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
  padding: 2px;
}

.order-type-btn {
  background: none;
  border: none;
  color: #6a6a7a;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}

.order-type-btn.active {
  color: #e0e0e8;
  background: rgba(255,255,255,0.06);
}

.order-field {
  margin-bottom: 14px;
}

.order-field label {
  display: block;
  font-size: 12px;
  color: #6a6a7a;
  font-weight: 500;
  margin-bottom: 6px;
}

.order-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.order-input-wrap:focus-within {
  border-color: rgba(92, 184, 230, 0.3);
}

.order-step-btn {
  background: none;
  border: none;
  color: #6a6a7a;
  font-size: 16px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.order-step-btn:hover {
  color: #e0e0e8;
  background: rgba(255,255,255,0.04);
}

.order-input {
  flex: 1;
  background: none;
  border: none;
  color: #e0e0e8;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  padding: 10px 0;
  outline: none;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
}

.order-field-sub {
  font-size: 11px;
  color: #5a5a6a;
  margin-top: 4px;
  text-align: right;
}

.order-quick-btns {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.quick-btn {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: #6a6a7a;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.quick-btn:hover {
  color: #e0e0e8;
  border-color: rgba(255,255,255,0.12);
}

.quick-btn.active {
  color: #5cb8e6;
  border-color: rgba(92, 184, 230, 0.3);
  background: rgba(92, 184, 230, 0.06);
}

.order-options {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.order-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6a6a7a;
  cursor: pointer;
}

.order-checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #5cb8e6;
}

.order-summary {
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 16px;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6a6a7a;
  padding: 4px 0;
}

.order-summary-row.total {
  color: #e0e0e8;
  font-weight: 600;
  font-size: 13px;
  padding-top: 8px;
}

.order-submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}

.order-submit-btn.buy {
  background: linear-gradient(135deg, #4ecb71, #3dba60);
  color: #fff;
}

.order-submit-btn.buy:hover {
  background: linear-gradient(135deg, #5dd97f, #4ecb71);
  box-shadow: 0 4px 20px rgba(78, 203, 113, 0.3);
}

.order-submit-btn.sell {
  background: linear-gradient(135deg, #e65c5c, #d44a4a);
  color: #fff;
}

.order-submit-btn.sell:hover {
  background: linear-gradient(135deg, #f06b6b, #e65c5c);
  box-shadow: 0 4px 20px rgba(230, 92, 92, 0.3);
}

.order-balance-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #5a5a6a;
}

/* ========== INFO GRID (OB + TRADES + POSITION) ========== */
.trade-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* ========== ORDER BOOK ========== */
.ob-spread {
  font-size: 11px;
  color: #5a5a6a;
}

.ob-header-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: #4a4a5a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 4px;
}

.ob-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  position: relative;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.ob-price {
  width: 80px;
  font-weight: 500;
}

.ob-row.ask .ob-price { color: #e65c5c; }
.ob-row.bid .ob-price { color: #4ecb71; }

.ob-size {
  width: 60px;
  text-align: center;
  color: #a8a8b8;
}

.ob-total {
  width: 60px;
  text-align: right;
  color: #6a6a7a;
}

.ob-bar {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  border-radius: 2px;
}

.ob-bar.ask {
  background: rgba(230, 92, 92, 0.06);
}

.ob-bar.bid {
  background: rgba(78, 203, 113, 0.06);
}

.ob-spread-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  margin: 4px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ob-mid-price {
  font-size: 16px;
  font-weight: 700;
  color: #e0e0e8;
}

.ob-spread-val {
  font-size: 11px;
  color: #5a5a6a;
}

/* ========== RECENT TRADES ========== */
.rt-header-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: #4a4a5a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 4px;
}

.rt-list {
  max-height: 280px;
  overflow-y: auto;
}

.rt-list::-webkit-scrollbar {
  width: 3px;
}

.rt-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
}

.rt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.rt-price {
  width: 80px;
  font-weight: 500;
}

.rt-row.buy .rt-price { color: #4ecb71; }
.rt-row.sell .rt-price { color: #e65c5c; }

.rt-size {
  width: 50px;
  text-align: center;
  color: #a8a8b8;
}

.rt-time {
  width: 70px;
  text-align: right;
  color: #5a5a6a;
  font-size: 11px;
}

/* ========== YOUR POSITION ========== */
.trade-your-position .trade-card-header {
  margin-bottom: 16px;
}

.pos-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.pos-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pos-detail-label {
  font-size: 11px;
  font-weight: 500;
  color: #5a5a6a;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pos-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e8;
  font-variant-numeric: tabular-nums;
}

.pos-detail-value.positive { color: #4ecb71; }
.pos-detail-value.negative { color: #e65c5c; }

.pos-action-row {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.pos-action-btn {
  flex: 1;
  padding: 9px 0;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.pos-action-btn.close {
  background: rgba(230, 92, 92, 0.1);
  color: #e65c5c;
}

.pos-action-btn.close:hover {
  background: rgba(230, 92, 92, 0.18);
}

.pos-action-btn.modify {
  background: rgba(255,255,255,0.04);
  color: #8a8a9a;
}

.pos-action-btn.modify:hover {
  background: rgba(255,255,255,0.08);
  color: #e0e0e8;
}

/* ========== OPTION CHAIN ========== */
.trade-option-chain {
  overflow: hidden;
}

.chain-expiry-tabs {
  display: flex;
  gap: 4px;
}

.chain-exp-btn {
  background: none;
  border: none;
  color: #6a6a7a;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.chain-exp-btn:hover {
  color: #e0e0e8;
  background: rgba(255,255,255,0.04);
}

.chain-exp-btn.active {
  color: #5cb8e6;
  background: rgba(92, 184, 230, 0.1);
}

.chain-scroll {
  overflow-x: auto;
}

.chain-table {
  min-width: 900px;
}

.chain-header {
  display: flex;
  align-items: center;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2px;
}

.chain-calls-header,
.chain-puts-header {
  flex: 1;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 12px;
}

.chain-calls-header {
  color: #4ecb71;
}

.chain-puts-header {
  color: #e65c5c;
}

.chain-strike-header {
  width: 90px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #8a8a9a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.chain-row {
  display: flex;
  align-items: center;
  transition: background 0.1s;
}

.chain-row:hover {
  background: rgba(255,255,255,0.02);
}

.chain-calls,
.chain-puts {
  flex: 1;
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #8a8a9a;
}

.chain-calls span,
.chain-puts span {
  width: 18%;
  text-align: right;
}

.chain-strike {
  width: 90px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #e0e0e8;
  flex-shrink: 0;
  position: relative;
  padding: 9px 0;
}

/* ITM call rows */
.chain-row.itm-call .chain-calls {
  background: rgba(78, 203, 113, 0.03);
}

/* ATM row */
.chain-row.atm {
  border-top: 1px solid rgba(92, 184, 230, 0.15);
  border-bottom: 1px solid rgba(92, 184, 230, 0.15);
}

.chain-row.atm .chain-strike {
  color: #5cb8e6;
}

.atm-label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: #5cb8e6;
  letter-spacing: 0.5px;
}

/* Current strike (your position) */
.chain-row.current-strike {
  background: rgba(92, 184, 230, 0.04);
  border-left: 3px solid #5cb8e6;
}

.chain-row.current-strike .chain-strike {
  color: #5cb8e6;
}

.current-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #5cb8e6;
  letter-spacing: 0.5px;
}

.chain-last-highlight {
  color: #e0e0e8 !important;
  font-weight: 600;
}

/* Alternate row shading */
.chain-row:nth-child(even) {
  background: rgba(255,255,255,0.01);
}

.chain-row.current-strike:nth-child(even) {
  background: rgba(92, 184, 230, 0.04);
}

/* ========== EDUCATION TOOLTIPS ========== */
.has-tip {
  position: relative;
  cursor: help;
}

.tip-icon {
  opacity: 0.35;
  vertical-align: middle;
  margin-left: 2px;
  transition: opacity 0.15s;
}

.has-tip:hover .tip-icon {
  opacity: 0.7;
}

.has-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #2a2a32;
  color: #d0d0d8;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  width: 260px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
  white-space: normal;
}

.has-tip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #2a2a32;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 101;
}

.has-tip:hover::after,
.has-tip:hover::before {
  opacity: 1;
  visibility: visible;
}

/* ========== ORDER MODE TOGGLE ========== */
.order-mode-toggle {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 3px;
}

.mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
  color: #6a6a7a;
  font-family: inherit;
}

.mode-btn:hover {
  color: #a8a8b8;
}

.mode-btn.active {
  background: rgba(92, 184, 230, 0.12);
  color: #5cb8e6;
}

.mode-btn svg {
  flex-shrink: 0;
}

/* ========== AI GUIDE MODE ========== */
.order-mode {
  /* container for guide/advanced */
}

.guide-step {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.guide-greeting {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.guide-greeting p {
  margin: 0;
  font-size: 14px;
  color: #a8a8b8;
  line-height: 1.5;
}

.guide-greeting strong {
  color: #e0e0e8;
}

.guide-ai-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(92,184,230,0.2), rgba(92,184,230,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #5cb8e6;
}

.guide-ai-avatar.small {
  width: 24px;
  height: 24px;
}

.guide-goals {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-goal-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.guide-goal-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(92, 184, 230, 0.2);
  transform: translateX(2px);
}

.goal-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.goal-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.goal-text strong {
  font-size: 13px;
  font-weight: 600;
  color: #e0e0e8;
}

.goal-text small {
  font-size: 11px;
  color: #6a6a7a;
}

.guide-goal-btn svg {
  color: #4a4a5a;
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}

.guide-goal-btn:hover svg {
  color: #5cb8e6;
  transform: translateX(2px);
}

/* Guide Step 2: Recommendation */
.guide-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6a6a7a;
  cursor: pointer;
  margin-bottom: 16px;
  transition: color 0.15s;
}

.guide-back:hover {
  color: #5cb8e6;
}

.guide-rec {
  background: rgba(92, 184, 230, 0.06);
  border: 1px solid rgba(92, 184, 230, 0.12);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.guide-rec-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.guide-rec-title {
  font-size: 12px;
  font-weight: 700;
  color: #5cb8e6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.guide-rec-body {
  font-size: 13px;
  color: #a8a8b8;
  line-height: 1.5;
}

.guide-rec-body strong {
  color: #e0e0e8;
}

.guide-rec-details {
  margin-bottom: 16px;
}

.rec-action {
  font-size: 16px;
  font-weight: 700;
  color: #e0e0e8;
  margin-bottom: 4px;
}

.rec-instrument {
  font-size: 12px;
  color: #6a6a7a;
  font-family: 'Inter', monospace;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}

.rec-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rec-detail {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 10px 12px;
}

.rec-detail.full {
  grid-column: 1 / -1;
}

.rec-detail span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #5a5a6a;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.rec-detail strong {
  font-size: 13px;
  font-weight: 600;
  color: #e0e0e8;
}

.guide-place-btn {
  margin-top: 4px;
}

/* ========== AI CHAT WIDGET ========== */
.ai-chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5cb8e6, #4a9cd4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(92, 184, 230, 0.35);
  transition: all 0.2s;
  z-index: 1000;
}

.ai-chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(92, 184, 230, 0.5);
}

.ai-chat-fab.hidden {
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}

.ai-chat-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  height: 520px;
  background: #1a1a1f;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
  z-index: 1001;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  overflow: hidden;
}

.ai-chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(92,184,230,0.12), rgba(92,184,230,0.04));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e8;
}

.chat-ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ecb71;
  box-shadow: 0 0 6px rgba(78, 203, 113, 0.4);
}

.chat-close {
  background: none;
  border: none;
  color: #6a6a7a;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}

.chat-close:hover {
  color: #e0e0e8;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}

.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.chat-msg.user {
  justify-content: flex-end;
}

.chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(92,184,230,0.2), rgba(92,184,230,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #5cb8e6;
}

.chat-msg-bubble {
  max-width: 280px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #c8c8d0;
}

.chat-msg.ai .chat-msg-bubble {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-top-left-radius: 4px;
}

.chat-msg.ai .chat-msg-bubble strong {
  color: #e0e0e8;
}

.chat-msg.user .chat-msg-bubble {
  background: linear-gradient(135deg, rgba(92,184,230,0.15), rgba(92,184,230,0.08));
  border: 1px solid rgba(92,184,230,0.15);
  border-top-right-radius: 4px;
  color: #e0e0e8;
}

.chat-insight {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(92, 184, 230, 0.08);
  border: 1px solid rgba(92, 184, 230, 0.12);
  border-radius: 8px;
  font-size: 12px;
  color: #5cb8e6;
  line-height: 1.4;
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 10px 16px;
  color: #e0e0e8;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.chat-input::placeholder {
  color: #4a4a5a;
}

.chat-input:focus {
  border-color: rgba(92, 184, 230, 0.3);
}

.chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5cb8e6, #4a9cd4);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.chat-send:hover {
  transform: scale(1.06);
  box-shadow: 0 2px 12px rgba(92, 184, 230, 0.3);
}

/* ========== CHART TIMEFRAMES ========== */
.chart-timeframes {
  display: flex;
  gap: 2px;
}

.tf-btn {
  background: none;
  border: none;
  color: #6a6a7a;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.3px;
  font-family: inherit;
}

.tf-btn:hover {
  color: #e0e0e8;
  background: rgba(255,255,255,0.04);
}

.tf-btn.active {
  color: #5cb8e6;
  background: rgba(92, 184, 230, 0.1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .instrument-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .inst-bar-metrics {
    flex-wrap: wrap;
    gap: 8px;
  }
  .inst-metric-divider {
    display: none;
  }
  .inst-metric {
    padding: 0 16px 0 0;
  }
}

@media (max-width: 1024px) {
  .instrument-bar { padding: 16px 20px 14px; }
  .greeks-bar { padding: 0 20px; flex-wrap: wrap; height: auto; padding: 8px 20px; gap: 4px; }
  .greek-item { padding: 6px 12px; }
  .trade-main { padding: 16px 20px 60px; }
  .trade-top-grid { grid-template-columns: 1fr; }
  .trade-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .instrument-bar { padding: 12px 16px; }
  .inst-bar-symbol { font-size: 16px; }
  .greeks-bar { padding: 8px 16px; }
  .trade-main { padding: 12px 16px 60px; }
}
