/*------------------------------------
  4 COLUMNS LAYOUT (main content)
-------------------------------------*/
.col-headline {
    flex: 0 0 30%;
    border-right: 1px solid #555;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .col-economics {
    flex: 0 0 30%;
    border-right: 1px solid #555;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .col-sp500 {
    flex: 0 0 28%;
    border-right: 1px solid #555;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .col-clock {
    flex: 0 0 12%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  /* Block titles & content boxes */
  .block-title {
    flex: 0 0 auto;
    text-align: center;
    font-weight: bold;
    padding: 8px;
    background: #111;
    border-bottom: 1px solid #444;
    color: #fff;
  }
  .block-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px;
    text-align: center;
    color: #ccc;
  }
  
  /*------------------------------------
    NEWS, ECON, EARNINGS, etc. CARDS
  -------------------------------------*/
  .newswire-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin-bottom: 10px;
  }
  .news-item {
    display: flex;
    flex-direction: column;
    background: #111;
    border: 1px solid #444;
    padding: 8px;
    border-radius: 4px;
  }
  .news-line1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
  }
  .news-line2 {
    display: flex;
    flex-direction: column;
    margin-bottom: 4px;
  }
  .extra-space-before-tickers {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .news-datetime {
    color: #0ff;
    font-size: 12px;
    min-width: 100px;
  }
  .news-headline {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    flex: 1;
  }
  .news-icon {
    color: #fff;
    font-size: 14px;
    cursor: default;
  }
  .news-link-icon,
  .news-modal-icon {
    color: #00bfff;
    font-size: 12px;
    margin-left: 4px;
    cursor: pointer;
  }
  .signal-force {
    display: flex;
    align-items: center;
    margin-left: 8px;
  }
  .signal-force .bar {
    width: 6px;
    height: 14px;
    margin: 0 1px;
    border-radius: 1px;
    cursor: pointer;
  }
  .bar-on {
    background-color: #00bfff;
  }
  .bar-off {
    background-color: #444;
  }
  .news-description {
    font-size: 12px;
    color: #aaa;
    margin: 2px 0;
    line-height: 1.4;
  }
  .news-ticker-btn.half-size {
    min-height: 16px;
    padding: 0 4px;
    background-color: #04578e;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #00bfff;
    border-radius: 2px;
    box-shadow:
      0 0 2px  #00bfff,
      0 0 3px  #00bfff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s, transform 0.2s;
  }
  .news-ticker-btn.half-size:hover,
  .news-ticker-btn.half-size:focus {
    box-shadow:
      0 0 3px  #00bfff,
      0 0 5px  #00bfff;
    transform: scale(1.07);
  }
  
  /* Economics, Earnings, etc. remain basically as is */
  .econ-row1, .econ-row2 {
    flex: 0 0 33.33%;
    border-bottom: 1px solid #555;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .econ-row3 {
    flex: 1;
    display: flex;
    border-bottom: 1px solid #555;
    overflow: hidden;
  }
  .ofp-left-col, .ofp-right-col {
    flex: 0 0 50%;
    border-right: 1px solid #555;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .ofp-right-col {
    border-right: none;
  }
  
  /* Economics Card */
  .econ-card {
    background: #111;
    border: 1px solid #444;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    color: #ccc;
    display: flex;
    flex-direction: column;
  }
  .econ-line1,
  .econ-line2,
  .econ-line3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
  }
  .econ-datetime {
    color: #0ff;
    font-size: 12px;
  }
  .econ-hour {
    color: #0ff;
    font-size: 12px;
  }
  .econ-name {
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    flex: 1;
  }
  .econ-icon {
    color: #fff;
    font-size: 14px;
    cursor: default;
  }
  .econ-future-ticker {
    background-color: #04578e;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid #00bfff;
    border-radius: 2px;
    padding: 2px 4px;
    box-shadow:
      0 0 2px  #00bfff,
      0 0 3px  #00bfff;
  }
  .econ-prev,
  .econ-forecast,
  .econ-actual {
    font-size: 11px;
    color: #aaa;
  }
  
  /* Earnings Card */
  .earnings-card {
    background: #111;
    border: 1px solid #444;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    color: #ccc;
    display: flex;
    flex-direction: column;
  }
  .earnings-line1,
  .earnings-line2,
  .earnings-line3,
  .earnings-line4 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
  }
  .earnings-date {
    color: #0ff;
    font-size: 12px;
  }
  .earnings-hour {
    color: #0ff;
    font-size: 12px;
  }
  .earnings-stock-name {
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    flex: 1;
  }
  .earnings-icon {
    color: #fff;
    font-size: 14px;
    cursor: default;
  }
  .earnings-info {
    font-size: 11px;
    color: #aaa;
  }
  .earnings-future-ticker {
    background-color: #04578e;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid #00bfff;
    border-radius: 2px;
    padding: 2px 4px;
    box-shadow:
      0 0 2px  #00bfff,
      0 0 3px  #00bfff;
  }
  
  /* OFP Card */
  .ofp-card {
    background: #111;
    border: 1px solid #444;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    color: #ccc;
    display: flex;
    flex-direction: column;
  }
  .ofp-line1 {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .ofp-ticker {
    background-color: #04578e;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid #00bfff;
    border-radius: 2px;
    padding: 2px 4px;
  }
  .ofp-pattern {
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 3px;
  }
  .bullish-tag {
    background-color: #04578e;
    border: 1px solid #00bfff;
    box-shadow:
      0 0 2px #00bfff,
      0 0 3px #00bfff;
  }
  .bearish-tag {
    background-color: #8e0404;
    border: 1px solid #ff0000;
    box-shadow:
      0 0 2px #ff0000,
      0 0 3px #ff0000;
  }
  .ofp-status {
    font-size: 11px;
    color: #aaa;
  }
  .ofp-status.upcoming {
    color: #0ff;
  }
  .ofp-status.happening {
    color: #f90;
  }
  
  /* Volatility Card */
  .volt-card {
    background: #111;
    border: 1px solid #444;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    color: #ccc;
    display: flex;
    flex-direction: column;
  }
  .volt-line1 {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .volt-ticker {
    background-color: #04578e;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid #00bfff;
    border-radius: 2px;
    padding: 2px 4px;
  }
  .volt-status {
    font-size: 11px;
    color: #aaa;
  }
  .volt-status.now {
    color: #f90;
  }
  .volt-line2 {
    margin-top: 4px;
  }
  .volt-reason {
    font-size: 11px;
    color: #aaa;
    margin: 0;
    line-height: 1.4;
  }
  
  /* SP500 + Sectors */
  .sp-row1, .sp-row2 {
    flex: 1;
    border-bottom: 1px solid #555;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
  }
  
  /* CLOCK + TRADE */
  .clock-row1 {
    height: 120px;
    border-bottom: 1px solid #555;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
  }
  .clock-row2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
  }
  .timezone-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    margin: 0 auto;
  }
  .radio-options {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-bottom: 8px;
  }
  .radio-options label {
    margin: 0 8px;
    cursor: pointer;
    color: #fff;
  }
  .radio-options input[type="radio"] {
    transform: scale(0.8);
    margin-right: 3px;
    accent-color: #fff;
  }
  .ny-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #clock-time {
    font-size: 24px;
    font-family: monospace;
    color: #0ff;
  }
  #clock-label {
    font-size: 12px;
    color: #fff;
    margin-top: 4px;
    padding-bottom: 8px;
  }
  
  .trade-card {
    background: #111;
    border: 1px solid #444;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    color: #ccc;
    display: flex;
    flex-direction: column;
    text-align: left;
  }
  .trade-line1,
  .trade-line2,
  .trade-line3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
  }
  .trade-ticker {
    background-color: #04578e;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border: 1px solid #00bfff;
    border-radius: 2px;
    padding: 2px 4px;
  }
  .timeframe-tag {
    background-color: orange;
    border: 1px solid orange;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 2px;
  }
  .trade-entry,
  .trade-target,
  .trade-stop {
    color: #aaa;
    font-size: 11px;
  }
  .trade-success-label {
    font-size: 11px;
    color: #ccc;
  }