/*
 * Owl Society Accounts - Frontend UI
 * Login + Member Portal (UI-first)
 */

:root{
  --osa-bg: #f4f7ff;
  --osa-card: rgba(255,255,255,0.86);
  --osa-border: rgba(15,23,42,0.08);
  --osa-text: rgba(15,23,42,0.92);
  --osa-muted: rgba(15,23,42,0.60);
  --osa-blue: #2563eb;
  --osa-blue-2: #1d4ed8;
  --osa-shadow: 0 18px 50px rgba(15,23,42,0.12);
  --osa-radius: 20px;
}

.osa-app, .osa-app *{ box-sizing: border-box; }
.osa-app{ font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

.osa-logo{
  width: 44px; height: 44px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(37,99,235,1), rgba(99,102,241,1));
  box-shadow: 0 12px 28px rgba(37,99,235,0.25);
}

/* AUTH */
.osa-auth{
  min-height: calc(100vh - 120px);
  display: flex; align-items: center; justify-content: center;
  padding: 26px;
  background:
    radial-gradient(circle at 20% 10%, rgba(37,99,235,0.20), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(99,102,241,0.18), transparent 45%),
    var(--osa-bg);
}

.osa-auth-card{
  width: min(420px, 92vw);
  border-radius: var(--osa-radius);
  background: var(--osa-card);
  border: 1px solid var(--osa-border);
  box-shadow: var(--osa-shadow);
  overflow: hidden;
}

.osa-auth-top{ padding: 18px; background: rgba(15,23,42,0.02); border-bottom: 1px solid rgba(15,23,42,0.06); }
.osa-brand{ display:flex; gap: 12px; align-items:center; }
.osa-brand-name{ font-weight: 900; color: var(--osa-text); letter-spacing: -0.02em; }
.osa-brand-sub{ color: var(--osa-muted); font-size: 12px; }

.osa-auth-body{ padding: 18px; }
.osa-title{ margin: 0 0 12px; font-size: 22px; letter-spacing: -0.02em; }

.osa-form{ display:flex; flex-direction: column; gap: 12px; }
.osa-field{ display:flex; flex-direction: column; gap: 6px; }
.osa-label{ font-size: 12px; font-weight: 800; color: rgba(15,23,42,0.80); }
.osa-field input{
  height: 44px; border-radius: 14px; border: 1px solid rgba(15,23,42,0.10);
  padding: 0 12px; outline: none; background: rgba(255,255,255,0.90);
}
.osa-field input:focus{ border-color: rgba(37,99,235,0.55); box-shadow: 0 0 0 4px rgba(37,99,235,0.12); }

.osa-check{ display:flex; gap: 10px; align-items:center; font-size: 13px; color: rgba(15,23,42,0.75); }

.osa-btn{
  height: 44px; border-radius: 14px; border: 1px solid transparent;
  display: inline-flex; align-items:center; justify-content:center;
  font-weight: 900; cursor: pointer; text-decoration:none;
}
.osa-btn-primary{ background: var(--osa-blue); color: #fff; box-shadow: 0 14px 26px rgba(37,99,235,0.25); }
.osa-btn-primary:hover{ background: var(--osa-blue-2); }
.osa-btn-ghost{ background: rgba(15,23,42,0.04); color: rgba(15,23,42,0.85); border-color: rgba(15,23,42,0.06); }
.osa-btn-ghost:hover{ background: rgba(15,23,42,0.06); }

.osa-link{ color: rgba(37,99,235,1); text-decoration: none; font-weight: 800; }
.osa-link:hover{ text-decoration: underline; }

.osa-auth-foot{ display:flex; justify-content:center; margin-top: 6px; }

.osa-auth-bottom{ padding: 12px 18px; border-top: 1px solid rgba(15,23,42,0.06); background: rgba(15,23,42,0.02); text-align:center; }
.osa-muted{ color: var(--osa-muted); font-size: 12px; }

.osa-alert{ border-radius: 14px; padding: 10px 12px; font-size: 13px; border: 1px solid; }
.osa-alert-danger{ background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.25); color: rgba(127,29,29,1); }
.osa-alert-success{ background: rgba(34,197,94,0.10); border-color: rgba(34,197,94,0.25); color: rgba(22,101,52,1); }

/* PORTAL */
.osa-portal{
  padding: 26px;
  background:
    radial-gradient(circle at 20% 10%, rgba(37,99,235,0.18), transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(99,102,241,0.14), transparent 55%),
    var(--osa-bg);
}

