.budget-page{background:#f6f8f5}
.budget-main{padding:32px 0 80px}
.budget-heading{display:flex;justify-content:space-between;align-items:center;gap:35px;margin-bottom:32px}
.budget-heading h1{font-size:clamp(2.1rem,5vw,4.5rem);line-height:1.2;letter-spacing:-.05em;margin:0 0 12px}
.budget-heading h1 span{color:#24815e}
.budget-heading p:last-child{color:#62717a;max-width:690px;font-size:.92rem;line-height:1.9;margin:0}
.budget-mark{display:flex;align-items:center;gap:6px;direction:ltr;flex:none;transform:rotate(-9deg)}
.budget-mark span{display:grid;place-items:center;width:72px;height:72px;border-radius:19px;background:#e0f4e9;color:#1f7958;font-size:1.1rem;font-weight:800}
.budget-mark span:nth-child(2){background:#dceaf4;color:#376987;transform:translateY(-14px)}
.budget-mark span:nth-child(3){background:#f4ead7;color:#886930}
.budget-workspace{display:grid;grid-template-columns:minmax(290px,.9fr) minmax(0,1.1fr);gap:0;background:#fff;border:1px solid #dce5df;border-radius:27px;overflow:hidden;box-shadow:0 18px 44px rgba(7,17,31,.05)}
.budget-entry{padding:34px}
.budget-entry h2{font-size:1.19rem;line-height:1.5;margin:0 0 5px}
.budget-entry>p{color:#6c7880;font-size:.76rem;margin:0 0 24px}
.budget-entry label{display:block;color:#33434a;font-size:.76rem;font-weight:700;margin-bottom:8px}
.budget-input-wrap{display:flex;align-items:center;gap:12px;border:1px solid #b9cec4;border-radius:15px;background:#f9fcfa;padding:0 15px;min-height:62px}
.budget-input-wrap:focus-within{background:#fff;border-color:#2e9b70;box-shadow:0 0 0 4px rgba(46,155,112,.12)}
.budget-input-wrap input{width:100%;min-width:0;background:transparent;border:0;outline:0;color:#07111f;font-size:1.55rem;font-weight:700;text-align:right;direction:ltr}
.budget-input-wrap input::placeholder{color:#a6b2ad;font-weight:500}
.budget-input-wrap .riyal-symbol{font-size:1.35rem;color:#27815d}
.budget-entry .budget-help{font-size:.7rem;line-height:1.8;color:#73817a;margin:12px 0 0}
.budget-entry .budget-error{font-size:.73rem;color:#ae342c;margin:9px 0 0}
.budget-overview{background:#0b192b;color:#fff;padding:20px 30px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0}
.budget-overview-copy{width:100%}
.budget-overview-label{font-size:.75rem;color:#a9b8c0;margin:0 0 8px}
.budget-total{display:block;font-size:clamp(1.9rem,4vw,3.1rem);line-height:1.4;color:#91eec0;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.budget-total:empty{display:none}
.budget-chart{display:grid;place-items:center;width:100%;padding:3px 0 4px}
.budget-pie{width:min(174px,100%);height:auto;overflow:visible;filter:drop-shadow(0 8px 12px rgba(0,0,0,.16))}
.budget-pie path{stroke:#0b192b;stroke-width:3;stroke-linejoin:round}.pie-needs{fill:#77e7b4}.pie-wants{fill:#91bddd}.pie-savings{fill:#f1c977}
.budget-pie text{fill:#0b192b;font-family:Alexandria,system-ui,sans-serif;font-size:20px;font-weight:800;direction:ltr;text-anchor:middle;dominant-baseline:middle}
.budget-allocations{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:3px}
.budget-allocation{min-width:0;border:1px solid rgba(255,255,255,.12);border-radius:13px;background:rgba(255,255,255,.05);padding:10px 8px;text-align:center}
.allocation-name{display:inline-flex;align-items:center;gap:6px;color:#cbd7d5;font-size:.65rem}
.allocation-name i{flex:none;width:8px;height:8px;border-radius:50%;background:#77e7b4}
.budget-allocation.wants .allocation-name i{background:#91bddd}.budget-allocation.savings .allocation-name i{background:#f1c977}
.budget-allocation strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(.68rem,1.2vw,.9rem);line-height:1.6;color:#91eec0;text-align:center}
.budget-allocation.wants strong{color:#bad9ef}.budget-allocation.savings strong{color:#f1d9a2}
.budget-results{padding-top:67px}.budget-section-head .eyebrow{margin-bottom:6px}.budget-section-head h2{font-size:clamp(1.55rem,3.4vw,2.45rem);line-height:1.4;margin:0 0 5px}.budget-section-head>p:last-child{color:#6c7880;font-size:.8rem;margin:0}
.budget-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:25px}
.budget-card{min-width:0;background:#fff;border:1px solid #dce5df;border-radius:22px;padding:25px;display:flex;flex-direction:column}
.budget-card-top{display:flex;justify-content:space-between;align-items:center}.budget-percent{display:grid;place-items:center;width:62px;height:62px;border-radius:17px;background:#e2f7ea;color:#1b7652;font-size:1.1rem;font-weight:800;direction:ltr}.budget-card-number{color:#99aaa3;font-size:.72rem}
.budget-card.wants .budget-percent{background:#e6f0f7;color:#376987}.budget-card.savings .budget-percent{background:#f9efd9;color:#886930}
.budget-card h3{font-size:1.12rem;margin:20px 0 2px}.budget-amount{display:block;min-height:1.55em;font-size:clamp(1.4rem,2.6vw,2.1rem);color:#0b192b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right;line-height:1.55}.budget-card>p{font-size:.75rem;color:#607079;line-height:1.9;margin:10px 0 20px}
.budget-tip{margin-top:auto;border-top:1px solid #e8eeea;padding-top:15px;font-size:.72rem;line-height:1.85;color:#53656a}.budget-tip b{display:block;color:#247c58;margin-bottom:2px}
.budget-guide{padding:70px 0 20px}.budget-guide ol{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:24px 0 0;padding:0;list-style:none;counter-reset:budget-step}.budget-guide li{counter-increment:budget-step;background:#ebf3ee;border-radius:17px;padding:22px;font-size:.77rem;line-height:1.85;color:#52646a}.budget-guide li:before{content:counter(budget-step,decimal-leading-zero);display:block;color:#27835e;font-weight:800;font-size:.88rem;margin-bottom:10px}.budget-guide li b{display:block;color:#0b192b;font-size:.91rem}.budget-guide li span{display:block}
.budget-context{background:#0b192b;color:#fff;margin-top:52px;padding:38px;border-radius:26px;position:relative;overflow:hidden}
.budget-context:before{content:"";position:absolute;width:280px;height:280px;border-radius:50%;background:rgba(119,231,180,.07);left:-90px;top:-120px;pointer-events:none}
.budget-context-intro,.budget-context-grid{position:relative}
.budget-context .eyebrow{color:#91eec0}.budget-context h2{font-size:clamp(1.55rem,3.4vw,2.45rem);margin:0 0 7px}.budget-context-intro>p:last-child{color:#c4d4d0;font-size:.8rem;line-height:1.9;max-width:850px;margin:0}
.budget-context-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:24px}.budget-context-grid article{display:flex;gap:14px;align-items:flex-start;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);border-radius:17px;padding:20px}.budget-context-grid .context-icon{flex:none;display:grid;place-items:center;width:33px;height:33px;border-radius:10px;background:rgba(119,231,180,.16);color:#91eec0;font-weight:800}.budget-context-grid .context-limit .context-icon{background:rgba(241,201,119,.17);color:#f1c977}.budget-context-grid h3{font-size:.91rem;margin:1px 0 5px}.budget-context-grid p{color:#c4d4d0;font-size:.73rem;line-height:1.8;margin:0}
@media(max-width:900px){.budget-workspace{grid-template-columns:1fr}.budget-mark span{width:56px;height:56px}}
@media(max-width:760px){
  .budget-main{padding:18px 0 52px}
  .budget-page .site-content .topbar{height:68px}
  .budget-page .site-content .topbar .brand strong{font-size:.86rem}
  .budget-heading{margin-bottom:19px;gap:10px}
  .budget-heading h1{font-size:clamp(1.85rem,7.5vw,2.65rem)}
  .budget-heading p:last-child{font-size:.78rem;line-height:1.8}
  .budget-mark{display:none}
  .budget-entry{padding:21px}
  .budget-overview{padding:14px 19px 16px}
  .budget-overview-label{margin-bottom:3px}
  .budget-total{font-size:2rem}
  .budget-chart{padding:0}
  .budget-pie{width:168px}
  .budget-allocations{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:2px}
  .budget-allocation{padding:6px 4px 5px;border-radius:10px}
  .allocation-name{font-size:.61rem;gap:4px}
  .allocation-name i{width:6px;height:6px}
  .budget-allocation strong{font-size:.68rem}
  .budget-results{padding-top:41px}
  .budget-cards{grid-template-columns:1fr;gap:10px;margin-top:19px}
  .budget-card{position:relative;padding:14px 16px 13px;border-radius:18px}
  .budget-card-top{position:absolute;right:16px;top:15px}
  .budget-card-number{display:none}
  .budget-percent{width:47px;height:47px;border-radius:12px;font-size:.88rem}
  .budget-card h3{display:flex;align-items:center;min-height:24px;margin:0 59px 0 0;font-size:.93rem}
  .budget-amount{margin-right:59px;font-size:1.2rem;line-height:1.45}
  .budget-card>p{font-size:.69rem;line-height:1.62;margin:9px 0 8px}
  .budget-tip{padding-top:9px;font-size:.68rem;line-height:1.65}
  .budget-tip b{display:inline;margin-left:7px}
  .budget-guide{padding:48px 0 0}
  .budget-guide ol{grid-template-columns:1fr;gap:8px;margin-top:16px}
  .budget-guide li{display:grid;grid-template-columns:30px 1fr;column-gap:10px;background:#ebf3ee;padding:12px 14px;border-radius:14px;font-size:.68rem;line-height:1.6}
  .budget-guide li:before{grid-row:1/3;align-self:start;margin:1px 0 0;font-size:.77rem}
  .budget-guide li b{font-size:.81rem}
  .budget-context{margin-top:40px;padding:23px 19px;border-radius:21px}
  .budget-context-intro>p:last-child{font-size:.72rem;line-height:1.75}
  .budget-context-grid{grid-template-columns:1fr;gap:9px;margin-top:18px}
  .budget-context-grid article{padding:13px;gap:10px;border-radius:13px}
  .budget-context-grid .context-icon{width:28px;height:28px;border-radius:9px}
  .budget-context-grid h3{font-size:.82rem;margin:0 0 3px}
  .budget-context-grid p{font-size:.68rem;line-height:1.65}
}
