/* Options Trading — dialog system (shared by every page) */
.ot-modal-backdrop{
  position:fixed; inset:0; z-index:9000; display:flex; align-items:center; justify-content:center;
  padding:16px; background:rgba(6,8,12,.72); backdrop-filter:blur(6px);
  animation:otFade .16s ease-out;
}
.ot-modal{
  width:min(420px,100%); max-height:min(88vh,760px); display:flex; flex-direction:column;
  background:#e5f5c8; color:#152000; border:1px solid #d0e2ae; border-radius:16px;
  box-shadow:0 24px 60px -12px rgba(70,100,10,0.338);
  font-family:"IBM Plex Sans",system-ui,sans-serif;
  animation:otRise .2s cubic-bezier(.2,.7,.3,1);
}
.ot-modal-head{display:flex; align-items:flex-start; gap:10px; padding:14px 14px 10px}
.ot-modal-head h3{margin:0; font-size:14px; font-weight:700; letter-spacing:-.01em}
.ot-modal-head p{margin:3px 0 0; font-size:11px; line-height:1.4; color:#5d7040}
.ot-modal-x{
  margin-left:auto; flex:0 0 auto; width:26px; height:26px; display:grid; place-items:center;
  border-radius:8px; border:1px solid transparent; background:transparent; color:#5d7040;
  cursor:pointer; font-size:15px; line-height:1;
}
.ot-modal-x:hover{background:#1b2130; color:#152000; border-color:#d0e2ae}
.ot-modal-body{padding:0 14px 12px; overflow-y:auto; font-size:12px; color:#c9cfdb}
.ot-modal-foot{display:flex; gap:8px; padding:10px 14px 14px; border-top:1px solid #212734; justify-content:flex-end}

.ot-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  height:32px; padding:0 12px; border-radius:9px; font-size:12px; font-weight:650;
  letter-spacing:-.01em; cursor:pointer; border:1px solid transparent; white-space:nowrap;
  transition:background .15s, border-color .15s, transform .06s;
}
.ot-btn:active{transform:translateY(1px)}
.ot-btn-primary{background:#2f6fed; color:#fff}
.ot-btn-primary:hover{background:#2a63d4}
.ot-btn-ghost{background:#171b26; color:#d7dce6; border-color:#d0e2ae}
.ot-btn-ghost:hover{background:#1e2431}
.ot-btn-up{background:#a3e635; color:#152000}
.ot-btn-up:hover{background:#b4f04a}
.ot-btn-down{background:#ef4444; color:#fff}
.ot-btn-down:hover{background:#e03b3b}
.ot-btn[disabled]{opacity:.5; cursor:not-allowed}

.ot-field{margin:10px 0}
.ot-field label{display:block; font-size:10px; text-transform:uppercase; letter-spacing:.09em; color:#5d7040; margin-bottom:5px}
.ot-input{
  width:100%; height:34px; border-radius:9px; border:1px solid #d0e2ae; background:#f0f9de;
  color:#152000; padding:0 10px; font:500 13px 'SF Mono','Courier New',Courier,monospace,monospace; outline:none;
}
.ot-input:focus{border-color:#9acd32; box-shadow:0 0 0 3px rgba(154,205,50,.18)}
.ot-chips{display:grid; grid-template-columns:repeat(3,1fr); gap:6px}
.ot-chip{
  height:32px; border-radius:9px; border:1px solid #d0e2ae; background:#f0f9de; color:#5d7040;
  font:650 11px "IBM Plex Sans",sans-serif; cursor:pointer;
}
.ot-chip:hover{border-color:#39415a}
.ot-chip[aria-pressed="true"]{background:rgba(154,205,50,.16); border-color:#9acd32; color:#8ab4ff}
.ot-row{display:flex; justify-content:space-between; gap:10px; padding:6px 0; font-size:11.5px; color:#5d7040}
.ot-row b{color:#152000; font-weight:600}
.ot-note{font-size:10.5px; color:#7d8698; line-height:1.45; margin-top:8px}

.ot-list{display:flex; flex-direction:column; gap:6px; margin:4px 0}
.ot-list-item{display:flex; gap:9px; align-items:flex-start; padding:9px 10px; border:1px solid #212734; border-radius:10px; background:#f0f9de}
.ot-list-item .dot{width:7px; height:7px; border-radius:50%; margin-top:5px; flex:0 0 auto}
.ot-list-item h4{margin:0; font-size:11.5px; font-weight:650; color:#e8ecf3}
.ot-list-item p{margin:2px 0 0; font-size:10.5px; color:#8b94a6; line-height:1.4}

.ot-progress{height:6px; border-radius:99px; background:#1b2130; overflow:hidden; margin:10px 0 4px}
.ot-progress i{display:block; height:100%; width:0; background:#9acd32; border-radius:99px; transition:width .25s ease}
.ot-meter{display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-top:8px}
.ot-meter div{background:#f0f9de; border:1px solid #212734; border-radius:10px; padding:8px 9px}
.ot-meter span{display:block; font-size:9.5px; letter-spacing:.08em; text-transform:uppercase; color:#7d8698}
.ot-meter b{display:block; margin-top:3px; font:700 13px 'SF Mono','Courier New',Courier,monospace,monospace; color:#152000}

@keyframes otFade{from{opacity:0}to{opacity:1}}
@keyframes otRise{from{opacity:0; transform:translateY(8px) scale(.985)}to{opacity:1; transform:none}}