.osa-portal-shell{ max-width: 1150px; margin: 0 auto; }

.osa-portal-header{
  display:flex; align-items:center; justify-content: space-between;
  background: var(--osa-card);
  border: 1px solid var(--osa-border);
  border-radius: var(--osa-radius);
  box-shadow: var(--osa-shadow);
  padding: 16px;
  margin-bottom: 16px;
}

.osa-portal-left{ display:flex; align-items:center; gap: 12px; }
.osa-hello{ font-weight: 900; letter-spacing: -0.02em; color: var(--osa-text); }
.osa-date{ font-size: 12px; color: var(--osa-muted); }

.osa-portal-grid{ display:grid; grid-template-columns: 320px 1fr; gap: 16px; }
@media (max-width: 980px){ .osa-portal-grid{ grid-template-columns: 1fr; } }

.osa-side-card{
  position: sticky; top: 18px;
  background: var(--osa-card);
  border: 1px solid var(--osa-border);
  border-radius: var(--osa-radius);
  box-shadow: 0 20px 50px rgba(15,23,42,0.10);
  padding: 14px;
}

.osa-side-title{ font-weight: 900; margin-bottom: 10px; }
.osa-side-nav{ display:flex; flex-direction: column; gap: 6px; }
.osa-side-nav a{
  display:flex; padding: 10px 12px; border-radius: 14px;
  color: rgba(15,23,42,0.85); text-decoration:none; font-weight: 800;
  background: rgba(15,23,42,0.03);
  border: 1px solid rgba(15,23,42,0.04);
}
.osa-side-nav a:hover{ background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.18); }
.osa-side-nav a.is-active{ background: rgba(37,99,235,0.12); border-color: rgba(37,99,235,0.22); }

.osa-kpis{ display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
@media (max-width: 980px){ .osa-kpis{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px){ .osa-kpis{ grid-template-columns: 1fr; } }

.osa-kpi{
  background: var(--osa-card);
  border: 1px solid var(--osa-border);
  border-radius: var(--osa-radius);
  box-shadow: 0 18px 48px rgba(15,23,42,0.10);
  padding: 14px;
}

.osa-kpi-label{ font-size: 12px; color: var(--osa-muted); font-weight: 800; }
.osa-kpi-value{ font-size: 24px; font-weight: 900; margin-top: 6px; letter-spacing: -0.02em; }
.osa-kpi-sub{ margin-top: 6px; font-size: 12px; color: var(--osa-muted); }

.osa-card{
  background: var(--osa-card);
  border: 1px solid var(--osa-border);
  border-radius: var(--osa-radius);
  box-shadow: 0 18px 50px rgba(15,23,42,0.10);
  overflow: hidden;
}

.osa-wide{ margin-bottom: 12px; }

.osa-card-head{ padding: 14px; border-bottom: 1px solid rgba(15,23,42,0.06); display:flex; align-items:flex-start; justify-content: space-between; gap: 12px; }
.osa-card-title{ margin: 0; font-size: 16px; font-weight: 900; letter-spacing: -0.02em; }
.osa-card-desc{ margin: 6px 0 0; font-size: 12px; color: var(--osa-muted); }
.osa-chip{ display:inline-flex; align-items:center; padding: 6px 10px; border-radius: 999px; background: rgba(37,99,235,0.10); border: 1px solid rgba(37,99,235,0.20); font-weight: 900; font-size: 12px; color: rgba(37,99,235,1); }

.osa-card-body{ padding: 14px; }

.osa-chart-skeleton{
  height: 220px; border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(37,99,235,0.10), rgba(37,99,235,0.00)),
    repeating-linear-gradient(0deg, rgba(15,23,42,0.06), rgba(15,23,42,0.06) 1px, transparent 1px, transparent 28px);
  position: relative;
}
.osa-chart-skeleton:after{
  content:'';
  position:absolute; inset: 0;
  background: radial-gradient(circle at 70% 35%, rgba(37,99,235,0.18), transparent 40%);
  border-radius: 16px;
}

.osa-table-wrap{ border: 1px solid rgba(15,23,42,0.06); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,0.70); }
.osa-table{ width:100%; border-collapse: separate; border-spacing:0; }
.osa-table th, .osa-table td{ padding: 12px; border-bottom: 1px solid rgba(15,23,42,0.06); font-size: 13px; }
.osa-table thead th{ background: rgba(15,23,42,0.03); text-align:left; font-weight: 900; }
.osa-table .is-right{ text-align:right; }
.osa-empty{ text-align:center; color: var(--osa-muted); }


