/* Locked-safe notification/dashboard override layer. Load after styles.css. */
:root{
  --ovia-blue:#2563eb;
  --ovia-blue-soft:#eaf2ff;
  --ovia-ink:#0f172a;
  --ovia-muted:#5f7088;
  --ovia-line:#d8e4f2;
  --ovia-card:#ffffff;
}

/* Notifications page only */
.notifications-page{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:32px 22px 48px;
  color:var(--ovia-ink);
  box-sizing:border-box;
}
.notifications-page *{box-sizing:border-box;min-width:0;}
.notifications-hero{
  background:linear-gradient(135deg,#ffffff 0%,#f4f8ff 100%);
  border:1px solid var(--ovia-line);
  border-radius:28px;
  padding:28px 32px;
  box-shadow:0 18px 42px rgba(15,23,42,.06);
  margin-bottom:20px;
}
.notifications-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  padding:7px 14px;
  border-radius:999px;
  background:#eef5ff;
  border:1px solid #bfdbfe;
  color:#1d4ed8;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:14px;
}
.notifications-title{
  margin:0 0 8px;
  font-size:30px;
  line-height:1.08;
  letter-spacing:-.03em;
  font-weight:800;
}
.notifications-subtitle{
  margin:0;
  max-width:760px;
  color:#334e70;
  font-size:14px;
  line-height:1.6;
}
.notifications-actions{
  margin-top:18px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.notifications-actions a,
.notifications-actions button,
.notification-link-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:10px 18px;
  border-radius:14px;
  border:1px solid #d7e3f4;
  background:#fff;
  color:#10203b;
  font-weight:800;
  text-decoration:none;
  font-size:14px;
  cursor:pointer;
}
.notifications-actions .primary,
.notification-link-button.primary{
  background:var(--ovia-blue);
  color:#fff;
  border-color:var(--ovia-blue);
  box-shadow:0 12px 24px rgba(37,99,235,.22);
}
.notifications-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:0 0 18px;
}
.notifications-stat-card{
  background:#fff;
  border:1px solid var(--ovia-line);
  border-radius:18px;
  padding:16px 18px;
  box-shadow:0 14px 32px rgba(15,23,42,.05);
  overflow:hidden;
}
.notifications-stat-label{
  display:block;
  color:#64748b;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:8px;
}
.notifications-stat-value{
  display:block;
  color:#0f172a;
  font-size:22px !important;
  line-height:1.1;
  font-weight:800;
  letter-spacing:-.02em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.notifications-filter-row{
  display:flex;
  align-items:center;
  gap:9px;
  overflow-x:auto;
  padding:2px 0 14px;
  margin-bottom:6px;
  scrollbar-width:thin;
}
.notifications-filter-row a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid #d7e3f4;
  color:#1e293b;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
  line-height:1;
}
.notifications-filter-row a.active{
  background:#eaf2ff;
  border-color:#93c5fd;
  color:#1d4ed8;
}
.notifications-panel{
  background:#fff;
  border:1px solid var(--ovia-line);
  border-radius:24px;
  padding:22px;
  box-shadow:0 18px 42px rgba(15,23,42,.06);
}
.notifications-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.notifications-panel-title{
  margin:0 0 6px;
  font-size:20px;
  line-height:1.2;
  font-weight:800;
}
.notifications-panel-desc{
  margin:0;
  color:#53667f;
  font-size:13px;
  line-height:1.5;
}
.notifications-count-pill{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:6px 11px;
  border-radius:999px;
  background:#f1f5f9;
  border:1px solid #dbe6f3;
  color:#0f172a;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.notification-list{
  display:grid;
  gap:12px;
}
.notification-card{
  display:grid;
  grid-template-columns:44px 1fr auto;
  gap:14px;
  align-items:start;
  padding:16px;
  border-radius:18px;
  border:1px solid #dbe6f3;
  background:#fbfdff;
}
.notification-card.unread{
  background:#eef6ff;
  border-color:#93c5fd;
}
.notification-icon{
  width:40px;
  height:40px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-weight:900;
  color:#1d4ed8;
  background:#dbeafe;
  font-size:15px;
}
.notification-title{
  margin:0 0 5px;
  font-size:15px;
  line-height:1.25;
  font-weight:800;
  color:#0f172a;
}
.notification-message{
  margin:0 0 10px;
  color:#334e70;
  font-size:13px;
  line-height:1.55;
}
.notification-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  color:#64748b;
  font-size:12px;
}
.notification-type-pill{
  display:inline-flex;
  padding:4px 8px;
  border-radius:999px;
  background:#eef2f7;
  color:#475569;
  font-weight:800;
  font-size:11px;
}
.notification-status{
  justify-self:end;
  color:#1d4ed8;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.notification-empty{
  padding:28px;
  border:1px dashed #cbd5e1;
  border-radius:18px;
  text-align:center;
  color:#64748b;
  background:#f8fafc;
}

/* Dashboard section polish without replacing dashboard.php */
.dashboard-next-action,
.next-action-card,
.ai-growth-coach,
.financial-intelligence{
  overflow:hidden;
}
/* Keep financial intelligence secondary, never hero-sized */
.financial-intelligence .kpi,
.financial-intelligence .fi-value,
.financial-intelligence [class*="value"],
.financial-intelligence strong{
  font-size:20px !important;
  line-height:1.15 !important;
  font-weight:750 !important;
  letter-spacing:-.02em !important;
}
.financial-intelligence .fi-label,
.financial-intelligence [class*="label"]{
  font-size:11px !important;
  letter-spacing:.08em !important;
  color:#64748b !important;
}
.profile-summary .kpi,
.profile-summary [class*="value"],
.profile-summary strong{
  font-size:16px !important;
  line-height:1.15 !important;
  word-break:break-word;
}
.profile-summary .stat-id{font-size:15px !important;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;}

@media (max-width:900px){
  .notifications-page{padding:22px 14px 36px;}
  .notifications-hero{padding:22px 18px;border-radius:22px;}
  .notifications-title{font-size:25px;}
  .notifications-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .notification-card{grid-template-columns:38px 1fr;}
  .notification-status{grid-column:2;justify-self:start;}
}
@media (max-width:520px){
  .notifications-stats{grid-template-columns:1fr;}
  .notifications-actions a{width:100%;}
  .notifications-panel{padding:16px;border-radius:20px;}
  .notifications-panel-head{display:block;}
  .notifications-count-pill{margin-top:10px;}
}


