/* ==========  ROOT & RESET  ========== */
:root{
  --accent:#222;
  --bg:#ffffff;
  --text:#000;
}
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
  font-family:'Roboto',system-ui,sans-serif;
}

/* ==========  LAYOUT  ========== */
html{ height:100%; }
body{
  min-height:100%;
  display:flex;
  flex-direction:column;
}
.page{
  flex:1;
  display:none;
  flex-direction:column;
}
.page.active{ display:flex; }

/* ==========  SPLASH  ========== */
#splash{
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  background:#ffffff;
}
.splash-logo{
  max-width:40vw;
  max-height:40vh;
  width:auto;
  height:auto;
  object-fit:contain;
}

/* ==========  WELCOME PAGE ZONES  ========== */
#welcome{
  background:linear-gradient(to bottom,#ffffff 0%,#ffffff 35%,rgb(180,180,180) 100%);
}
.welcome-top{
  flex:0 0 25%;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding-top:24px;
}
.welcome-center{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.welcome-bottom{
  flex:0 0 auto;
  display:flex;
  justify-content:center;
  padding-bottom:24px;
}

/* ==========  HEADER & ICONS  ========== */
header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 16px;
}
.logo{ height:40px; border-radius:6px; }
.icon{ font-size:26px; cursor:pointer; user-select:none; }

.dash-header{
  display:flex;
  align-items:center;
  gap:10px;
  background:#ffffff;
  padding:10px 16px;
}
.header-icon{ width:24px; height:24px; cursor:pointer; }
.header-icon.prof{ border-radius:50%; object-fit:cover; }
.header-icons{ display:flex; gap:12px; }
.last-login{ font-size:12px; color:#666; flex:1; }

/* ==========  BUTTONS & FORMS  ========== */
.login-btn{
  align-self:center;
  margin-bottom:40px;
  padding:10px 20px;
  background:var(--accent);
  color:#fff;
  border:none;
  border-radius:6px;
  font-size:16px;
  display:flex;
  align-items:center;
  gap:8px;
}
.key{ font-size:20px; }
.login-btn .key{ filter:brightness(0) invert(1); }

dialog{ border:none; border-radius:8px; padding:20px; }
dialog input{ width:100%; padding:8px; margin-top:8px; font-size:18px; }

/* ==========  OVERLAY & FINGERPRINT  ========== */
.overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.75);
  display:flex; align-items:center; justify-content:center; z-index:10;
}
.fprint{
  position:absolute; bottom:25%; left:50%;
  transform:translateX(-50%);
  width:84px; height:84px; border-radius:50%; object-fit:cover;
  cursor:pointer; background:transparent; border:none;
}
.hidden{ display:none; }

