:root{
  --ink:#07110f;
  --ink2:#10211b;
  --muted:#718079;
  --line:rgba(7,17,15,.09);
  --bg:#eef2ef;
  --white:#fff;
  --soft:#f5f7f5;
  --green:#7eaf91;
  --green-dark:#426d55;
  --red:#ad5b5b;
  --gold:#b49759;
  --sidebar:250px;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body{
  background:var(--bg);
  color:var(--ink);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  min-height:100vh;
}

button,input,select{
  font:inherit;
}

button{
  cursor:pointer;
}

a{
  text-decoration:none;
  color:inherit;
}

/* SIDEBAR */

.sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--sidebar);
  background:var(--ink);
  color:#fff;
  padding:28px 18px;
  display:flex;
  flex-direction:column;
  z-index:1000;
  transition:.25s ease;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
  padding:0 10px;
  margin-bottom:55px;
}

.brand-mark{
  width:40px;
  height:40px;
  border:1px solid rgba(255,255,255,.3);
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:10px;
  font-weight:800;
}

.brand-name{
  font-size:13px;
  font-weight:750;
}

.brand-subtitle{
  margin-top:3px;
  font-size:7px;
  color:rgba(255,255,255,.35);
  letter-spacing:.2em;
}

.nav-section{
  margin-bottom:28px;
}

.nav-label{
  padding:0 12px;
  margin-bottom:9px;
  font-size:8px;
  color:rgba(255,255,255,.32);
  letter-spacing:.18em;
  text-transform:uppercase;
}

.nav-link{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  margin-bottom:4px;
  border-radius:9px;
  color:rgba(255,255,255,.55);
  font-size:11px;
  font-weight:600;
}

.nav-link:hover,
.nav-link.active{
  background:rgba(255,255,255,.09);
  color:#fff;
}

.nav-icon{
  width:20px;
  text-align:center;
}

.support{
  margin-top:auto;
  padding:18px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(255,255,255,.04);
}

.support small{
  color:rgba(255,255,255,.35);
  font-size:8px;
  text-transform:uppercase;
}

.support strong{
  display:block;
  margin:8px 0;
  font-size:11px;
}

.support a{
  color:var(--green);
  font-size:9px;
}

/* MAIN */

.main{
  margin-left:var(--sidebar);
  min-height:100vh;
}

.topbar{
  position:sticky;
  top:0;
  z-index:100;
  height:78px;
  padding:0 40px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:rgba(238,242,239,.88);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line);
}

.topbar-left{
  display:flex;
  align-items:center;
  gap:15px;
}

.page-label{
  font-size:13px;
  font-weight:700;
}

.mobile-menu{
  display:none;
  width:40px;
  height:40px;
  border:0;
  border-radius:9px;
  background:#fff;
}

.profile{
  display:flex;
  align-items:center;
  gap:9px;
  padding:5px 12px 5px 5px;
  border-radius:30px;
  background:#fff;
  border:1px solid var(--line);
  font-size:10px;
}

.avatar{
  width:32px;
  height:32px;
  border-radius:50%;
  background:var(--green);
  display:grid;
  place-items:center;
  font-size:9px;
  font-weight:800;
}

.content{
  max-width:1550px;
  padding:42px;
}

/* HEADING */

.heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:30px;
  margin-bottom:32px;
}

.heading h1{
  font-size:clamp(3rem,6vw,5.8rem);
  line-height:.9;
  letter-spacing:-.07em;
  font-weight:450;
}

.heading p{
  margin-top:14px;
  color:var(--muted);
  font-size:12px;
}

.market-status{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:9px;
  color:var(--green-dark);
  font-weight:700;
}

.status-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--green-dark);
}

/* CARDS */

.panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:28px;
}

.panel-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:23px;
}

.panel-title h2{
  font-size:17px;
  letter-spacing:-.03em;
}

.panel-title span{
  color:var(--muted);
  font-size:8px;
  text-transform:uppercase;
  letter-spacing:.1em;
}

/* PORTFOLIO HERO */

.portfolio-hero{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:18px;
  margin-bottom:18px;
}

.value-card{
  min-height:270px;
  padding:32px;
  border-radius:18px;
  background:var(--ink);
  color:#fff;
  position:relative;
  overflow:hidden;
}

.value-card:after{
  content:"";
  position:absolute;
  width:360px;
  height:360px;
  right:-180px;
  bottom:-220px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:50%;
}

.eyebrow{
  color:rgba(255,255,255,.4);
  font-size:8px;
  text-transform:uppercase;
  letter-spacing:.15em;
}

.portfolio-value{
  margin-top:16px;
  font-size:clamp(3rem,5vw,5rem);
  line-height:.95;
  font-weight:400;
  letter-spacing:-.07em;
}

.value-change{
  margin-top:16px;
  display:flex;
  gap:9px;
  align-items:center;
  color:#a9d2b6;
  font-size:10px;
  font-weight:700;
}

