/* Moneyonomy — black + rainbow theme */
:root{
  --bg:#000;--card:#0D0D0D;--card2:#141414;--line:#2A2A2A;--text:#fff;--muted:#BDBDBD;
  --red:#FF4D6D;--orange:#FF9F1C;--yellow:#FFE14D;--green:#3DDC84;--teal:#2DD4BF;--blue:#4CC9F0;--purple:#B388FF;--pink:#FF66C4;
  --rainbow:linear-gradient(90deg,var(--red),var(--orange),var(--yellow),var(--green),var(--blue),var(--purple),var(--pink));
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.5}
h1,h2,h3,.display{font-family:Outfit,Inter,sans-serif;line-height:1.1;margin:0}
a{color:var(--blue)}a:hover{color:var(--purple)}
img{max-width:100%}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.muted{color:var(--muted)}
.stripe{height:6px;background:var(--rainbow)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}

/* brand */
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text)}
.logo{width:36px;height:36px;border-radius:10px;background:var(--pink);color:#000;display:grid;place-items:center;font-family:Outfit,sans-serif;font-weight:800;font-size:20px}
.word{font-family:Outfit,sans-serif;font-weight:700;font-size:22px}
.word span:nth-child(7n+1){color:var(--red)}.word span:nth-child(7n+2){color:var(--orange)}.word span:nth-child(7n+3){color:var(--yellow)}
.word span:nth-child(7n+4){color:var(--green)}.word span:nth-child(7n+5){color:var(--blue)}.word span:nth-child(7n+6){color:var(--purple)}.word span:nth-child(7n){color:var(--pink)}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:12px 22px;border-radius:999px;font-weight:700;font-size:16px;text-decoration:none;border:2px solid transparent;cursor:pointer;font-family:inherit;color:#000}
.btn:hover{filter:brightness(1.1);color:#000}
.btn-yellow{background:var(--yellow)}.btn-green{background:var(--green)}.btn-blue{background:var(--blue)}
.btn-purple{background:var(--purple)}.btn-pink{background:var(--pink)}.btn-orange{background:var(--orange)}.btn-red{background:var(--red)}
.btn-outline{background:transparent;border-color:var(--blue);color:var(--blue)}.btn-outline:hover{color:var(--blue)}
.btn-sm{min-height:36px;padding:6px 14px;font-size:14px}

/* header */
.top{background:#000;border-bottom:1px solid var(--line)}
.top .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding-top:16px;padding-bottom:16px}
.nav{display:flex;flex-wrap:wrap;align-items:center;gap:22px;font-size:15px}
.nav a:not(.btn){color:var(--text);text-decoration:none}.nav a:not(.btn):hover{color:var(--yellow)}

/* sections */
section{padding:72px 0}
.kicker{display:inline-block;background:var(--green);color:#000;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:8px 14px;border-radius:999px}
.hero{padding:56px 0 88px}
.hero .wrap{display:flex;flex-wrap:wrap;gap:48px;align-items:center}
.hero h1{font-weight:800;font-size:clamp(40px,6vw,62px);margin:20px 0 16px}
.hl{background:var(--yellow);color:#000;padding:0 10px;border-radius:8px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.hero p{font-size:19px;color:#E0E0E0;max-width:560px;margin:0 0 28px}
.row{display:flex;flex-wrap:wrap;gap:14px}
.col{flex:1 1 420px;min-width:0}
.sec-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:28px}
.sec-head h2,.h2{font-weight:800;font-size:40px;margin:0 0 8px}
.c-red{color:var(--red)}.c-orange{color:var(--orange)}.c-yellow{color:var(--yellow)}.c-green{color:var(--green)}.c-blue{color:var(--blue)}.c-purple{color:var(--purple)}.c-pink{color:var(--pink)}

/* cards */
.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:24px}
.card h2{font-size:22px;margin-bottom:14px}
.grid{display:grid;gap:24px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.grid-sm{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.product{background:var(--card);border:1px solid var(--line);border-radius:18px;overflow:hidden;display:flex;flex-direction:column}
.cover{height:200px;display:grid;place-items:center;text-align:center;font-family:Outfit,sans-serif;font-weight:800;font-size:28px;padding:20px;border:3px solid;border-radius:18px 18px 0 0;background:#000}
.product .body{padding:20px;display:flex;flex-direction:column;gap:10px;flex-grow:1}
.product h3{font-size:21px}
.product .buy{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:8px}
.price{font-weight:700;font-size:18px}
.plan{border:2px solid var(--line);border-radius:20px;padding:32px;display:flex;flex-direction:column;gap:14px;background:var(--card)}
.plan.pop{border:3px solid var(--green);background:#0E2A1A}
.plan ul{margin:0;padding-left:20px;line-height:1.9}
.plan .amt{font-family:Outfit,sans-serif;font-weight:800;font-size:40px}
.pill{background:var(--yellow);color:#000;font-size:13px;font-weight:700;padding:6px 12px;border-radius:999px}
.tile{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:18px;text-decoration:none;color:var(--text);display:block}
.tile:hover{border-color:var(--purple);color:var(--text)}
.tile .n{font-family:Outfit,sans-serif;font-weight:800;font-size:15px}
.tile .t{font-weight:600;font-size:17px;margin-top:4px}

/* bars */
.bar{height:10px;background:#262626;border-radius:99px;overflow:hidden}
.bar>i{display:block;height:100%;border-radius:99px}
.line{display:flex;justify-content:space-between;font-size:15px;margin-bottom:6px}

footer{border-top:1px solid var(--line);padding:36px 0;color:#E0E0E0;font-size:14px}
footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px}
footer a{color:#E0E0E0}

/* app layout */
.app{display:flex;flex-wrap:wrap;min-height:100vh}
.side{flex:1 1 260px;max-width:100%;background:#000;border-right:1px solid var(--line);padding:24px 16px}
.side .brand{padding:0 8px 24px}
.side-label{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:0 12px 8px}
.side nav{display:flex;flex-direction:column;gap:2px;font-size:15px}
.side nav a{display:flex;gap:10px;align-items:center;color:var(--text);text-decoration:none;padding:10px 12px;border-radius:10px}
.side nav a:hover,.side nav a[aria-current="page"]{background:#1A1A1A}
.side nav a b{font-family:Outfit,sans-serif;width:22px}
.side .extra{border-top:1px solid var(--line);margin-top:18px;padding-top:14px}
.side .extra a{color:#E0E0E0}
.main{flex:999 1 560px;min-width:0;padding:32px}
.main-in{max-width:1080px;margin:0 auto;display:flex;flex-direction:column;gap:24px}
.stats{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.stat .k{font-size:14px;color:var(--muted)}
.stat .v{font-family:Outfit,sans-serif;font-weight:800;font-size:38px;margin:6px 0}
.flex2{display:flex;flex-wrap:wrap;gap:20px}
.flex2>*{flex:1 1 440px;min-width:0}
.banner{background:#2A2405;border:1px solid var(--yellow);border-radius:14px;padding:12px 16px;font-size:14px}

/* calendar */
.legend{display:flex;gap:14px;font-size:13px;font-weight:600}
.legend i{display:inline-block;width:12px;height:12px;border-radius:4px;margin-right:6px;vertical-align:-1px}
.cal-head,.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.cal-head{font-size:12px;font-weight:600;color:var(--muted);text-align:center;margin-bottom:6px}
.day{min-height:62px;border-radius:10px;padding:6px;display:flex;flex-direction:column;align-items:flex-start;gap:3px;cursor:pointer;font-family:inherit;background:#141414;color:var(--text);border:1px solid var(--line);overflow:hidden}
.day.blank{visibility:hidden}
.day.past{background:#080808;color:#8A8A8A}
.day.today{background:#2A2405;border:2px solid var(--yellow)}
.day.sel{background:var(--pink);color:#000;border-color:var(--pink)}
.day .num{font-weight:700;font-size:14px}
.tag{font-size:10px;font-weight:700;color:#000;padding:2px 5px;border-radius:5px;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.detail{margin-top:14px;background:#141414;border-radius:12px;padding:14px 16px}
.ev{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px;padding:4px 0}
.ev span:first-child{flex-grow:1}
.x{min-width:32px;min-height:32px;background:#000;color:var(--red);border:1px solid var(--red);border-radius:999px;font-weight:700;cursor:pointer}
.kinds{display:flex;flex-wrap:wrap;gap:8px}
.kind{min-height:40px;padding:8px 14px;border-radius:999px;font-weight:700;font-size:14px;cursor:pointer;background:#000;border:2px solid;font-family:inherit}
.field{font-size:15px;padding:10px 12px;background:#000;color:#fff;border:1px solid #3A3A3A;border-radius:10px;min-width:0;font-family:inherit}
.add-row{display:flex;flex-wrap:wrap;gap:8px}

/* video steps */
.video{aspect-ratio:16/9;border-radius:14px;background:var(--card);border:2px solid var(--purple);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:12px;overflow:hidden}
.video iframe{width:100%;height:100%;border:0;border-radius:10px}
.step{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:8px 10px}
.step.done{background:#0E2A1A}
.step input{width:22px;height:22px;accent-color:var(--green);flex:0 0 auto}
.step label{flex-grow:1;font-size:15px;font-weight:600}
.step small{display:block;font-weight:400;font-size:13px;color:var(--muted)}
.quiz{background:#2A2405;border:1px solid var(--yellow);border-radius:12px;padding:14px 16px}
.opt{min-height:44px;padding:10px 16px;border-radius:999px;font-weight:700;font-size:15px;cursor:pointer;background:#000;color:#fff;border:2px solid var(--blue);font-family:inherit}
.opt.right{background:var(--green);border-color:var(--green);color:#000}
.opt.wrong{background:var(--red);border-color:var(--red);color:#000}

/* planner */
.pl-grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.pl-item{border-radius:14px;padding:16px;border:2px solid;display:flex;flex-direction:column;gap:8px}
.pl-item label{font-weight:600;font-size:15px}
.pl-item input{font-size:18px;font-weight:600;padding:10px 12px;border:1px solid #3A3A3A;border-radius:10px;width:100%;background:#000;color:#fff}
.status{margin-top:20px;border-radius:14px;padding:18px 20px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}
.status b{font-family:Outfit,sans-serif;font-size:30px}
.st-ok{background:#0E2A1A;color:var(--green)}.st-left{background:#2A2405;color:var(--yellow)}.st-over{background:#2A0E0E;color:var(--red)}
.payin{font-family:Outfit,sans-serif;font-weight:700;font-size:24px;width:200px;padding:10px 14px;border:2px solid var(--yellow);border-radius:12px;background:#000;color:var(--yellow)}

@media (max-width:640px){
  .main{padding:20px 14px}
  .day{min-height:50px;padding:4px}
  .tag{font-size:9px;padding:1px 3px}
  section{padding:52px 0}
}

/* add-entry pop-up */
dialog#addDlg{border:2px solid var(--purple);border-radius:20px;background:#0D0D0D;color:var(--text);padding:0;width:min(520px,calc(100vw - 32px));max-height:calc(100vh - 32px)}
dialog#addDlg::backdrop{background:rgba(0,0,0,.75)}
.dlg-body{display:flex;flex-direction:column;gap:12px;padding:22px}
.dlg-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.dlg-head h2{font-size:24px}
.field.big{font-family:Outfit,sans-serif;font-size:26px;font-weight:700;color:var(--yellow);border:2px solid var(--yellow)}
#dlgList:not(:empty){background:#141414;border-radius:12px;padding:8px 12px}
.dlg-body .field{width:100%}
.ev-name{background:none;border:0;color:var(--text);font:inherit;font-size:14px;text-align:left;padding:6px 0;cursor:pointer;flex-grow:1;min-height:32px}
.ev-name:hover{color:var(--yellow);text-decoration:underline}
.ev.paid .ev-name{color:var(--muted);text-decoration:line-through}
.paidbox{width:20px;height:20px;accent-color:var(--green);flex:0 0 auto}
.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,40px);opacity:0;pointer-events:none;background:#141414;border:2px solid var(--yellow);color:#fff;border-radius:999px;padding:8px 10px 8px 18px;display:flex;align-items:center;gap:12px;font-weight:600;font-size:15px;transition:all .2s;z-index:50;max-width:calc(100vw - 24px)}
.toast.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}

/* video library */
.vgroup{background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.vgroup summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px;min-height:44px}
.vgroup summary::-webkit-details-marker{display:none}
.vgroup summary::after{content:'▾';color:var(--muted);margin-left:8px}
.vgroup[open] summary::after{content:'▴'}
.vgrid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));padding:0 16px 16px}
.vcard{background:#141414;border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;text-decoration:none}
.vcard.seen{border-color:#1F5A3A}
.vthumb{position:relative;display:block;aspect-ratio:16/9;background:#000;border:0;padding:0;cursor:pointer;width:100%}
.vthumb img{width:100%;height:100%;object-fit:cover;display:block}
.vplay{position:absolute;inset:0;margin:auto;width:52px;height:52px;border-radius:999px;background:var(--pink);color:#000;display:grid;place-items:center;font-size:20px}
.vcard.seen .vthumb img{opacity:.6}
.newtag{display:inline-block;margin-left:8px;background:var(--yellow);color:#000;font-size:11px;font-weight:800;padding:2px 6px;border-radius:5px;vertical-align:2px}
.wbtn{white-space:nowrap;background:#000;border:1px solid #3A3A3A;color:var(--muted);border-radius:999px;padding:6px 10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;min-height:32px}
.wbtn.on{border-color:var(--green);color:var(--green)}
.latest{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.vcard.mini:hover{border-color:var(--pink)}

/* planner: tabs, parts, bills, job lists */
.tabs{display:flex;gap:8px;margin-bottom:18px;border-bottom:1px solid var(--line);padding-bottom:12px}
.tabs button{font:inherit;font-weight:700;font-size:16px;min-height:44px;padding:8px 22px;border-radius:999px;cursor:pointer;background:#000;color:var(--muted);border:2px solid #3A3A3A}
.tabs button[aria-selected="true"]{background:var(--blue);color:#000;border-color:var(--blue)}
.part{padding:18px 0;border-bottom:1px solid var(--line);scroll-margin-top:16px;border-radius:12px;transition:background .4s}
.part:last-child{border-bottom:0}
.part h2{font-size:24px;margin-bottom:12px}
.part.flash{background:#1A1A2E}
.bill-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:#141414;border:1px solid var(--line);border-radius:12px;padding:8px 10px}
.bill-row .field{min-width:0}
.bill-row .field[type="text"]{flex:2 1 150px}
.bill-row .field[type="number"]{flex:0 1 110px;width:110px}
.split-tog{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:var(--purple);min-height:40px;padding:0 6px;cursor:pointer}
.split-tog input{width:20px;height:20px;accent-color:var(--purple)}
.job-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.job-card{background:#141414;border:1px solid var(--line);border-radius:16px;padding:16px}
.job-card.now{border:2px solid var(--yellow)}
.job-sum{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);margin-top:8px;padding-top:10px;font-size:15px}
.lane-grid{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:12px}
.lane-box{border:2px solid;border-radius:12px;padding:8px 10px;display:flex;flex-direction:column;gap:4px}
.lane-box label{font-weight:700;font-size:14px}
.lane-box input{font-size:18px;font-weight:700;padding:8px 10px;border:1px solid #3A3A3A;border-radius:8px;background:#000;color:#fff;width:100%}
.job-card .status{margin-top:12px;padding:12px 14px}
.job-card .status b{font-size:22px}
.vsoon{position:absolute;inset:0;display:grid;place-items:center;font-family:Outfit,sans-serif;font-weight:800;font-size:22px;color:var(--yellow);background:#0D0D0D}
@media (max-width:640px){.bill-row .field[type="text"]{flex:1 1 100%}.bill-row .field[type="number"]{flex:1 1 28%;width:auto}.bill-row>span.muted{display:none}}

/* ===== streamlined app (Home / My Plan / Journey / Videos) ===== */
.apptop{background:#000;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.apptop-in{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;padding-bottom:12px}
.tabsnav{display:flex;gap:6px}
.tabnav{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 16px;border-radius:999px;color:var(--muted);text-decoration:none;font-weight:700;font-size:15px}
.tabnav:hover{color:#fff;background:#141414}
.tabnav.on{background:var(--yellow);color:#000}
.tabicon{font-family:Outfit,sans-serif;font-weight:800}
.apppage{padding-top:24px;padding-bottom:64px}
.card h2{font-size:22px}
.nextstep{border:2px solid var(--yellow);border-radius:22px;padding:28px}
.tchips{display:flex;flex-wrap:wrap;gap:8px}
.tchip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 16px;border-radius:999px;border:2px solid currentColor;background:#000;font:inherit;font-weight:700;font-size:15px;text-decoration:none;cursor:pointer}
.tchip:hover{filter:brightness(1.15)}
.tchip.on{background:currentColor}
.tchip.on span,.tchip.on{color:inherit}
.tchip.on.c-yellow{background:var(--yellow);color:#000;border-color:var(--yellow)}
.tchip.on.c-blue{background:var(--blue);color:#000;border-color:var(--blue)}
.tchip.on.c-green{background:var(--green);color:#000;border-color:var(--green)}
.tchip.on.c-orange{background:var(--orange);color:#000;border-color:var(--orange)}
.tchip.on.c-pink{background:var(--pink);color:#000;border-color:var(--pink)}
.tchip-i{font-family:Outfit,sans-serif;font-weight:800}
.calwrap>.card{background:transparent;border:0;padding:0}
.eprow{display:flex;align-items:center;gap:14px;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px 16px;margin-bottom:10px;text-decoration:none;color:#fff;min-height:64px}
a.eprow:hover{border-color:var(--pink);color:#fff}
.epnum{flex:0 0 44px;height:44px;border-radius:999px;display:grid;place-items:center;font-family:Outfit,sans-serif;font-weight:800;font-size:20px;background:#262626;color:#fff}
.epmid{flex:1 1 auto;display:flex;flex-direction:column;gap:2px;min-width:0}
.eptitle{font-weight:700;font-size:17px}
.eptopic{font-size:13px;font-weight:700}
.eptag{font-size:13px;font-weight:800;padding:6px 12px;border-radius:999px;background:#1A1A1A;color:var(--muted);white-space:nowrap}
.eprow.next{border:2px solid var(--yellow)}
.eprow.next .epnum{background:var(--yellow);color:#000}
.eprow.next .eptag{background:var(--yellow);color:#000}
.eprow.done .epnum{background:var(--green);color:#000}
.eprow.done .eptag{color:var(--green)}
.eprow.open .eptag{background:var(--pink);color:#000}
.eprow.soon{opacity:.55}
dialog.wizard{border:2px solid var(--yellow);border-radius:22px;background:#0D0D0D;color:#fff;padding:0;width:min(560px,calc(100vw - 24px));max-height:calc(100vh - 24px)}
dialog.wizard::backdrop{background:rgba(0,0,0,.85)}
.wizard .dlg-body .field{width:100%}
.wdots{display:flex;gap:8px}
.wdot{width:36px;height:6px;border-radius:3px;background:#333}
.wdot.on{background:var(--yellow)}
.wq{font-family:Outfit,sans-serif;font-weight:800;font-size:24px;margin:4px 0 12px}
.wl{display:block;font-weight:700;font-size:14px;margin:10px 0 6px}
@media (max-width:760px){
  .apptop .word{display:none}
  .tabsnav{position:fixed;left:0;right:0;bottom:0;background:#000;border-top:1px solid var(--line);justify-content:space-around;padding:6px 4px calc(6px + env(safe-area-inset-bottom));z-index:30}
  .tabnav{flex-direction:column;gap:2px;font-size:12px;padding:6px 10px;border-radius:12px}
  .tabicon{font-size:18px}
  .appbody{padding-bottom:76px}
  .nextstep{padding:20px}
  .nextstep h2{font-size:26px !important}
}
.btn-sm{white-space:nowrap}
#latestEp .vcard{max-width:460px}
.logo-img{width:66px;height:44px;display:block;flex:0 0 auto}
/* logo stacked above the Moneyonomy wordmark (matches the YouTube banner) */
.brand{flex-direction:column;align-items:center;gap:4px}
.brand .word{font-size:20px;line-height:1;letter-spacing:.2px}
.brand .tagline{font-size:11px;font-weight:600;letter-spacing:.4px;color:#fff;opacity:.85;line-height:1;white-space:nowrap}
@media (max-width:760px){.apptop .tagline{display:none}}
