/* AI STOCK RADAR — Investor Welcome / World Clocks
   Presentation and profile layer only. No signal, scoring, risk, order, or execution dependency. */

#investorWelcomeModule{
  display:grid;
  grid-template-columns:minmax(280px,1.35fr) minmax(420px,2fr);
  gap:9px;
  margin:0 0 10px;
}

.investor-welcome-card,
.market-time-card{
  position:relative;
  overflow:hidden;
  min-height:116px;
  padding:14px;
  background:linear-gradient(155deg,rgba(16,27,36,.97),rgba(7,13,18,.98));
  border:1px solid var(--line-soft,#21394d);
  border-radius:var(--radius,5px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018);
}

.investor-welcome-card::before,
.market-time-card::before{
  content:"";
  position:absolute;
  left:-1px;
  top:14px;
  bottom:14px;
  width:1px;
  background:rgba(121,200,216,.18);
}

.investor-welcome-main{
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0;
}

.investor-avatar-button{
  position:absolute;
  left:14px;
  top:27px;
  flex:0 0 auto;
  width:62px;
  height:62px;
  padding:0;
  border:1px solid rgba(214,168,75,.42);
  border-radius:50%;
  overflow:hidden;
  background:radial-gradient(circle at 35% 30%,#1b3545,#0a141b 72%);
  color:#f4e3b5;
  font:800 19px/1 ui-monospace,Consolas,monospace;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.investor-avatar-button:hover{
  border-color:var(--signal,#d6a84b);
  box-shadow:0 0 0 3px rgba(214,168,75,.08);
}

.investor-avatar-button img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.investor-welcome-copy{min-width:0;flex:1}
.investor-eyebrow{
  color:var(--signal,#d6a84b);
  font:750 7.5px/1 ui-monospace,Consolas,monospace;
  letter-spacing:.16em;
  text-transform:uppercase;
  margin-bottom:6px;
}

#investorGreeting{
  margin:0;
  color:#f1eee7;
  font:700 clamp(19px,2.2vw,28px)/1.02 Georgia,"Times New Roman",serif;
  letter-spacing:-.02em;
}

#investorDailyMessage{
  margin-top:6px;
  color:#9eb0bc;
  font:600 9px/1.45 "Aptos","Helvetica Neue",sans-serif;
}

.investor-discipline{
  display:flex;
  gap:5px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:10px;
}

.investor-discipline span{
  padding:4px 6px;
  border:1px solid rgba(121,200,216,.12);
  border-radius:999px;
  background:rgba(121,200,216,.035);
  color:#718592;
  font:700 7px/1 ui-monospace,Consolas,monospace;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.investor-profile-action{
  position:absolute;
  right:9px;
  top:9px;
  min-height:25px;
  padding:5px 7px;
  opacity:.78;
}

.market-time-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.market-time-title{
  color:#dfe7eb;
  font:700 12px/1.15 Georgia,"Times New Roman",serif;
}

.market-time-date{
  color:#607583;
  font:700 7.5px/1 ui-monospace,Consolas,monospace;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-align:right;
}

.world-clock-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
}

.world-clock{
  min-width:0;
  padding:9px 9px 8px;
  border:1px solid rgba(155,184,204,.12);
  border-radius:3px;
  background:rgba(6,13,18,.62);
}

.world-clock-region{
  color:#6e8594;
  font:750 7px/1.15 ui-monospace,Consolas,monospace;
  letter-spacing:.1em;
  text-transform:uppercase;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.world-clock-time{
  margin-top:5px;
  color:#eef3f5;
  font:700 19px/1 ui-monospace,Consolas,"Liberation Mono",monospace;
  letter-spacing:-.04em;
  font-variant-numeric:tabular-nums;
}

.world-clock-day{
  margin-top:5px;
  color:#627786;
  font:650 7.5px/1.25 ui-monospace,Consolas,monospace;
}

/* Profile modal */
#investorProfileModal{
  position:fixed;
  inset:0;
  z-index:120;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  background:rgba(2,5,7,.86);
  backdrop-filter:blur(6px);
}

#investorProfileModal.hidden{display:none!important}

.investor-profile-modal-card{
  width:min(520px,100%);
  max-height:90vh;
  overflow:auto;
  padding:17px;
  border:1px solid #3a4e5b;
  border-top:2px solid var(--signal,#d6a84b);
  border-radius:4px;
  background:#091118;
  box-shadow:0 30px 100px rgba(0,0,0,.58);
}

.investor-profile-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:13px;
}

.investor-profile-modal-head h2{margin:0}
.investor-profile-form{display:grid;gap:10px}
.investor-profile-form label{display:block}
.investor-profile-form input[type="file"]{padding:7px}
.investor-profile-help{color:#6f8491;font-size:9px;line-height:1.45}
.investor-profile-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-top:3px}
#investorProfileMsg{min-height:14px;color:#8ca4b6;font-size:9px}

@media(max-width:1180px){
  #investorWelcomeModule{grid-template-columns:1fr}
  .world-clock-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(max-width:700px){
  #investorWelcomeModule{margin-bottom:8px}
  .investor-welcome-card,.market-time-card{padding:11px;min-height:auto}
  .investor-avatar-button{left:11px;top:24px;width:52px;height:52px;font-size:16px}
  .investor-profile-action{position:static;margin-top:10px}
  .world-clock-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .world-clock-time{font-size:17px}
}

@media(max-width:420px){
  .investor-welcome-main{align-items:flex-start}
  .investor-discipline{display:none}
}
