/* MeFlow Home — Apple-like visual polish. Visual-only layer; no access or data logic. */
.meflow-home-page{
    --mfh-bg:#f5f5f7;
    --mfh-card:rgba(255,255,255,.92);
    --mfh-text:#1d1d1f;
    --mfh-muted:#6e6e73;
    --mfh-muted-2:#86868b;
    --mfh-blue:#2f61e9;
    --mfh-blue-soft:#edf3ff;
    font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",Inter,"Segoe UI",sans-serif;
    background:
        radial-gradient(circle at 18% -8%,rgba(47,97,233,.075),transparent 34rem),
        linear-gradient(180deg,#fafbff 0%,#f5f5f7 32%,#f5f5f7 100%);
}

.meflow-home-page .modern-container{max-width:1180px}

/* Header: retain MeFlow blue, remove the heavy admin-dashboard feel. */
.meflow-home-topbar{
    background:linear-gradient(90deg,#2857dc 0%,#3565e7 55%,#3b68df 100%);
    box-shadow:0 1px 0 rgba(255,255,255,.12),0 10px 30px rgba(34,72,170,.10);
}
.meflow-home-topbar-inner{min-height:70px}
.meflow-home-brand{gap:11px}
.meflow-home-logo-shell{height:auto!important;padding:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}
.meflow-home-logo-shell .prodi-logo{height:40px!important;width:auto!important;object-fit:contain}
.meflow-home-brand-divider{height:27px;background:rgba(255,255,255,.28)}
.meflow-home-brand-name{font-size:17px;font-weight:650;letter-spacing:-.025em}
.meflow-home-user{
    border:0;
    background:rgba(255,255,255,.12);
    border-radius:999px;
    padding:5px 10px 5px 5px;
    min-height:42px;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.10);
    transition:background-color .18s ease,transform .18s ease;
}
.meflow-home-user:hover,.meflow-home-user:focus-visible,.meflow-home-user[aria-expanded="true"]{background:rgba(255,255,255,.18);transform:translateY(-1px);border-color:transparent}
.meflow-home-avatar{width:32px;height:32px;border-radius:50%;box-shadow:none;font-weight:700}
.meflow-home-user-copy strong{font-size:12px;font-weight:650}
.meflow-home-user-copy small{font-size:10px;color:rgba(255,255,255,.68)}
.meflow-home-user-menu{border:0;border-radius:18px;padding:8px;box-shadow:0 22px 60px rgba(0,0,0,.18);backdrop-filter:blur(18px)}

/* Page rhythm and typography. */
.meflow-home-main{padding:46px 0 62px}
.meflow-home-welcome{padding:0 2px 6px}
.meflow-home-kicker{display:none}
.meflow-home-welcome h1{font-size:38px;line-height:1.08;font-weight:700;letter-spacing:-.045em;color:#1d1d1f}
.meflow-home-welcome p{font-size:16px;line-height:1.5;color:var(--mfh-muted);margin-top:9px;font-weight:400}
.meflow-home-section{margin-top:42px}
.meflow-home-section-head{margin-bottom:16px;align-items:flex-end}
.meflow-home-section-eyebrow{
    color:var(--mfh-muted-2);
    font-size:11px;
    font-weight:550;
    letter-spacing:0;
    text-transform:none;
    margin-bottom:6px;
}
.meflow-home-section-head h2{font-size:24px;line-height:1.15;font-weight:680;letter-spacing:-.035em;color:#1d1d1f}
.meflow-home-section-head p{font-size:13px;line-height:1.45;color:var(--mfh-muted-2);margin-top:5px}

/* Agenda: spacious event cards, large time, very light surfaces. */
.meflow-home-agenda-strip{
    grid-auto-columns:minmax(320px,405px);
    gap:16px;
    padding:4px 3px 14px;
    scrollbar-width:none;
}
.meflow-home-agenda-strip::-webkit-scrollbar{display:none}
.meflow-home-agenda-card{
    min-height:222px;
    border:0;
    border-radius:26px;
    padding:22px 23px 20px;
    background:rgba(255,255,255,.94);
    box-shadow:0 8px 30px rgba(0,0,0,.045);
    transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s ease,background-color .2s ease;
}
.meflow-home-agenda-card::before{display:none}
.meflow-home-agenda-card:hover{transform:translateY(-2px);box-shadow:0 14px 38px rgba(0,0,0,.065)}
.meflow-home-agenda-card.is-ongoing{border:0;background:linear-gradient(145deg,#fff 0%,#f2fbf6 100%);box-shadow:0 10px 32px rgba(22,130,93,.08)}
.meflow-home-agenda-topline{min-height:24px}
.meflow-home-agenda-date{font-size:11px;font-weight:650;letter-spacing:0;text-transform:none;color:var(--mfh-muted-2)}
.meflow-home-agenda-card.is-ongoing .meflow-home-agenda-date{color:#16825d}
.meflow-home-agenda-today{padding:4px 8px;border-radius:999px;background:#edf3ff;color:var(--mfh-blue);font-size:9px;font-weight:650;letter-spacing:0;text-transform:none}
.meflow-home-agenda-time{font-size:28px;line-height:1;font-weight:650;letter-spacing:-.035em;color:#1d1d1f;margin-top:16px}
.meflow-home-agenda-card h3{font-size:18px;line-height:1.28;font-weight:650;letter-spacing:-.025em;margin:14px 0 6px;color:#1d1d1f}
.meflow-home-agenda-card p{font-size:12px;font-weight:500;color:var(--mfh-muted)}
.meflow-home-agenda-location{gap:7px;margin-top:13px;font-size:12px;color:var(--mfh-muted-2)}
.meflow-home-agenda-calendar{margin-top:15px;font-size:12px;font-weight:600;text-decoration:none}
.meflow-home-agenda-calendar:hover{text-decoration:none;opacity:.72}

/* Launcher: icon-first tiles, more like an app launcher than admin cards. */
.meflow-home-service-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}
.meflow-home-service-card{
    min-height:166px;
    border:0;
    border-radius:24px;
    background:rgba(255,255,255,.82);
    padding:20px 18px 18px;
    align-items:center;
    text-align:center;
    box-shadow:0 6px 24px rgba(0,0,0,.035);
    transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s ease,background-color .2s ease;
}
.meflow-home-service-card.is-active:hover{transform:translateY(-3px) scale(1.01);border-color:transparent;box-shadow:0 14px 34px rgba(0,0,0,.07);background:#fff}
.meflow-home-service-card.is-active:focus-visible{outline:3px solid rgba(47,97,233,.18);outline-offset:4px}
.meflow-home-service-icon{
    width:58px;
    height:58px;
    border-radius:18px;
    margin-bottom:16px;
    font-size:23px;
    background:linear-gradient(145deg,#eef4ff,#e5edff);
    color:var(--mfh-blue);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.85);
    transition:transform .2s cubic-bezier(.2,.8,.2,1);
}
.meflow-home-service-card.is-active:hover .meflow-home-service-icon{transform:scale(1.04)}
.meflow-home-service-copy{align-items:center;gap:5px}
.meflow-home-service-copy strong{font-size:15px;font-weight:650;letter-spacing:-.02em;color:#1d1d1f}
.meflow-home-service-copy small{font-size:11px;line-height:1.35;color:var(--mfh-muted-2)}
.meflow-home-service-arrow{display:none}
.meflow-home-service-badge{top:12px;right:12px;padding:4px 7px;font-size:9px;font-weight:600;letter-spacing:0;text-transform:none}
.meflow-home-service-card.is-coming{background:transparent;border:0;color:#9a9aa0;box-shadow:none;opacity:.78}
.meflow-home-service-card.is-coming .meflow-home-service-icon{background:#e9e9ec;color:#9a9aa0}
.meflow-home-service-card.is-coming .meflow-home-service-copy strong{color:#6e6e73}
.meflow-home-service-card.is-coming .meflow-home-service-copy small{color:#9a9aa0}
.meflow-home-service-badge.is-muted{background:#e9e9ec;color:#7b7b80}

/* Guest program cards: calm library-style summary cards. */
.meflow-home-program-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.meflow-home-program-card{
    border:0;
    border-radius:24px;
    padding:21px;
    background:rgba(255,255,255,.90);
    box-shadow:0 7px 26px rgba(0,0,0,.04);
}
.meflow-home-program-head h3{font-size:17px;font-weight:650;letter-spacing:-.025em;color:#1d1d1f}
.meflow-home-program-head p{font-size:11px;color:var(--mfh-muted-2);margin-top:6px}
.meflow-home-status{padding:5px 9px;border-radius:999px;font-size:9px;font-weight:600;letter-spacing:0;text-transform:none}
.meflow-home-program-role{margin-top:18px;padding-top:15px;border-top:1px solid rgba(0,0,0,.055);font-size:12px}
.meflow-home-program-role strong{font-size:12px;font-weight:600}
.meflow-home-program-next{margin-top:14px;padding:14px 15px;border-radius:16px;background:#f5f5f7;min-height:78px}
.meflow-home-program-next small{font-size:9px;font-weight:600;letter-spacing:0;text-transform:none}
.meflow-home-program-next strong{font-size:12px;font-weight:600;margin-top:5px}
.meflow-home-program-next span{font-size:11px;line-height:1.4;margin-top:4px}
.meflow-home-guest-note{margin-top:15px;font-size:11px;color:var(--mfh-muted-2)}

/* Empty states and footer. */
.meflow-home-empty{
    min-height:116px;
    border:0;
    border-radius:24px;
    background:rgba(255,255,255,.72);
    box-shadow:0 5px 20px rgba(0,0,0,.025);
}
.meflow-home-empty-icon{width:44px;height:44px;border-radius:14px;background:#edf3ff;font-size:17px}
.meflow-home-empty strong{font-size:13px;font-weight:600}
.meflow-home-empty span:not(.meflow-home-empty-icon){font-size:12px}
.meflow-home-footer{margin-top:48px;border-top:0;color:#a0a0a5;font-size:10px}

@media(max-width:1199.98px){
    .meflow-home-service-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .meflow-home-program-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:767.98px){
    .meflow-home-topbar-inner{min-height:62px}
    .meflow-home-logo-shell .prodi-logo{height:35px!important}
    .meflow-home-brand-divider{height:24px}
    .meflow-home-brand-name{font-size:15px}
    .meflow-home-user{min-height:38px;padding:4px 7px 4px 4px}
    .meflow-home-avatar{width:30px;height:30px}
    .meflow-home-main{padding:32px 0 44px}
    .meflow-home-welcome h1{font-size:31px}
    .meflow-home-welcome p{font-size:14px}
    .meflow-home-section{margin-top:34px}
    .meflow-home-section-head h2{font-size:21px}
    .meflow-home-section-head p{font-size:12px}
    .meflow-home-agenda-strip{grid-auto-columns:minmax(285px,88vw);gap:13px;margin-right:-12px;padding-right:12px}
    .meflow-home-agenda-card{min-height:210px;border-radius:22px;padding:20px}
    .meflow-home-agenda-time{font-size:25px}
    .meflow-home-agenda-card h3{font-size:17px}
    .meflow-home-service-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
    .meflow-home-service-card{min-height:148px;border-radius:21px;padding:17px 12px 15px}
    .meflow-home-service-icon{width:52px;height:52px;border-radius:16px;font-size:21px;margin-bottom:13px}
    .meflow-home-program-grid{grid-template-columns:1fr}
    .meflow-home-program-card{border-radius:21px}
}

@media(max-width:420px){
    .meflow-home-brand-divider{display:none}
    .meflow-home-brand-name{font-size:14px}
    .meflow-home-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .meflow-home-service-card{min-height:140px}
    .meflow-home-service-copy strong{font-size:14px}
    .meflow-home-service-copy small{font-size:10px}
}

@media(prefers-reduced-motion:reduce){
    .meflow-home-service-card,.meflow-home-service-icon,.meflow-home-agenda-card,.meflow-home-user{transition:none!important}
}