.value-card-footer{
  position:absolute;
  bottom:27px;
  left:32px;
  right:32px;
  display:flex;
  justify-content:space-between;
  color:rgba(255,255,255,.4);
  font-size:8px;
}

.performance-card{
  min-height:270px;
}

.periods{
  display:flex;
  gap:5px;
}

.period{
  border:1px solid var(--line);
  background:#fff;
  border-radius:6px;
  padding:6px 8px;
  font-size:7px;
}

.period.active{
  background:var(--ink);
  color:#fff;
  border-color:var(--ink);
}

.chart{
  width:100%;
  height:175px;
  position:relative;
  margin-top:10px;
}

.chart svg{
  width:100%;
  height:100%;
  overflow:visible;
}

.chart-grid line{
  stroke:rgba(7,17,15,.07);
  stroke-width:1;
}

.chart-path{
  fill:none;
  stroke:var(--green-dark);
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.chart-fill{
  fill:rgba(126,175,145,.13);
}

.chart-labels{
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:7px;
  margin-top:-2px;
}

/* STAT GRID */

.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-bottom:18px;
}

.stat{
  padding:20px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
}

.stat-label{
  color:var(--muted);
  font-size:8px;
  text-transform:uppercase;
  letter-spacing:.1em;
}

.stat-value{
  margin-top:10px;
  font-size:20px;
  letter-spacing:-.04em;
  font-weight:600;
}

.stat-change{
  margin-top:6px;
  font-size:8px;
  color:var(--green-dark);
  font-weight:700;
}

/* GRID */

.main-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:18px;
}

.stack{
  display:grid;
  gap:18px;
}

/* HOLDINGS */

.holding{
  display:grid;
  grid-template-columns:44px 1fr auto auto;
  align-items:center;
  gap:14px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}

.holding:last-child{
  border-bottom:0;
}

.asset-logo{
  width:42px;
  height:42px;
  border-radius:11px;
  background:var(--soft);
  display:grid;
  place-items:center;
  font-size:10px;
  font-weight:800;
}

.asset-info strong{
  display:block;
  font-size:10px;
}

.asset-info span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:7px;
}

.asset-value{
  text-align:right;
}

.asset-value strong{
  display:block;
  font-size:9px;
}

.asset-value span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:7px;
}

.asset-return{
  min-width:62px;
  text-align:right;
  color:var(--green-dark);
  font-size:9px;
  font-weight:750;
}

/* ALLOCATION */

.allocation-layout{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:28px;
  align-items:center;
}

.donut{
  width:170px;
  height:170px;
  border-radius:50%;
  background:
    conic-gradient(
      #426d55 0 38%,
      #7eaf91 38% 63%,
      #b49759 63% 81%,
      #9aaca3 81% 92%,
      #d1d9d4 92% 100%
    );
  position:relative;
  display:grid;
  place-items:center;
}

.donut:after{
  content:"";
  width:102px;
  height:102px;
  border-radius:50%;
  background:#fff;
  position:absolute;
}

.donut-center{
  position:relative;
  z-index:2;
  text-align:center;
}

.donut-center strong{
  display:block;
  font-size:16px;
}

.donut-center span{
  color:var(--muted);
  font-size:7px;
}

.allocation-item{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:13px;
}

.alloc-dot{
  width:8px;
  height:8px;
  border-radius:50%;
}

.alloc-item-info{
  flex:1;
}

.alloc-item-info strong{
  display:block;
  font-size:8px;
}

.alloc-item-info span{
  color:var(--muted);
  font-size:7px;
}

.alloc-percent{
  font-size:9px;
  font-weight:700;
}

/* WATCHLIST */

.watch{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:15px;
  align-items:center;
  padding:13px 0;
  border-bottom:1px solid var(--line);
}

.watch:last-child{
  border-bottom:0;
}

.watch-name strong{
  display:block;
  font-size:9px;
}

.watch-name span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:7px;
}

.watch-price{
  text-align:right;
}

.watch-price strong{
  display:block;
  font-size:9px;
}

.watch-price span{
  display:block;
  margin-top:3px;
  font-size:7px;
}

.positive{
  color:var(--green-dark)!important;
}

.negative{
  color:var(--red)!important;
}

.trade-btn{
  border:1px solid var(--line);
  background:var(--soft);
  border-radius:7px;
  padding:8px 10px;
  font-size:7px;
  font-weight:800;
}

.trade-btn:hover{
  border-color:var(--ink);
}

/* ACTIVITY */

.activity{
  display:grid;
}

.activity-row{
  display:grid;
  grid-template-columns:35px 1fr auto;
  gap:11px;
  align-items:center;
  padding:13px 0;
  border-bottom:1px solid var(--line);
}

.activity-row:last-child{
  border-bottom:0;
}

.activity-icon{
  width:34px;
  height:34px;
  border-radius:9px;
  background:var(--soft);
  display:grid;
  place-items:center;
  font-size:10px;
}

