
/* Harbour North 4.0F — My Plans
   Presentation only. Plan loading/switching/cloud logic is untouched. */

#myPlans{
  background:#fbfaf6;
}

#myPlans .plans-shell{
  min-height:100vh;
  background:transparent;
}

/* Replace the old account topbar with the shared Harbour North shell. */
#myPlans .plans-topbar{
  display:none!important;
}

#myPlans .plans-main{
  max-width:1280px;
  margin:0 auto;
  padding:38px 32px 72px;
}

/* Page heading */
#myPlans .plans-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:28px;
  margin:0 0 26px;
}
#myPlans .plans-heading .eyebrow{
  color:#138a65;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
#myPlans .plans-heading h2{
  margin:7px 0 8px;
  color:#0f3558;
  font-family:Georgia,"Times New Roman",serif;
  font-size:42px;
  line-height:1.08;
  letter-spacing:-.025em;
}
#myPlans .plans-heading .lead{
  max-width:700px;
  margin:0;
  color:#526b78;
  font-size:15px;
  line-height:1.6;
}
#myPlans #createPlanBtn{
  flex:0 0 auto;
  min-height:48px;
  margin-top:4px;
}

/* Plan cards */
#myPlans .plans-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-top:10px;
}

#myPlans .plans-grid > *{
  min-width:0;
}

/* Work with both the current named card classes and generic rendered children. */
#myPlans .plan-card,
#myPlans .plans-card,
#myPlans .plans-grid > article,
#myPlans .plans-grid > section{
  position:relative;
  padding:24px!important;
  border:1px solid rgba(15,53,88,.11)!important;
  border-radius:20px!important;
  background:#fffefa!important;
  box-shadow:0 7px 24px rgba(15,53,88,.035)!important;
  transition:border-color .18s,box-shadow .18s,transform .18s;
}

#myPlans .plan-card:hover,
#myPlans .plans-card:hover,
#myPlans .plans-grid > article:hover,
#myPlans .plans-grid > section:hover{
  transform:translateY(-1px);
  border-color:rgba(19,138,101,.24)!important;
  box-shadow:0 10px 28px rgba(15,53,88,.055)!important;
}

/* Typography inside whatever card renderer is currently active. */
#myPlans .plans-grid h3,
#myPlans .plans-grid h4{
  color:#0f3558;
  font-family:Georgia,"Times New Roman",serif;
  font-size:24px;
  line-height:1.18;
  letter-spacing:-.015em;
}
#myPlans .plans-grid p,
#myPlans .plans-grid .quiet,
#myPlans .plans-grid small{
  color:#667a84;
  line-height:1.5;
}
#myPlans .plans-grid strong{
  color:#0f3558;
}

/* Active/current plan cue if renderer exposes one. */
#myPlans [data-active="true"],
#myPlans .active-plan,
#myPlans .current-plan{
  border-color:rgba(19,138,101,.34)!important;
  background:linear-gradient(135deg,#fffefa,#f3f8f5)!important;
}

/* Keep card actions clear but understated. */
#myPlans .plans-grid .btn.primary{
  min-height:44px;
  box-shadow:none;
}
#myPlans .plans-grid .btn.secondary{
  min-height:44px;
  background:#f8f9f6;
}
#myPlans .plans-grid .btn.text{
  min-height:40px;
  color:#61747e;
}

/* Empty state */
#myPlans .plans-empty{
  margin-top:26px;
  padding:54px 30px;
  border:1px solid rgba(15,53,88,.11);
  border-radius:22px;
  background:#fffefa;
  box-shadow:0 7px 24px rgba(15,53,88,.035);
  text-align:center;
}
#myPlans .plans-empty-icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  margin:0 auto 16px;
  border-radius:50%;
  background:#e8f2ee;
  color:#138a65;
  font-size:24px;
}
#myPlans .plans-empty h3{
  margin:0 0 8px;
  color:#0f3558;
  font-family:Georgia,"Times New Roman",serif;
  font-size:28px;
}
#myPlans .plans-empty .quiet{
  max-width:560px;
  margin:0 auto 18px;
}