/* ==========  CARDS & TOTAL  ========== */
.total-row{
  display:flex; justify-content:space-between; align-items:center;
  background:#fff; margin:12px; padding:16px; border-radius:8px;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
}
.total-label{ font-size:14px; color:#666; }
.total-amount{ font-size:32px; font-weight:300; margin-top:8px; margin-bottom:8px;}
.caret{ background:none; border:none; cursor:pointer; padding:4px; }

.breakdown{ background:#fff; margin:0 12px 12px; padding:12px 16px; border-radius:0 0 8px 8px; box-shadow:0 2px 6px rgba(0,0,0,.08); }
.asset-bar{ display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid #f0f0f0; }
.asset-bar:last-child{ border:none; }
.asset-name{ flex:1; font-weight:350; }
.asset-val{ text-align:right; padding-right:12px; }
.asset-pct{ color:#666; width:40px; text-align:right; }
.acct{ display:block; font-size:11px; color:#666; }
.as-of{ font-size:13px; color:#666; margin-top:4px; text-align:left; }

/* ==========  PIE & AREA CHARTS  ========== */
.pie-card{ margin:12px; padding:16px; border-radius:8px; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.08); }
.card-title{ font-size:16px; font-weight:500; margin-bottom:12px; }
#pieSvg,#regSvg{ margin:8px 0; }
.legend{ display:grid; grid-template-columns:1fr 1fr; gap:6px 12px; font-size:13px; width:100%; max-width:240px; }
.legend-item{ display:flex; align-items:center; }
.legend-box{ width:12px; height:12px; margin-right:6px; border-radius:2px; }

.area-card{ margin:12px 16px; padding:12px; height:25vh; display:flex; flex-direction:column; }
#areaSvg{ flex:1; }

/* ==========  QUICK GRID – horizontal scroll  ========== */
.quick-grid-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.quick-grid-scroll::-webkit-scrollbar{ display:none; }
.quick-grid-single{ display:flex; gap:12px; padding:0 16px; width:max-content; }
.action-card{
  width:40vw; min-width:40vw;
  padding:12px 8px; font-size:11px;
  background:#fff;
  border:0.5px solid #e0e0e0;   /* fine, light border */
  border-radius:12px;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
  display:flex; flex-direction:column; align-items:center; gap:6px;
  cursor:pointer;
}
/* ==========  ICONS & COLOURS  ========== */
#userBtn i{ color:#000; }
.header-icon i,
.header-icons i{ color:rgb(234,0,0); cursor:pointer; }
.notify-dot{ position:absolute; top:-2px; right:-2px; width:8px; height:8px; background:rgb(234,0,0); border-radius:50%; }
.icon-wrap{ position:relative; display:inline-block; }
.card-icon{ font-size:28px; color:rgb(234,0,0); margin-bottom:6px; }

/* ==========  CLIENT NAME & LAST LOGIN  ========== */
.client-name{
  font-family:"Garamond","Times New Roman",serif;
  font-style:italic; font-size:28px; font-weight:400;
  text-align:center; margin:0; padding-top:25vh; line-height:1;
}
.last-login{ font-size:12px; color:#666; }

/* ==========  DASH-SCROLL  ========== */
.dash-scroll{ flex:1; overflow-y:auto; padding-bottom:24px; }

/*  small logo top-centre  */
.mini-logo{
  height:28px;          /* small */
  border-radius:4px;
  margin:0 auto;        /* centre in flex row */
}

/*  centre pie cards  */
.pie-card{
  margin:12px auto;     /* horizontal centre */
  padding:16px;
  border-radius:8px;
  background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
  display:flex;
  flex-direction:column;
  align-items:center;   /* content centre */
}

.bio-card{
  position:absolute;
  bottom:15%;
  left:50%;
  transform:translateX(-50%);
  width:80vw;               /* 80 % screen width */
  max-width:400px;          /* cap on very large screens */
  padding:24px 32px;
  background:#ffffff;
  border-radius:16px;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}

.bio-header{
  display:flex;
  align-items:center;
  gap:8px;
}
.bio-logo{ height:24px; border-radius:4px; }
.bio-title{ font-size:14px; font-weight:500; }

.bio-text{ text-align:center; }
.bio-bold{ font-weight:600; font-size:15px; margin:0; }
.bio-normal{ font-size:13px; color:#666; margin:0; }

.bio-fprint{
  width:84px; height:84px; border-radius:50%;
  cursor:pointer; object-fit:cover;
}

.welcome-center h2{
  font-weight:400;   /* normal weight */
  font-size:28px;
}

.dash-header{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
  background:#ffffff;
  padding:10px 16px;
}





.hdr-left{
  display:flex;
  align-items:baseline;   /* centre text with icon baseline */
  gap:8px;
}
.last-login{
  font-size:11px;
  color:#666;
}

.last-login-bar{
  font-size:12px;
  color:#666;
  text-align:left;
  margin-left: 20px;
  padding:4px 0 4px;   /* 10 px top, 6 px bottom = small white gap */
}

.hdr-center{ justify-self:center; }
.hdr-right{ justify-self:end; display:flex; gap:12px; }
.mini-logo{ height:28px; border-radius:4px; }
.header-icon{ color:rgb(234,0,0); cursor:pointer; }
.notify-dot{
  position:absolute; top:-2px; right:-2px;
  width:8px; height:8px; background:rgb(234,0,0);
  border-radius:50%;
}
.icon-wrap{ position:relative; display:inline-block; }

.asset-icon{
  color:#666;
  font-size:10px
}

.dash-header{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
  background:#ffffff;
  padding:16px 16px 10px;   /* header top padding */
}
.mini-logo{
  height:28px;
  border-radius:4px;
  transform:translateY(-6px);   /* lift centre logo 3 px */
}

.currencyID {
  font-size: 14px;
  color: blue
}

.header-icon,
.header-icon:active,
.header-icon:focus{
  -webkit-tap-highlight-color:transparent;
  outline:none;
  background:none;
  box-shadow:none;
}