.activity-info strong{
  display:block;
  font-size:8px;
}

.activity-info span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:7px;
}

.activity-value{
  font-size:8px;
  font-weight:700;
  text-align:right;
}

/* BUTTON */

.btn{
  height:43px;
  padding:0 17px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:8px;
  font-size:9px;
  font-weight:750;
}

.btn.primary{
  background:var(--ink);
  color:#fff;
  border-color:var(--ink);
}

/* MODAL */

.modal{
  position:fixed;
  inset:0;
  background:rgba(7,17,15,.7);
  backdrop-filter:blur(10px);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:3000;
}

.modal.show{
  display:flex;
}

.modal-box{
  width:min(470px,100%);
  background:#fff;
  border-radius:18px;
  padding:29px;
}

.modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:25px;
}

.modal-header h2{
  font-size:20px;
  letter-spacing:-.04em;
}

.close{
  width:35px;
  height:35px;
  border:0;
  border-radius:50%;
  background:var(--soft);
  font-size:18px;
}

.trade-symbol{
  width:58px;
  height:58px;
  border-radius:15px;
  background:var(--soft);
  display:grid;
  place-items:center;
  font-size:13px;
  font-weight:800;
  margin-bottom:18px;
}

.trade-title{
  font-size:23px;
  letter-spacing:-.05em;
}

.trade-subtitle{
  margin-top:5px;
  color:var(--muted);
  font-size:8px;
}

.trade-side{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin:22px 0;
}

.side-btn{
  height:43px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  font-size:9px;
  font-weight:800;
}

.side-btn.active.buy{
  background:var(--green-dark);
  color:#fff;
}

.side-btn.active.sell{
  background:var(--red);
  color:#fff;
}

.form-group{
  display:grid;
  gap:7px;
  margin-bottom:15px;
}

.form-group label{
  color:#59665f;
  font-size:8px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.1em;
}

input,select{
  width:100%;
  height:47px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 12px;
  outline:none;
  font-size:10px;
}

input:focus,select:focus{
  border-color:var(--green-dark);
}

.order-summary{
  background:var(--soft);
  border-radius:10px;
  padding:14px;
  margin-top:18px;
}

.order-line{
  display:flex;
  justify-content:space-between;
  padding:5px 0;
  font-size:8px;
}

.order-line span{
  color:var(--muted);
}

.submit-trade{
  width:100%;
  height:48px;
  margin-top:15px;
  border:0;
  border-radius:8px;
  background:var(--ink);
  color:#fff;
  font-size:9px;
  font-weight:800;
}

/* TOAST */

.toast{
  position:fixed;
  right:25px;
  bottom:25px;
  z-index:4000;
  padding:14px 17px;
  border-radius:9px;
  background:var(--ink);
  color:#fff;
  font-size:9px;
  transform:translateY(120px);
  opacity:0;
  transition:.3s;
}

.toast.show{
  transform:translateY(0);
  opacity:1;
}

/* RESPONSIVE */

@media(max-width:1100px){

  .portfolio-hero,
  .main-grid{
    grid-template-columns:1fr;
  }

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

}

@media(max-width:800px){

  .sidebar{
    transform:translateX(-100%);
  }

  .sidebar.open{
    transform:translateX(0);
  }

  .main{
    margin-left:0;
  }

  .mobile-menu{
    display:block;
  }

  .topbar{
    padding:0 18px;
  }

  .content{
    padding:28px 18px;
  }

  .heading{
    display:block;
  }

  .market-status{
    margin-top:20px;
  }

  .allocation-layout{
    grid-template-columns:1fr;
    justify-items:center;
  }

}

@media(max-width:600px){

  .stats{
    grid-template-columns:1fr;
  }

  .panel{
    padding:20px;
  }

  .holding{
    grid-template-columns:40px 1fr auto;
  }

  .asset-return{
    display:none;
  }

  .profile strong{
    display:none;
  }

  .value-card{
    padding:25px;
  }

  .value-card-footer{
    left:25px;
    right:25px;
  }

}

/* Migrated inline declarations — visual values preserved exactly. */
.inline-style-1{background:#426d55}
.inline-style-2{background:#7eaf91}
.inline-style-3{background:#b49759}
.inline-style-4{background:#9aaca3}
.inline-style-5{background:#d1d9d4}
.inline-style-6{color:var(--muted); font-size:9px; line-height:1.7; margin-bottom:18px;}

/* =========================================================
   EUROATLANTIC SIDEBAR LOGO — HARD SIZE CONSTRAINT
   ========================================================= */

.sidebar .brand {
    width: 100%;
    max-width: 100%;
    height: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.sidebar .brand > img,
.sidebar .brand .brand-logo {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    object-fit: contain !important;
    object-position: center !important;
    position: static !important;
    display: block !important;
    flex: 0 0 40px !important;
    margin: 0 !important;
    padding: 0 !important;
}