/* Account information becomes a small footer rather than page chrome. */
.hn4f-plans-account{
  max-width:1280px;
  margin:0 auto;
  padding:0 32px 30px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:14px;
  color:#71838b;
  font-size:12px;
}
.hn4f-plans-account .btn{
  min-height:38px;
  padding:0;
}

/* My Plans is reached from the menu, so no main navigation pill is active. */
#myPlans .hn4f-nav button[aria-current="page"]{
  background:transparent;
}

@media(max-width:800px){
  #myPlans .plans-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:650px){
  #myPlans .plans-main{
    padding:28px 18px 60px;
  }
  #myPlans .plans-heading{
    flex-direction:column;
    gap:16px;
  }
  #myPlans .plans-heading h2{
    font-size:34px;
  }
  #myPlans #createPlanBtn{
    width:100%;
  }
  .hn4f-plans-account{
    padding-left:18px;
    padding-right:18px;
  }
}

/* Harbour North — first plan empty state */
#myPlans .plans-empty.hn-first-plan-empty{
  max-width:720px;
  margin:54px auto 0;
  padding:54px 44px;
  text-align:center;
  background:#fffdf8;
  border:1px solid rgba(15,53,88,.12);
  border-radius:18px;
  box-shadow:0 18px 45px rgba(15,53,88,.06);
}

#myPlans .plans-empty.hn-first-plan-empty .plans-empty-icon{
  width:62px;
  height:62px;
  margin:0 auto 22px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#e8f2ee;
  color:#0f3558;
  font-size:27px;
  font-weight:900;
}

#myPlans .plans-empty.hn-first-plan-empty h3{
  margin:0 0 12px;
  color:#0f3558;
  font-family:Georgia,"Times New Roman",serif;
  font-size:30px;
  line-height:1.15;
}

#myPlans .plans-empty.hn-first-plan-empty p{
  max-width:520px;
  margin:0 auto 26px;
  color:#60737b;
  font-size:16px;
  line-height:1.6;
}

#myPlans .plans-empty.hn-first-plan-empty #createFirstPlanBtn{
  min-width:230px;
}

#myPlans #createPlanBtn.hn-hide-new-plan{
  display:none !important;
}

/* Harbour North — reversible plan deletion */
#myPlans .plans-undo{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 18px;
  padding:12px 16px;
  border:1px solid rgba(19,138,101,.18);
  border-radius:14px;
  background:#f1f7f4;
  color:#405f69;
  font-size:14px;
}

#myPlans .plans-undo.hidden{
  display:none!important;
}

#myPlans .plans-undo .btn{
  flex:0 0 auto;
  min-height:34px;
  padding:0 6px;
  color:#0f3558;
  font-weight:800;
}

@media(max-width:520px){
  #myPlans .plans-undo{
    align-items:flex-start;
  }
}


/* ==========================================================
   PLAN CURRENT STATE V1
   ========================================================== */

.plan-card.is-current{
  border-color:rgba(50,104,121,.34);
  box-shadow:
    0 10px 30px rgba(11,48,72,.07),
    inset 4px 0 0 var(--hn-gold);
}

.plan-card-title-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.plan-card-title-row h3{
  margin:0;
}

.plan-current-badge{
  display:inline-flex;
  align-items:center;

  min-height:24px;
  padding:4px 9px;

  border:1px solid rgba(212,154,50,.28);
  border-radius:999px;

  background:rgba(212,154,50,.10);

  color:#8c641e;

  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}


/* Harbour North — first-plan empty-state polish */
html.hn-myplans-empty,
body.hn-myplans-empty{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}

html.hn-myplans-empty::-webkit-scrollbar,
body.hn-myplans-empty::-webkit-scrollbar{
  width:0!important;
  height:0!important;
  display:none!important;
}

body.hn-myplans-empty #plansMessage:empty{
  display:none!important;
}

#myPlans .plans-empty.hn-first-plan-empty{
  margin-top:18px!important;
}

#myPlans .plans-empty.hn-first-plan-empty .plans-empty-icon{
  transform:none!important;
}

#myPlans .plans-empty.hn-first-plan-empty .plans-empty-icon .hn4f-logo{
  width:44px!important;
  height:44px!important;
  flex:0 0 44px!important;
  display:block!important;
}