/* ==========================================================
   Member Portal UI (UI-first, functional data will be wired later)
   Inspired by the provided clean mobile dashboard layout
   ========================================================== */

.osa-mp{
  --mp-bg:#f5f7fb;
  --mp-card:#ffffff;
  --mp-text:#0f172a;
  --mp-muted:#6b7280;
  --mp-border:rgba(15,23,42,.08);
  --mp-accent:#3b82f6;
  --mp-accent2:#8bd3ff;
  --mp-shadow:0 12px 30px rgba(15,23,42,.08);
  background: linear-gradient(180deg, #eef3ff 0%, var(--mp-bg) 60%, #f7fafc 100%);
  color: var(--mp-text);
  padding: 18px 12px 26px;
}

.osa-mp *{ box-sizing:border-box; }

.osa-mp-shell{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 18px;
  box-sizing: border-box;
}


.osa-mp-top{
  width: 100%;
  box-sizing: border-box;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--mp-border);
  border-radius: 18px;
  box-shadow: var(--mp-shadow);
  backdrop-filter: blur(8px);
}

.osa-mp-brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}

.osa-mp-logo{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--mp-border);
  background:#fff;
}

.osa-mp-logo--placeholder{
  background: linear-gradient(135deg, rgba(59,130,246,.28), rgba(139,211,255,.35));
}

.osa-mp-brand-meta{ min-width:0; }

.osa-mp-society-name{
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.osa-mp-member-line{
  margin-top: 4px;
  font-size: 13px;
  color: var(--mp-muted);
  display:flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items:center;
}

.osa-mp-member-name{ color: var(--mp-text); font-weight: 700; }
.osa-mp-dot{ opacity: .6; }

.osa-mp-actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-shrink: 0;
}

.osa-mp-avatar{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--mp-border);
  background:#fff;
}

.osa-mp-avatar--placeholder{
  background: radial-gradient(circle at 30% 30%, rgba(59,130,246,.22), rgba(139,211,255,.18));
}

.osa-mp-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--mp-border);
  background:#fff;
  color: var(--mp-text);
  font-weight: 700;
  text-decoration:none;
  transition: transform .12s ease, box-shadow .12s ease;
}

.osa-mp-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15,23,42,.10);
}

.osa-mp-nav{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,.70);
  border: 1px solid var(--mp-border);
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  backdrop-filter: blur(8px);
}

.osa-mp-navbtn{
  flex: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  color: var(--mp-muted);
  transition: background .12s ease, color .12s ease, transform .12s ease, border-color .12s ease;
}

.osa-mp-navbtn:hover{ transform: translateY(-1px); }

.osa-mp-navbtn.is-active{
  background: linear-gradient(135deg, rgba(59,130,246,.16), rgba(139,211,255,.22));
  border-color: rgba(59,130,246,.28);
  color: var(--mp-text);
}

.osa-mp-navico{
  width: 28px;
  height: 28px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--mp-border);
  font-size: 14px;
}

.osa-mp-main{ margin-top: 14px; }

.osa-mp-panel{ display:none; }
.osa-mp-panel.is-active{ display:block; }

