/* SaKaLaNs Regulatory & News Agent v1.0 */

.reg-agent-card{
  border-color:rgba(84,137,255,.20)!important;
  background:
    radial-gradient(circle at 90% 0,rgba(72,102,255,.12),transparent 34%),
    linear-gradient(145deg,#111a2d,#0b1323)!important;
}

.reg-card-metrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
  margin:14px 0;
}

.reg-card-metrics span{
  display:flex;
  flex-direction:column;
  padding:9px;
  border-radius:10px;
  background:rgba(255,255,255,.035);
}

.reg-card-metrics b{
  color:#fff!important;
  font-size:17px;
}

.reg-card-metrics small{
  color:#7f90ad!important;
  font-size:9px;
}

.reg-overlay{
  position:fixed;
  inset:0;
  z-index:99999;
  padding:20px;
  overflow:auto;
  background:rgba(3,7,17,.86);
  backdrop-filter:blur(13px);
}

.reg-overlay.hidden{
  display:none!important;
}

.reg-shell{
  width:min(1500px,100%);
  min-height:calc(100vh - 40px);
  margin:auto;
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(108,132,224,.15);
  background:
    radial-gradient(circle at 82% 0,rgba(91,68,255,.12),transparent 26%),
    linear-gradient(160deg,#0d1628,#08101e);
}

.reg-header{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:24px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.reg-header h2{
  margin:3px 0;
  color:#fff!important;
}

.reg-header p{
  color:#8696b2!important;
}

.reg-header-actions{
  display:flex;
  align-items:flex-start;
  gap:10px;
}

#closeRegulatoryNews{
  width:36px;
  height:36px;
  border:0;
  border-radius:10px;
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:22px;
  cursor:pointer;
}

.reg-guardian{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  padding:12px 24px;
  border-bottom:1px solid rgba(255,255,255,.05);
}

.reg-guardian span{
  display:flex;
  align-items:center;
  gap:7px;
  color:#9eabc2!important;
  font-size:11px;
}

.reg-light{
  width:9px;
  height:9px;
  border-radius:50%;
}

.reg-light.green{
  background:#39e1a3;
  box-shadow:0 0 12px rgba(57,225,163,.8);
}

.reg-light.yellow{
  background:#ffc857;
  box-shadow:0 0 12px rgba(255,200,87,.75);
}

.reg-light.red{
  background:#ff637c;
  box-shadow:0 0 12px rgba(255,99,124,.75);
}

.reg-tabs{
  display:flex;
  gap:4px;
  flex-wrap:wrap;
  padding:10px 20px;
  border-bottom:1px solid rgba(255,255,255,.05);
}

.reg-tabs button{
  border:0;
  border-radius:9px;
  padding:9px 13px;
  color:#8999b5;
  background:transparent;
  cursor:pointer;
}

.reg-tabs button.active{
  color:#fff;
  background:rgba(70,112,255,.12);
}

.reg-content{
  padding:20px;
}

.reg-metrics{
  display:grid;
  grid-template-columns:repeat(7,minmax(100px,1fr));
  gap:9px;
  margin-bottom:18px;
}

.reg-metric{
  min-height:85px;
  padding:13px;
  border-radius:13px;
  border:1px solid rgba(255,255,255,.055);
  background:rgba(255,255,255,.025);
}

.reg-metric small{
  display:block;
  color:#71829e!important;
  margin-bottom:10px;
}

.reg-metric strong{
  color:#fff!important;
  font-size:25px;
}

.reg-action-border{
  border-color:rgba(255,192,72,.22);
}

.reg-critical-border{
  border-color:rgba(255,86,117,.25);
}

.reg-panel{
  padding:18px;
  border-radius:17px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(7,14,27,.58);
}

.reg-panel h3{
  color:#fff!important;
}

.reg-panel-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
}

.reg-news-row,
.reg-match-row{
  padding:15px 0;
  border-top:1px solid rgba(255,255,255,.055);
}

.reg-news-row:first-child,
.reg-match-row:first-child{
  border-top:0;
}

.reg-news-meta{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.reg-news-meta>span:first-child{
  color:#8495b2!important;
}

.reg-news-row h4{
  margin:8px 0;
  color:#f1f5ff!important;
}

.reg-news-row p{
  color:#96a5bd!important;
}

.reg-priority{
  display:inline-flex;
  border-radius:999px;
  padding:4px 8px;
  font-size:9px;
  font-weight:900;
}

.reg-info{
  background:rgba(61,155,255,.12);
  color:#74bfff!important;
}

.reg-action{
  background:rgba(255,188,69,.12);
  color:#ffd06d!important;
}

.reg-critical{
  background:rgba(255,73,111,.13);
  color:#ff8299!important;
}

.reg-review{
  color:#ffcb66!important;
  font-size:9px;
  font-weight:800;
}

.reg-ai-summary{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin-top:12px;
}

.reg-ai-summary>div{
  padding:11px;
  border-radius:11px;
  background:rgba(255,255,255,.025);
}

.reg-ai-summary small{
  display:block;
  color:#70829f!important;
  margin-bottom:5px;
}

.reg-ai-summary span{
  color:#d8e2f4!important;
}

.reg-source-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.reg-source-card{
  padding:14px;
  border-radius:13px;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.055);
}

.reg-source-card strong{
  color:#fff!important;
}

.reg-source-card p{
  color:#8292ae!important;
  overflow-wrap:anywhere;
}

.reg-source-official{
  display:block;
  margin-top:5px;
  color:#62dfb0!important;
  font-size:8px;
  font-weight:900;
}

.reg-source-bottom{
  display:flex;
  justify-content:space-between;
  color:#6f819e!important;
  font-size:9px;
}

.reg-match-row{
  display:flex;
  justify-content:space-between;
  gap:15px;
}

.reg-match-row strong{
  color:#eef3ff!important;
}

.reg-match-row p{
  color:#8191ac!important;
}

.reg-score{
  color:#6cc4ff!important;
  font-weight:900;
}

.reg-activity article{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px 0;
  border-top:1px solid rgba(255,255,255,.05);
}

.reg-activity strong{
  color:#dce6f8!important;
}

.reg-activity small{
  color:#71819d!important;
}

.reg-settings-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.reg-settings-grid article{
  padding:13px;
  border-radius:12px;
  background:rgba(255,255,255,.03);
}

.reg-settings-grid small{
  display:block;
  color:#71819e!important;
  margin-bottom:6px;
}

.reg-settings-grid strong{
  color:#eaf0fb!important;
}

@media(max-width:1100px){
  .reg-metrics{
    grid-template-columns:repeat(4,1fr);
  }

  .reg-source-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .reg-ai-summary{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:700px){
  .reg-overlay{
    padding:0;
  }

  .reg-shell{
    min-height:100vh;
    border-radius:0;
  }

  .reg-header{
    flex-direction:column;
  }

  .reg-metrics,
  .reg-source-grid,
  .reg-ai-summary,
  .reg-settings-grid{
    grid-template-columns:1fr;
  }

  .reg-match-row{
    flex-direction:column;
  }
}