
/* =========================
   RTP PANEL
   ========================= */

.rtpX-panel{
  position:relative;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  padding:16px;
  margin:18px 0;
  box-shadow:0 10px 24px rgba(0,0,0,.08);

  overflow:hidden;          /* keeps line/ticks inside rounded panel */
  --rtpX-safePad: 14px;     /* clamp padding for diagonal endpoints */
}

.rtpX-header{ margin-bottom:12px; }

.rtpX-title{
  font-size:20px;
  font-weight:800;
  color:#444;
  line-height:1.2;
}


.rtpX-connector{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:2; /* below dot (3), above bar (1) */
}

.rtpX-connectorSvg{
  width:100%;
  height:100%;
  display:block;
}

.rtpX-connectorLine{
  stroke:#9c9c9c;
  stroke-width:2;
  stroke-linecap:round;
}


.rtpX-wrap{
  display:flex;
  flex-direction:column;
  gap:10px;
}


.rtpX-barWrap{
  position:relative;
  width:100%;
  --bar-h: 36px;
}

.rtpX-bar{
  position:relative;
  height: var(--bar-h);
  width:100%;
  border-radius:10px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
  display:flex;
  z-index:1;
}

.rtpX-seg{ height:100%; }
.rtpX-seg--low{ width:12.5%; background:#d64545; }
.rtpX-seg--below{ width:17.5%; background:#f08a2f; }
.rtpX-seg--avg{ width:40%; background:#f2c14e; }
.rtpX-seg--above{ width:17.5%; background:#43b7b1; }
.rtpX-seg--high{ width:12.5%; background:#57c84d; }


.rtpX-marker{
  position:absolute;
  top: calc(var(--bar-h) / 2);
  left: clamp(10px, var(--rtp-pos, 0%), calc(100% - 10px));
  transform: translate(-50%, -50%);
  pointer-events:none;
  z-index:3;
}

.rtpX-dot{
  width:20px;
  height:20px;
  border-radius:50%;
  background:#fff;
  border:4px solid #000;
  box-shadow:0 3px 10px rgba(0,0,0,.35);
}


.rtpX-zoneLabels{
  display:flex;
  width:100%;
  margin-top:2px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.2px;
  line-height:1.1;
  z-index:4;
}

.rtpX-z{
  display:flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  opacity:.95;
}


.rtpX-z--low{   width:12.5%; color:#d64545; }
.rtpX-z--below{ width:17.5%; color:#f08a2f; }
.rtpX-z--avg{   width:40%;   color:#c59b00; }
.rtpX-z--above{ width:17.5%; color:#43b7b1; }
.rtpX-z--high{  width:12.5%; color:#57c84d; }


.rtpX-axis{
  position:relative;
  height:34px;
  width:100%;
  z-index:4;
}

.rtpX-axisLine{
  position:absolute;
  left:0;
  right:0;
  top:8px;
  height:2px;
  background:#cfcfcf;
  border-radius:2px;
}

.rtpX-tick{
  position:absolute;
  top:0;
  transform:translateX(-50%);
  text-align:center;
  min-width:34px;
}

.rtpX-tickMark{
  display:block;
  width:2px;
  height:10px;
  background:#9c9c9c;
  margin:4px auto 4px;
}

.rtpX-tickLabel{
  display:block;
  font-size:12px;
  font-weight:700;
  color:#8a8a8a;
  line-height:1;
}


.rtpX-warning{
  margin-top:8px;
  font-size:13px;
  font-weight:700;
  line-height:1.45;
  color:#8a8a8a;
  text-align:center;
  z-index:4;
}

.rtpX-warning strong{
  color:#666;
  font-weight:800;
}


@media (max-width:768px){
  .rtpX-title{ font-size:18px; }
  .rtpX-zoneLabels{ font-size:11px; }

  .rtpX-panel{ --rtpX-safePad: 10px; }

  .rtpX-barWrap{ --bar-h: 30px; }

  .rtpX-dot{
    width:16px;
    height:16px;
    border-width:3px;
  }

  .rtpX-marker{
    left: clamp(9px, var(--rtp-pos, 0%), calc(100% - 9px));
  }

  .rtpX-tickLabel{ font-size:11px; }

  .rtpX-warning{
    font-size:12px;        /* ↑ mobile bump */
    margin-top:6px;
    padding:0 8px;
    box-sizing:border-box;
  }
}

/* =========================
   VOLATILITY WIDGET
   ========================= */

.vol-panel{
  position:relative;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  padding:16px;
  margin:18px 0;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  overflow:hidden;
}

.vol-header{ margin-bottom:12px; }

.vol-title{
  font-size:20px;
  font-weight:800;
  color:#444;
  line-height:1.2;
}

.vol-gauge{
  width:420px;
  max-width:100%;
}

.vol-gauge__svg{
  width:100%;
  height:auto;
  display:block;
}


.seg{
  stroke:none;
  shape-rendering:geometricPrecision;
}

.seg-0 { fill:#2e7d32; }   /* Low */
.seg-1 { fill:#43a047; }   /* Medium-low */
.seg-2 { fill:#fdd835; }   /* Medium */
.seg-3 { fill:#fb8c00; }   /* Medium-high */
.seg-4 { fill:#e53935; }   /* High */
.seg-5 { fill:#b71c1c; }   /* Extreme */


.cutout{
  fill:#ffffff;
}


.needle-base{
  fill:#f1f1f1;
}

.pivot{
  fill:#3a3a3a;
}


.needle{
  transform-origin:0px 0px;  /* SVG translated to center */
  transform:rotate(var(--needle-angle,0deg));
  transition:transform 300ms ease;
}

.needle__shape{
  fill:#3a3a3a;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.25));
}


.gauge-label{
  font:700 11px/1 system-ui,-apple-system,Segoe UI,Roboto,Arial;
  fill:#111;
}

.vol-explainer{
  margin-top:8px;
  font-size:13px;
  font-weight:700;
  line-height:1.45;
  color:#8a8a8a;
  text-align:center;
}


.bankroll-icon{
  width:2em;
  height:2em;
  vertical-align:middle;
  margin-right:0.4em;
}

.bankroll-sheet-row .col,
.sheet-row .col{
  display:flex;
  align-items:center;
}


@media (max-width:768px){
  .vol-title{ font-size:18px; }
  .vol-explainer{ font-size:12px; }
}

/* =========================
   FEATURES PANEL
   ========================= */

.features-panel{
  position: relative;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 16px;
  margin: 18px 0;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  overflow: hidden;
}

.features-header{
  margin-bottom: 12px;
}

.features-title{
  font-size: 20px;
  font-weight: 800;
  color: #444;
  line-height: 1.2;
}


.slot-features-wrap{
  width: 100%;
  margin-top: 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.slot-features-wrap .row{
  margin-left: 0;
  margin-right: 0;
}


.slot-cell{
  min-height: 115px;
  padding: 18px 10px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 9px;

  background: #fff;

  border-right: 1px solid rgba(0,0,0,.08);
  border-bottom: 1px solid rgba(0,0,0,.08);
}


.slot-features-wrap .col-3:nth-child(4n) .slot-cell{
  border-right: 0;
}


.slot-features-wrap .col-3:nth-last-child(-n + 4) .slot-cell{
  border-bottom: 0;
}


@media (min-width: 992px){

  .slot-cell{
    min-height: 92px;
    padding: 14px 8px;
    gap: 7px;
  }

  .slot-cell__label{
    font-size: 13.5px;
  }
}


.slot-cell__label{
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  color: #6b7280;
  max-width: 90%;
}


.slot-cell__icon{
  width: 24px;
  height: 24px;
  display: block;
}

.slot-cell__icon.is-true{
  color: #84cc16;
}

.slot-cell__icon.is-false{
  color: #dc2626;
}


@media (max-width:768px){
  .features-title{ font-size:18px; }
}

@media (max-width: 575px){

  .slot-cell{
    min-height: 100px;
    padding: 14px 6px;
    gap: 8px;
  }

  .slot-cell__label{
    font-size: 13px;
  }

  .slot-cell__icon{
    width: 21px;
    height: 21px;
  }
}


.features-meter-32{
  display: grid;
  grid-template-columns: repeat(32, 1fr);
  gap: 3px;

  width: 100%;
  height: 18px;

  margin: 10px 0 14px 0;
}

.features-meter-32__seg{
  display: block;
  height: 100%;
  border-radius: 999px;
  background: rgba(0,0,0,.12);
}

.features-meter-32__seg.is-on{
  background: #84cc16;
}

@media (max-width: 575px){
  .features-meter-32{
    height: 15px;
    gap: 2px;
  }
}