.osa-mp-hero{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.osa-mp-hero-card{
  background: var(--mp-card);
  border: 1px solid var(--mp-border);
  border-radius: 22px;
  box-shadow: var(--mp-shadow);
  padding: 16px;
}

.osa-mp-hero-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.osa-mp-hero-title{
  font-weight: 900;
  font-size: 16px;
}

.osa-mp-hero-sub{
  margin-top: 4px;
  color: var(--mp-muted);
  font-size: 13px;
}

.osa-mp-chip{
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(59,130,246,.10);
  border: 1px solid rgba(59,130,246,.18);
  color: var(--mp-text);
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.osa-mp-hero-body{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  align-items:center;
}

.osa-mp-ring{
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: conic-gradient(var(--mp-accent) 0deg, var(--mp-accent2) 110deg, rgba(15,23,42,.08) 110deg 360deg);
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 0 auto;
  position: relative;
}

.osa-mp-ring::after{
  content:'';
  position:absolute;
  inset: 16px;
  border-radius: 999px;
  background: var(--mp-card);
  border: 1px solid var(--mp-border);
}

.osa-mp-ring-inner{
  position: relative;
  z-index: 2;
  text-align:center;
  padding: 8px 10px;
}

.osa-mp-ring-value{
  font-weight: 900;
  font-size: 30px;
  line-height: 1.1;
}

.osa-mp-ring-label{
  margin-top: 6px;
  font-weight: 800;
  color: var(--mp-muted);
  font-size: 12px;
}

.osa-mp-mini{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.osa-mp-mini-card{
  border-radius: 18px;
  border: 1px solid var(--mp-border);
  background: linear-gradient(135deg, rgba(59,130,246,.10), rgba(139,211,255,.16));
  padding: 14px;
}

.osa-mp-mini-title{
  font-weight: 800;
  color: var(--mp-muted);
  font-size: 12px;
}

.osa-mp-mini-value{
  margin-top: 8px;
  font-weight: 900;
  font-size: 20px;
  color: var(--mp-text);
}

.osa-mp-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.osa-mp-kpi{
  background: var(--mp-card);
  border: 1px solid var(--mp-border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
}

.osa-mp-kpi-title{
  font-weight: 800;
  color: var(--mp-muted);
  font-size: 12px;
}

.osa-mp-kpi-value{
  margin-top: 8px;
  font-weight: 900;
  font-size: 20px;
  color: var(--mp-text);
}

.osa-mp-card{
  margin-top: 14px;
  background: var(--mp-card);
  border: 1px solid var(--mp-border);
  border-radius: 22px;
  box-shadow: var(--mp-shadow);
}

.osa-mp-card-head{
  padding: 16px 16px 10px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.osa-mp-card-title{
  font-weight: 900;
  font-size: 16px;
}

.osa-mp-card-sub{
  margin-top: 4px;
  color: var(--mp-muted);
  font-size: 13px;
}

.osa-mp-card-body{ padding: 0 16px 16px; }

.osa-mp-empty{
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(15,23,42,.18);
  background: rgba(15,23,42,.02);
  color: var(--mp-muted);
  font-weight: 700;
}

.osa-mp-project{
  border-radius: 18px;
  border: 1px solid var(--mp-border);
  background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(255,255,255,1));
  padding: 16px;
}

.osa-mp-project-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.osa-mp-project-title{
  font-weight: 900;
  font-size: 16px;
}

.osa-mp-pill{
  display:inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  background: rgba(16,185,129,.10);
  border: 1px solid rgba(16,185,129,.18);
}

.osa-mp-project-grid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.osa-mp-stat{
  border-radius: 16px;
  border: 1px solid var(--mp-border);
  background: rgba(255,255,255,.85);
  padding: 12px;
}

.osa-mp-stat-k{
  font-weight: 800;
  font-size: 12px;
  color: var(--mp-muted);
}

.osa-mp-stat-v{
  margin-top: 6px;
  font-weight: 900;
  font-size: 18px;
}

.osa-mp-project-note{
  margin-top: 10px;
  color: var(--mp-muted);
  font-size: 13px;
  font-weight: 700;
}

.osa-mp-tablewrap{
  overflow:auto;
  border-radius: 18px;
  border: 1px solid var(--mp-border);
}

.osa-mp-table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 820px;
  background:#fff;
}

.osa-mp-table thead th{
  position: sticky;
  top: 0;
  background: rgba(245,247,251,.92);
  border-bottom: 1px solid var(--mp-border);
  padding: 12px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--mp-muted);
  font-weight: 900;
}

.osa-mp-table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(15,23,42,.06);
  color: var(--mp-text);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.osa-mp-table .is-right{ text-align:right; }

.osa-mp-td-empty{
  text-align:center;
  color: var(--mp-muted) !important;
  padding: 26px 12px !important;
  font-weight: 800 !important;
}

/* Responsive */
@media (max-width: 980px){
  .osa-mp-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .osa-mp-hero-body{ grid-template-columns: 1fr; }
  .osa-mp-ring{ width: 200px; height: 200px; }
}

@media (max-width: 560px){
  .osa-mp-top{ flex-direction: column; align-items: stretch; }
  .osa-mp-actions{ justify-content: space-between; }
  .osa-mp-nav{ gap: 8px; padding: 8px; }
  .osa-mp-navico{ display:none; }
  .osa-mp-btn{ width: 100%; }
  .osa-mp-mini{ grid-template-columns: 1fr; }
  .osa-mp-project-grid{ grid-template-columns: 1fr; }
}


/* Member Portal - Statement tools */
.osa-mp-stmt-tools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.osa-mp-stmt-form{
  display:flex;
  align-items:flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.osa-mp-stmt-field{
  display:flex;
  flex-direction:column;
  gap: 6px;
  font-size: 12px;
  color: var(--mp-muted);
}

.osa-mp-input{
  height: 40px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid var(--mp-border);
  background: #fff;
  color: var(--mp-text);
  outline: none;
  min-width: 160px;
}

.osa-mp-input:focus{
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
  border-color: rgba(16, 185, 129, .45);
}

.osa-mp-note{
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--mp-border);
  background: rgba(255,255,255,.70);
  color: var(--mp-muted);
  font-size: 13px;
}

/* ---- My Investment: details toggle (minimal, consistent with existing UI) ---- */
.osa-mp-project-actions{
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.osa-mp-project-toggle{
  border: 1px solid var(--mp-border);
  background: rgba(255,255,255,.75);
  color: var(--mp-muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.osa-mp-project-toggle:hover{
  background: rgba(255,255,255,.92);
}

.osa-mp-chevron{
  display: inline-block;
  transform: translateY(-1px);
}

.osa-mp-project.is-open .osa-mp-chevron{
  transform: rotate(180deg) translateY(1px);
}

.osa-mp-project-details{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--mp-border);
}

.osa-mp-details-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.osa-mp-detail{
  border: 1px solid var(--mp-border);
  background: rgba(255,255,255,.60);
  border-radius: 14px;
  padding: 10px 12px;
}

.osa-mp-detail-label{
  font-size: 12px;
  color: var(--mp-muted);
  margin-bottom: 4px;
}

.osa-mp-detail-value{
  font-size: 14px;
  color: var(--mp-text);
  font-weight: 600;
}

@media (max-width: 560px){
  .osa-mp-details-grid{
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Member Portal UI v2 (mobile-first, based on provided UI)
   - Keeps existing HTML content, only restyles + new header card
   ========================================================= */

.osa-mp{
  background: #f4f6fb;
  padding: 18px 12px 84px;
  min-height: 100vh;
}

.osa-mp-shell{
  max-width: 430px;
  margin: 0 auto;
}

.osa-app-top{
  margin-bottom: 14px;
}

/* Profile card */
.osa-profile-card{
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--osa-border);
  border-radius: 26px;
  padding: 16px 16px 14px;
  box-shadow: 0 16px 30px rgba(15,23,42,0.06);
  backdrop-filter: blur(8px);
}

.osa-toprow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.osa-society{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 0;
}

.osa-society-logo{
  width: 26px;
  height: 26px;
  border-radius: 9px;
  object-fit: cover;
}

.osa-society-logo--placeholder{
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: rgba(15,23,42,0.08);
}

.osa-society-name{
  font-weight: 700;
  font-size: 14px;
  color: var(--osa-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.osa-iconbtn{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid var(--osa-border);
  background: rgba(255,255,255,0.9);
  color: var(--osa-text);
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(15,23,42,0.05);
}
.osa-iconbtn:hover{ filter: brightness(0.98); }
.osa-iconbtn:active{ transform: translateY(1px); }

.osa-avatar-wrap{
  display:flex;
  justify-content:center;
  margin-top: 12px;
  margin-bottom: 10px;
}

.osa-avatar{
  width: 84px;
  height: 84px;
  border-radius: 999px;
  object-fit: cover;
  border: 6px solid rgba(85,224,57,0.18);
  background: #fff;
}

.osa-avatar--placeholder{
  background: rgba(15,23,42,0.08);
}

.osa-member-name{
  text-align:center;
  font-size: 22px;
  font-weight: 800;
  color: var(--osa-text);
  letter-spacing: -0.02em;
}

.osa-member-sub{
  margin-top: 4px;
  text-align:center;
  font-size: 12px;
  color: rgba(15,23,42,0.65);
  display:flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content:center;
  align-items:center;
}
.osa-dot{ opacity: .6; }

.osa-stats3{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}

.osa-stat{
  text-align:center;
  padding: 10px 8px;
  border-radius: 16px;
  border: 1px solid var(--osa-border);
  background: rgba(255,255,255,0.75);
}

.osa-stat-value{
  font-weight: 800;
  font-size: 14px;
  color: var(--osa-text);
}

.osa-stat-label{
  margin-top: 2px;
  font-size: 11px;
  color: rgba(15,23,42,0.62);
}

/* Panels area */
.osa-mp-main{
  margin-top: 14px;
}

/* Make existing cards match the new style */
.osa-mp-card,
.osa-mp-hero-card{
  border-radius: 22px !important;
  background: rgba(255,255,255,0.92) !important;
  border: 1px solid var(--osa-border) !important;
  box-shadow: 0 16px 30px rgba(15,23,42,0.06) !important;
}

.osa-mp-hero{
  padding: 0 !important;
  margin-bottom: 14px !important;
}

.osa-mp-hero-head{
  padding: 14px 16px 0 !important;
}

.osa-mp-hero-title{
  font-size: 18px !important;
  font-weight: 800 !important;
}
.osa-mp-hero-sub{
  font-size: 12px !important;
  opacity: 0.75;
}

.osa-mp-mini{
  padding: 12px 16px 16px !important;
  gap: 10px !important;
}
.osa-mp-mini-card{
  border-radius: 18px !important;
}

/* Bottom nav (app-like) */
.osa-mp-nav{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(244,246,251,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(15,23,42,0.06);
  display:flex;
  justify-content:center;
  z-index: 9999;
}

.osa-mp-navbtn{
  flex: 1;
  max-width: 140px;
  border: none;
  background: transparent;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 6px;
  padding: 8px 6px;
  border-radius: 18px;
  color: rgba(15,23,42,0.58);
  cursor: pointer;
}

.osa-mp-navico{
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 12px 18px rgba(15,23,42,0.05);
  font-size: 18px;
}

.osa-mp-navtxt{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.osa-mp-navbtn.is-active{
  color: var(--osa-text);
}

.osa-mp-navbtn.is-active .osa-mp-navico{
  border-color: rgba(85,224,57,0.45);
  box-shadow: 0 16px 24px rgba(85,224,57,0.14);
}

/* Make room for fixed nav */
.osa-mp-shell{
  padding-bottom: 84px;
}

/* Statement toolbar polish */
.osa-mp-stmt-tools{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.osa-mp-stmt-tools input[type="date"]{
  border-radius: 14px;
}
.osa-mp-stmt-tools .osa-mp-btn{
  border-radius: 14px;
}

/* Investment cards */
.osa-mp-proj{
  border-radius: 22px !important;
}
.osa-mp-proj-head{
  align-items: center;
}



/* === Portal no-tabs layout (Dashboard -> My Investment -> Statement) === */
.osa-mp-main{padding-bottom:24px;}
.osa-mp-section{margin-top:16px;}
.osa-mp-section-head{
  padding:10px 6px 6px;
}
.osa-mp-section-title{
  font-size:18px;
  font-weight:700;
  letter-spacing:-0.02em;
  color:#0f172a;
}
.osa-mp-section-sub{
  margin-top:4px;
  font-size:12px;
  color:#64748b;
}


/* === Portal theme inspired by provided UI (soft background, white cards, blue accordion headers) === */
.osa-mp{
  background: radial-gradient(1200px 600px at 20% 0%, rgba(64, 141, 255, 0.10), transparent 60%),
              radial-gradient(1000px 500px at 90% 30%, rgba(0, 170, 255, 0.10), transparent 60%),
              #eef3f7;
  min-height: 100vh;
  padding: 18px 12px;
}
.osa-mp-shell{max-width: 480px; margin: 0 auto;}
.osa-mp-top{
  background:#fff;
  border-radius:18px;
  padding:14px 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  margin-bottom: 14px;
}
.osa-profile-card{padding:0; box-shadow:none; border:none; background:transparent;}
.osa-toprow{display:flex; align-items:center; justify-content:space-between; gap:10px;}
.osa-society{display:flex; align-items:center; gap:10px;}
.osa-society-logo, .osa-society-logo--placeholder{width:42px; height:42px; border-radius:12px;}
.osa-society-name{font-size:12px;color:#64748b;font-weight:700;}
.osa-avatar-wrap{display:flex; justify-content:center; margin-top:10px;}
.osa-avatar, .osa-avatar--placeholder{width:64px;height:64px;border-radius:24px; box-shadow: 0 14px 28px rgba(15,23,42,0.10);}
.osa-greet{font-size:12px;color:#94a3b8;margin-top:10px;text-align:center;}
.osa-member-name{font-size:18px;font-weight:900;color:#0f172a;text-align:center; margin-top:4px;}
.osa-member-sub{display:flex; justify-content:center; align-items:center; gap:8px; flex-wrap:wrap; margin-top:6px;}
.osa-member-role{font-size:12px;color:#64748b;font-weight:700;}
.osa-member-meta{font-size:12px;color:#475569;font-weight:800;}
.osa-dot{color:#cbd5e1;}
.osa-iconbtn{
  width:40px;height:40px;border-radius:14px;
  border:1px solid rgba(15,23,42,0.08);
  background:#fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  display:flex;align-items:center;justify-content:center;
}
.osa-iconbtn span{font-size:16px; line-height:1;}
.osa-logout{margin-left:0;}
/* No tabs */
.osa-mp-main{padding-bottom:18px;}

/* Accordion */
.osa-sec{
  border-radius:18px;
  overflow:hidden;
  margin-top: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.osa-sec-head{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding: 14px 14px;
  background: linear-gradient(180deg, #1976d2, #0f5fb3);
  border:0;
  cursor:pointer;
  text-align:left;
}
.osa-sec-title{
  color:#fff;
  font-size:14px;
  font-weight:900;
  letter-spacing:-0.01em;
}
.osa-sec-meta{
  margin-left:auto;
  color: rgba(255,255,255,0.86);
  font-size:11px;
  font-weight:700;
  max-width: 180px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.osa-sec-caret{
  color:#fff;
  font-size:16px;
  transform: rotate(-90deg);
  transition: transform .2s ease;
}
.osa-sec--open .osa-sec-caret{transform: rotate(0deg);}
.osa-sec-body{
  background:#fff;
  padding: 12px 12px 14px;
  display:none;
}
.osa-sec--open .osa-sec-body{display:block;}

/* Inner blocks consistent */
.osa-mp-hero-card, .osa-mp-card{
  background:#fff;
  border-radius:16px;
  box-shadow:none;
  border:1px solid rgba(15,23,42,0.06);
}
.osa-mp-hero-card{padding:14px;}
.osa-mp-kpis{display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:10px; margin-top:12px;}
.osa-mp-kpi{
  border-radius:14px; padding:10px;
  background:#f7fafc;
  border:1px solid rgba(15,23,42,0.06);
}
.osa-mp-kpi-title{font-size:11px;color:#64748b;font-weight:800;}
.osa-mp-kpi-value{font-size:14px;font-weight:900;color:#0f172a;margin-top:4px;}
.osa-mp-table-wrap{border-radius:14px; overflow:auto; border:1px solid rgba(15,23,42,0.06);}
.osa-mp-table th{font-size:11px;color:#64748b;font-weight:900;background:#f8fafc;}
.osa-mp-table td{font-size:12px;color:#0f172a;}


/* === Portal-only mode: hide theme chrome, show only portal === */
html.osa-portal-only #wpadminbar{display:none !important;}
html.osa-portal-only{margin-top:0 !important;}
body.osa-portal-only{margin:0 !important; padding:0 !important;}

/* Hide only THEME chrome (top-level), not portal internal header */
body.osa-portal-only > header,
body.osa-portal-only > footer,
body.osa-portal-only > nav,
body.osa-portal-only > .site-header,
body.osa-portal-only > .site-footer,
body.osa-portal-only > #masthead,
body.osa-portal-only > #colophon{display:none !important;}

/* Force portal to cover full viewport */
.osa-portal-only .osa-mp{
  position: fixed;
  inset: 0;
  overflow: auto;
  z-index: 999999;
  padding: 18px 12px;
}
.osa-portal-only .osa-mp-shell{
  max-width: 100%;
}

/* Logout button with label */
.osa-iconbtn.osa-logout{
  width:auto;
  min-width: 44px;
  padding: 10px 12px;
  gap: 8px;
}
.osa-iconbtn.osa-logout .osa-logout-ic{font-size:16px; line-height:1;}
.osa-iconbtn.osa-logout .osa-logout-text{
  font-size:12px;
  font-weight:900;
  color:#0f172a;
}


/* === My Investment cards: match portal UI system === */
.osa-mp-project{
  background:#fff;
  border:1px solid rgba(15,23,42,0.06);
  border-radius:16px;
  padding:14px;
  margin-top:12px;
}
.osa-mp-project-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.osa-mp-project-title{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.osa-mp-avatar, .osa-mp-avatar-img, .osa-mp-avatar-fallback{
  width:44px;
  height:44px;
  border-radius:16px;
}
.osa-mp-avatar-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#0f172a;
  background:#e8f0ff;
  border:1px solid rgba(25,118,210,0.12);
}
.osa-mp-project-name{
  font-size:14px;
  font-weight:900;
  color:#0f172a;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 240px;
}
.osa-mp-project-meta{
  margin-top:4px;
  font-size:12px;
  font-weight:700;
  color:#64748b;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.osa-mp-project-grid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
}
.osa-mp-stat{
  background:#f7fafc;
  border:1px solid rgba(15,23,42,0.06);
  border-radius:14px;
  padding:10px;
}
.osa-mp-stat-label{
  font-size:11px;
  font-weight:800;
  color:#64748b;
}
.osa-mp-stat-val{
  font-size:13px;
  font-weight:900;
  color:#0f172a;
  margin-top:4px;
}
.osa-mp-details{
  margin-top:12px;
  border-top:1px solid rgba(15,23,42,0.06);
  padding-top:12px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px;
}
.osa-mp-detail{
  border:1px solid rgba(15,23,42,0.06);
  background:#fff;
  border-radius:14px;
  padding:10px;
}
.osa-mp-detail-label{
  font-size:11px;
  font-weight:800;
  color:#64748b;
}
.osa-mp-detail-val{
  font-size:12px;
  font-weight:900;
  color:#0f172a;
  margin-top:4px;
  word-break:break-word;
}
@media (max-width: 460px){
  .osa-mp-project-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .osa-mp-details{ grid-template-columns: 1fr; }
  .osa-mp-project-name{ max-width: 190px; }
}


/* === My Investment cards: row-based layout to match portal UI === */
.osa-mi-card{
  background:#fff;
  border-radius:16px;
  border:1px solid rgba(15,23,42,0.06);
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.osa-mi-photo{
  display:flex;
  justify-content:center;
  align-items:center;
  margin-top:2px;
}
.osa-mi-photo-img{
  width:72px;
  height:72px;
  border-radius:24px;
  object-fit:cover;
  box-shadow: 0 14px 28px rgba(15,23,42,0.10);
}
.osa-mi-photo-fallback{
  width:72px;
  height:72px;
  border-radius:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#0f172a;
  background:#e2e8f0;
}
.osa-mi-info{
  text-align:center;
}
.osa-mi-code{
  font-size:12px;
  font-weight:900;
  color:#0f5fb3;
}
.osa-mi-name{
  margin-top:4px;
  font-size:14px;
  font-weight:900;
  color:#0f172a;
}
.osa-mi-mobile{
  margin-top:4px;
  font-size:12px;
  font-weight:800;
  color:#475569;
}
.osa-mi-row{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px;
}
.osa-mi-metric{
  border-radius:14px;
  padding:10px;
  background:#f7fafc;
  border:1px solid rgba(15,23,42,0.06);
}
.osa-mi-label{
  font-size:11px;
  color:#64748b;
  font-weight:800;
}
.osa-mi-value{
  margin-top:4px;
  font-size:14px;
  font-weight:900;
  color:#0f172a;
}
.osa-mi-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.osa-mi-actions .osa-mp-project-toggle{
  border:1px solid rgba(15,23,42,0.08);
  background:#fff;
  border-radius:14px;
  padding:10px 12px;
  font-weight:900;
  color:#0f172a;
}
.osa-mi-actions .osa-mp-chevron{margin-left:6px;}


/* === My Investment card row-2 single-line meta === */
.osa-mi-card .osa-mi-info{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.osa-mi-card .osa-mi-code{
  padding:6px 10px;
  border-radius:999px;
  background:#eef2ff;
  border:1px solid rgba(15,23,42,0.08);
  font-size:11px;
  font-weight:900;
  color:#1e293b;
  flex:0 0 auto;
}
.osa-mi-card .osa-mi-name{
  font-size:13px;
  font-weight:900;
  color:#0f172a;
  flex:1 1 auto;
  min-width:140px;
}
.osa-mi-card .osa-mi-mobile{
  font-size:12px;
  font-weight:800;
  color:#475569;
  flex:0 0 auto;
}
/* Row-5 status badge (colorful like before) */
.osa-mi-card .osa-mi-status{
  padding:6px 10px;
  border-radius:999px;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color:#fff;
  font-size:11px;
  font-weight:900;
  box-shadow: 0 10px 18px rgba(34,197,94,0.18);
}
/* View details button in card */
.osa-mi-card .osa-mp-project-toggle{
  border:0;
  background:transparent;
  padding:8px 10px;
  border-radius:12px;
  font-weight:900;
  font-size:12px;
  color:#0f172a;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:8px;
}
.osa-mi-card .osa-mp-project-toggle:hover{
  background:#f1f5f9;
}
.osa-mi-card .osa-mp-project-details{
  margin-top:10px;
  border-top:1px solid rgba(15,23,42,0.06);
  padding-top:12px;
}

.osa-mp-stmt-actions{display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap;}
