/* SPUDZWARE V1.22.5 — Code Your Products performance + provider fix */
#code{padding-bottom:80px}
.spudz-code-shell{max-width:1500px;margin:0 auto;padding:118px 34px 70px}
.spudz-code-hero{position:relative;overflow:hidden;border:1px solid rgba(193,134,255,.2);border-radius:28px;padding:34px;background:linear-gradient(135deg,rgba(28,18,40,.96),rgba(9,8,14,.96));box-shadow:0 28px 90px rgba(0,0,0,.34);margin-bottom:22px}
.spudz-code-hero:after{content:"";position:absolute;width:420px;height:420px;border-radius:50%;right:-150px;top:-220px;background:radial-gradient(circle,rgba(180,92,255,.27),transparent 68%);pointer-events:none}
.spudz-code-kicker{font:700 11px/1.2 "Space Mono",monospace;letter-spacing:.14em;color:#cda0ff;text-transform:uppercase}.spudz-code-hero h1{font-size:clamp(34px,6vw,70px);line-height:.96;margin:10px 0 14px;letter-spacing:-.055em}.spudz-code-hero h1 em{font-style:normal;color:#bd75ff}.spudz-code-hero p{max-width:840px;color:#bcb7c8;font-size:15px;line-height:1.7;margin:0}.spudz-code-hero-row{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.spudz-code-credit-card{position:relative;z-index:1;min-width:230px;border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:18px;background:rgba(7,7,11,.68);backdrop-filter:blur(8px)}.spudz-code-credit-card span{display:block;color:#958da1;font:700 10px/1.2 "Space Mono",monospace;letter-spacing:.1em}.spudz-code-credit-card strong{display:block;font-size:30px;margin:5px 0 12px}.spudz-code-credit-card small{display:block;color:#81798c;margin-top:8px;line-height:1.4}
.spudz-code-layout{display:grid;grid-template-columns:280px minmax(0,1fr) 310px;gap:16px;align-items:start}.spudz-code-panel{border:1px solid rgba(255,255,255,.09);border-radius:22px;background:rgba(12,10,17,.88);box-shadow:0 18px 55px rgba(0,0,0,.18);overflow:hidden}.spudz-code-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 17px;border-bottom:1px solid rgba(255,255,255,.07)}.spudz-code-panel-head h2,.spudz-code-panel-head h3{font-size:15px;margin:0}.spudz-code-panel-head span{font:700 9px/1.2 "Space Mono",monospace;letter-spacing:.1em;color:#8f8499}.spudz-code-sidebar{position:sticky;top:92px}.spudz-code-project-list{padding:8px;display:grid;gap:6px;max-height:570px;overflow:auto}.spudz-code-project{width:100%;text-align:left;border:1px solid transparent;background:transparent;color:inherit;border-radius:14px;padding:12px;cursor:pointer}.spudz-code-project:hover{background:rgba(255,255,255,.04)}.spudz-code-project.active{background:rgba(177,107,245,.11);border-color:rgba(193,134,255,.23)}.spudz-code-project b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.spudz-code-project small{display:block;color:#81798c;margin-top:4px}.spudz-code-empty{padding:24px 18px;color:#8e8796;text-align:center;font-size:13px;line-height:1.55}
.spudz-code-workspace{min-height:650px}.spudz-code-project-head{padding:18px;border-bottom:1px solid rgba(255,255,255,.07);display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.spudz-code-project-head h2{margin:3px 0 5px;font-size:24px}.spudz-code-project-head p{margin:0;color:#8e8796;font-size:12px}.spudz-code-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.spudz-code-actions button{white-space:nowrap}.spudz-code-model-strip{padding:12px 18px;border-bottom:1px solid rgba(255,255,255,.07);display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:center}.spudz-code-model-strip label{display:grid;gap:5px;color:#8f8798;font-size:10px;font-weight:700;letter-spacing:.06em}.spudz-code-model-strip select{min-height:39px}.spudz-code-protect{display:flex!important;grid-auto-flow:column!important;align-items:center;gap:8px!important;white-space:nowrap}.spudz-code-protect input{accent-color:#b56cff}
.spudz-code-chat{height:465px;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:11px;scroll-behavior:auto}.spudz-code-message{max-width:88%;padding:12px 14px;border-radius:16px;border:1px solid rgba(255,255,255,.07);font-size:13px;line-height:1.55;white-space:pre-wrap;word-break:break-word}.spudz-code-message.user{align-self:flex-end;background:rgba(171,92,245,.15);border-color:rgba(193,134,255,.2)}.spudz-code-message.assistant{align-self:flex-start;background:rgba(255,255,255,.035)}.spudz-code-message.system{align-self:center;max-width:96%;background:transparent;border-style:dashed;color:#827b8a;font-size:11px}.spudz-code-message-meta{display:block;font:700 9px/1.2 "Space Mono",monospace;letter-spacing:.08em;color:#827b8a;margin-bottom:6px;text-transform:uppercase}.spudz-code-compose{border-top:1px solid rgba(255,255,255,.07);padding:14px}.spudz-code-compose textarea{width:100%;min-height:92px;resize:vertical}.spudz-code-compose-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:9px}.spudz-code-compose-row small{color:#867e90}.spudz-code-send{min-width:118px}.spudz-code-busy{position:relative}.spudz-code-busy .spudz-code-compose{opacity:.92}.spudz-code-busy .spudz-code-send{cursor:wait}
.spudz-code-tools{position:sticky;top:92px;display:grid;gap:16px}.spudz-code-files,.spudz-code-build,.spudz-code-versions{padding:9px;max-height:235px;overflow:auto}.spudz-code-file,.spudz-code-version,.spudz-code-artifact{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;border:0;border-bottom:1px solid rgba(255,255,255,.055);background:transparent;color:inherit;padding:9px 7px;text-align:left;font-size:11px}.spudz-code-file{cursor:pointer}.spudz-code-file:hover{background:rgba(255,255,255,.035)}.spudz-code-file span,.spudz-code-version span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.spudz-code-file small,.spudz-code-version small{color:#766e7e;flex:0 0 auto}.spudz-code-build-state{padding:11px;font-size:12px;line-height:1.5}.spudz-code-build-state.success{color:#92e4ae}.spudz-code-build-state.failed{color:#ff9c9c}.spudz-code-build-log{white-space:pre-wrap;font:10px/1.5 "Space Mono",monospace;color:#91899b;background:#08070b;border-radius:11px;padding:10px;max-height:145px;overflow:auto;margin:0 9px 9px}.spudz-code-artifact{cursor:pointer;color:#caa2ff}.spudz-code-artifact:hover{background:rgba(177,107,245,.08)}
.spudz-code-models{margin:22px 0;display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.spudz-code-model-card{border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:16px;background:rgba(11,9,15,.75);position:relative;overflow:hidden}.spudz-code-model-card strong{font-size:15px;display:block;margin-bottom:5px}.spudz-code-model-card p{color:#8b8492;font-size:11px;line-height:1.5;margin:0}.spudz-code-model-card .badge{font:700 9px/1.2 "Space Mono",monospace;color:#c99aff}.spudz-code-model-card.titan{border-color:rgba(208,159,255,.28);box-shadow:inset 0 0 35px rgba(177,107,245,.06)}
.spudz-code-packs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:9px}.spudz-code-pack{border:1px solid rgba(255,255,255,.08);border-radius:13px;padding:10px;background:rgba(255,255,255,.025);cursor:pointer;color:inherit}.spudz-code-pack b,.spudz-code-pack small{display:block}.spudz-code-pack small{color:#8b8394;margin-top:3px}
.spudz-code-modal{position:fixed;inset:0;z-index:1400;display:grid;place-items:center;padding:20px}.spudz-code-modal[hidden]{display:none}.spudz-code-modal:before{content:"";position:absolute;inset:0;background:rgba(2,2,4,.78);backdrop-filter:blur(9px)}.spudz-code-modal-card{position:relative;width:min(620px,100%);max-height:90vh;overflow:auto;background:#100d15;border:1px solid rgba(202,151,255,.2);border-radius:24px;padding:24px;box-shadow:0 35px 120px rgba(0,0,0,.55)}.spudz-code-modal-card h2{margin:4px 0 7px}.spudz-code-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:18px}.spudz-code-form-grid label{display:grid;gap:6px;font-size:11px;color:#968ca1}.spudz-code-form-grid .wide{grid-column:1/-1}.spudz-code-form-grid textarea{min-height:95px;resize:vertical}.spudz-code-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.spudz-code-warning{border:1px solid rgba(255,183,77,.22);background:rgba(255,153,0,.08);color:#e7c89d;border-radius:12px;padding:10px 12px;font-size:11px;line-height:1.5;margin-top:9px}.spudz-code-status{min-height:18px;color:#9c93a4;font-size:11px;margin-top:8px}.spudz-code-login{padding:45px 20px;text-align:center}.spudz-code-login h2{margin:0 0 8px}.spudz-code-login p{color:#928a9b;max-width:500px;margin:0 auto 18px}.spudz-code-hidden{display:none!important}.spudz-code-file-view{position:fixed;inset:0;z-index:1450;display:grid;place-items:center;padding:20px}.spudz-code-file-view[hidden]{display:none}.spudz-code-file-view:before{content:"";position:absolute;inset:0;background:rgba(1,1,3,.8)}.spudz-code-file-card{position:relative;width:min(1000px,100%);height:min(78vh,760px);background:#0d0b11;border:1px solid rgba(255,255,255,.12);border-radius:20px;display:flex;flex-direction:column;overflow:hidden}.spudz-code-file-card header{padding:12px 15px;border-bottom:1px solid rgba(255,255,255,.08);display:flex;justify-content:space-between;gap:10px}.spudz-code-file-card pre{margin:0;padding:16px;overflow:auto;font:11px/1.55 "Space Mono",monospace;white-space:pre;flex:1;color:#c9c3cf}
body.sw-halloween-2026 .spudz-code-hero{border-color:rgba(255,126,33,.25);background:linear-gradient(135deg,rgba(31,15,21,.97),rgba(10,8,12,.97))}body.sw-halloween-2026 .spudz-code-hero h1 em,body.sw-halloween-2026 .spudz-code-kicker{color:#ff8b32}body.sw-halloween-2026 .spudz-code-hero:after{background:radial-gradient(circle,rgba(255,98,22,.22),transparent 68%)}body.sw-halloween-2026 .spudz-code-project.active{background:rgba(255,114,31,.1);border-color:rgba(255,135,60,.25)}body.sw-halloween-2026 .spudz-code-model-card.titan{border-color:rgba(255,126,33,.28)}
@media(max-width:1120px){.spudz-code-layout{grid-template-columns:220px minmax(0,1fr)}.spudz-code-tools{grid-column:1/-1;position:static;grid-template-columns:repeat(3,1fr)}.spudz-code-models{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.spudz-code-shell{padding:92px 14px 50px}.spudz-code-hero{padding:22px}.spudz-code-hero-row{align-items:stretch;flex-direction:column}.spudz-code-credit-card{min-width:0}.spudz-code-layout{grid-template-columns:1fr}.spudz-code-sidebar,.spudz-code-tools{position:static}.spudz-code-project-list{max-height:210px}.spudz-code-tools{grid-template-columns:1fr}.spudz-code-models{grid-template-columns:1fr}.spudz-code-model-strip{grid-template-columns:1fr 1fr}.spudz-code-protect{grid-column:1/-1}.spudz-code-project-head{flex-direction:column}.spudz-code-actions{justify-content:flex-start}.spudz-code-chat{height:420px}.spudz-code-form-grid{grid-template-columns:1fr}.spudz-code-form-grid .wide{grid-column:auto}.spudz-code-packs{grid-template-columns:1fr}}


/* V1.22.5 — responsive status + lower GPU load on the coding workspace */
.spudz-code-panel{contain:layout paint}
.spudz-code-engine{display:block;font:700 9px/1.25 "Space Mono",monospace;letter-spacing:.055em;color:#6f6877;margin:-1px 0 8px;text-transform:uppercase}
.spudz-code-pack{position:relative;min-height:72px;transition:transform .15s ease,border-color .15s ease,background .15s ease}
.spudz-code-pack:hover{transform:translateY(-1px);border-color:rgba(196,139,255,.22);background:rgba(255,255,255,.04)}
.spudz-code-pack .pack-tag{position:absolute;right:7px;top:6px;font:700 7px/1 "Space Mono",monospace;letter-spacing:.08em;color:#c69cff;opacity:.8}
.spudz-code-pack.best{border-color:rgba(193,134,255,.17)}
.spudz-code-latest-package{border:1px solid rgba(146,228,174,.2)!important;border-radius:11px!important;background:rgba(80,190,118,.055)!important;margin-bottom:6px}
.spudz-code-latest-package>span{display:grid;gap:2px}.spudz-code-latest-package>span small{color:#7baf8d!important}
.spudz-code-build-details{margin:0 9px 8px}.spudz-code-build-details summary{cursor:pointer;font-size:10px;color:#8f8798;padding:6px 2px}.spudz-code-build-details .spudz-code-build-log{margin:4px 0 0}
.spudz-code-working{border-color:rgba(193,134,255,.14)!important}.spudz-code-working .dots>span{display:inline-block;animation:spudz-code-dot 1.2s infinite}.spudz-code-working .dots>span:nth-child(2){animation-delay:.16s}.spudz-code-working .dots>span:nth-child(3){animation-delay:.32s}
@keyframes spudz-code-dot{0%,70%,100%{opacity:.25}35%{opacity:1}}
.spudz-code-toast{position:fixed;z-index:1600;right:18px;bottom:18px;max-width:min(440px,calc(100vw - 36px));padding:12px 14px;border-radius:13px;border:1px solid rgba(153,230,179,.2);background:rgba(12,13,16,.96);box-shadow:0 18px 55px rgba(0,0,0,.38);font-size:12px;line-height:1.45;color:#cfd4d0;pointer-events:none}
.spudz-code-toast.error{border-color:rgba(255,112,112,.28);color:#ffb1b1}.spudz-code-toast.working{border-color:rgba(193,134,255,.25);color:#d7c0ec}
.spudz-code-status.error{color:#ff9b9b!important}
.spudz-code-send:disabled,.spudz-code-actions button:disabled{opacity:.62;cursor:wait}

/* The Halloween background remains visible on Code, but its full-page background drift is paused there.
   This avoids continuous full-viewport repainting while the editor/chat is open. */
body.sw-halloween-2026 #code::before{animation:none!important;will-change:auto!important}
body.sw-halloween-2026 #code .spudz-code-credit-card{backdrop-filter:none}

@media(max-width:760px){.spudz-code-toast{right:10px;bottom:10px;max-width:calc(100vw - 20px)}}
@media(prefers-reduced-motion:reduce){.spudz-code-working .dots>span,.spudz-code-pack{animation:none!important;transition:none!important}}


/* SPUDZWARE V1.22.6 — live ServerPC coding activity + background jobs */
.spudz-code-running-badge{display:inline-block;margin-left:7px;padding:2px 5px;border:1px solid rgba(157,226,180,.22);border-radius:999px;color:#9ae2b2;font:700 7px/1 "Space Mono",monospace;letter-spacing:.08em;vertical-align:middle}
.spudz-code-tools{max-height:calc(100vh - 108px);overflow:auto;scrollbar-width:thin;padding-right:2px}
.spudz-code-activity{padding:8px 9px;max-height:280px;overflow:auto}
.spudz-code-activity-item{position:relative;display:grid;grid-template-columns:10px 1fr;gap:9px;padding:9px 6px;border-bottom:1px solid rgba(255,255,255,.05);font-size:11px;line-height:1.35}
.spudz-code-activity-item:last-child{border-bottom:0}.spudz-code-activity-dot{width:8px;height:8px;border-radius:50%;margin-top:3px;background:#716979;box-shadow:0 0 0 3px rgba(255,255,255,.025)}
.spudz-code-activity-item.running .spudz-code-activity-dot{background:#c692ff;box-shadow:0 0 0 4px rgba(198,146,255,.09);animation:spudz-code-activity-pulse 1.25s ease-in-out infinite}
.spudz-code-activity-item.error .spudz-code-activity-dot{background:#ff8b8b}.spudz-code-activity-item.done .spudz-code-activity-dot{background:#8fdbaa}
.spudz-code-activity-item b{display:block;font-size:11px;color:#cfc9d6;font-weight:700}.spudz-code-activity-item small{display:block;color:#857d8e;margin-top:3px;word-break:break-word}.spudz-code-activity-item time{display:block;color:#5f5965;font:700 8px/1.2 "Space Mono",monospace;margin-top:5px}
@keyframes spudz-code-activity-pulse{0%,100%{opacity:.45;transform:scale(.85)}50%{opacity:1;transform:scale(1.08)}}
.spudz-code-working .spudz-code-message-meta{color:#9f8db2}.spudz-code-working{max-width:96%}
body.sw-halloween-2026 .spudz-code-activity-item.running .spudz-code-activity-dot{background:#ff9345;box-shadow:0 0 0 4px rgba(255,147,69,.09)}
@media(max-width:1120px){.spudz-code-tools{max-height:none;overflow:visible;grid-template-columns:repeat(2,1fr)}.spudz-code-activity{max-height:220px}}
@media(max-width:760px){.spudz-code-tools{grid-template-columns:1fr}.spudz-code-activity{max-height:260px}}
@media(prefers-reduced-motion:reduce){.spudz-code-activity-item.running .spudz-code-activity-dot{animation:none!important}}

/* V1.22.7 — paid Code checkout paused while gifted credits remain active */
.spudz-code-purchases-paused{display:grid;gap:6px;padding:14px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.035)}
.spudz-code-purchases-paused b{font-size:.88rem;text-transform:uppercase;letter-spacing:.05em}
.spudz-code-purchases-paused span{font-size:.78rem;line-height:1.45;opacity:.72}
#spudzCodeBuyCredits:disabled{cursor:not-allowed;opacity:.55;filter:saturate(.45)}
