.page-modules{min-height:100vh;display:flex;flex-direction:column;overflow-x:hidden}
.modules-stage{flex:1;position:relative;isolation:isolate;overflow:hidden;width:min(1440px,100%);min-height:calc(100svh - 115px);margin:auto;padding:48px 4%;display:grid;grid-template-columns:minmax(240px,29%) minmax(0,1fr);gap:4%;align-items:center}
.modules-stage .shape-left{left:-18%;width:34%}.modules-stage .shape-right{right:-17%;width:38%}
.modules-copy{max-width:360px}.back-link{font-size:14px;color:#c8cad1;font-weight:600}.back-link:hover{color:#8ba7ff}
.modules-copy h1{font-size:clamp(40px,3.5vw,55px);letter-spacing:-.065em;margin:28px 0 20px}.modules-copy p{font-size:16px;line-height:1.65;color:#aab3c4;margin:0 0 18px}
.client-preview{animation:none;height:min(570px,calc(100svh - 175px));min-height:470px;max-width:790px;min-width:0;position:relative;border:1px solid rgba(91,130,255,.58);border-radius:17px;background:rgba(5,12,28,.78);box-shadow:0 24px 70px rgba(0,0,0,.48);overflow:hidden;backdrop-filter:blur(14px)}
.client-preview:before{content:"";position:absolute;inset:0 auto auto -35%;z-index:3;width:32%;height:1px;background:linear-gradient(90deg,transparent,#7096ff,transparent);opacity:.75;animation:preview-gleam 6s ease-in-out infinite;pointer-events:none}
.preview-closed{position:absolute;inset:0;z-index:4;display:grid;place-content:center;justify-items:center;gap:13px;background:rgba(4,10,23,.94);opacity:0;visibility:hidden;pointer-events:none}.preview-closed p{margin:0;color:#9cafd0;font-size:13px}.closed-wordmark{font-size:42px;font-weight:700;letter-spacing:-.08em}.preview-closed button{padding:10px 21px;color:#fff;background:#284faf;border:1px solid #7498ff;border-radius:9px;cursor:pointer}.preview-closed button:hover{background:#3865d1}.client-preview.is-closed .preview-closed{opacity:1;visibility:visible;pointer-events:auto}.client-preview.is-closed .preview-columns{visibility:hidden}
.preview-columns{height:100%;display:grid;grid-template-columns:162px minmax(0,1fr)}
.preview-sidebar{display:flex;flex-direction:column;padding:17px 9px 12px;border-right:1px solid rgba(100,139,227,.22);background:rgba(2,8,21,.3)}
.wordmark{text-align:center;height:70px;color:white;font-size:35px;font-weight:700;letter-spacing:-.08em;line-height:1.4}
.module-filters{display:grid;gap:3px}.module-filters button{width:100%;min-height:35px;padding:0 12px;text-align:left;border:1px solid transparent;border-radius:8px;background:transparent;color:#b1bfda;font-size:13px;cursor:pointer;transition:background .23s,color .23s,transform .23s,border-color .23s}
.module-filters button:hover{background:rgba(55,89,171,.22);color:#fff;transform:translateX(2px)}.module-filters button.active{color:#fff;background:rgba(43,77,152,.39);border-color:rgba(82,124,255,.68);box-shadow:inset 3px 0 #527cff}
.preview-sidebar-bottom{margin-top:auto;text-align:center;display:grid;gap:8px}.preview-caption{color:#7588ad;font-size:10px}.unload-preview{width:100%;padding:8px 4px;border:1px solid rgba(211,88,101,.55);border-radius:7px;background:rgba(23,8,19,.55);color:#e08b93;font-size:11px;cursor:pointer;transition:background .2s,border-color .2s}.unload-preview:hover{background:rgba(90,18,36,.5);border-color:#e08b93}
.preview-main{display:flex;flex-direction:column;min-width:0;min-height:0}.preview-main-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;height:68px;padding:0 16px;border-bottom:1px solid rgba(85,124,205,.2)}.preview-main-head h2{margin:0;font-size:20px;font-weight:600}.search-wrap{width:min(225px,54%)}.search-wrap input{width:100%;height:36px;padding:0 11px;color:#fff;background:rgba(11,22,45,.72);border:1px solid rgba(81,120,202,.36);border-radius:8px;font-size:12px}.search-wrap input::placeholder{color:#8796b3}.search-wrap input:focus{outline:1px solid #7495ff}
.preview-meta{display:flex;justify-content:space-between;gap:10px;padding:8px 15px 4px;color:#8ea3cc;font-size:10px}.module-list{flex:1;min-height:0;overflow-y:auto;padding:7px 12px 12px;scrollbar-width:thin;scrollbar-color:#527cff transparent}.module-item{display:flex;align-items:center;gap:10px;min-height:50px;margin-bottom:6px;padding:7px 11px;border:1px solid rgba(77,111,184,.28);border-radius:9px;background:rgba(9,18,39,.68);color:#f5f7fd;cursor:pointer;animation:module-enter .3s cubic-bezier(.16,1,.3,1) both;transition:background .24s,border-color .24s,transform .24s}.module-item:hover{background:rgba(25,46,94,.78);border-color:#6287f8;transform:translateX(3px)}.module-item.is-enabled{background:rgba(22,45,101,.66);border-color:rgba(99,142,255,.72)}.module-switch{flex:none;position:relative;width:34px;height:20px;border:0;border-radius:99px;background:#162447;cursor:pointer;transition:background .2s,box-shadow .2s}.module-switch:after{content:"";position:absolute;top:4px;left:4px;width:12px;height:12px;border-radius:50%;background:#e8efff;transition:transform .22s}.module-switch[aria-checked=true]{background:#527cff;box-shadow:0 0 13px rgba(82,124,255,.35)}.module-switch[aria-checked=true]:after{transform:translateX(14px)}.module-item-text{display:flex;flex-direction:column;gap:2px;min-width:0}.module-item strong{font-size:12px;font-weight:600}.module-item small{font-size:10px;line-height:1.35;color:#aab8d2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.module-empty,.module-error{padding:16px;color:#afbfdf;font-size:13px}
.opening-star{position:absolute;inset:0;z-index:5;display:grid;place-items:center;background:#050a16;pointer-events:none;visibility:hidden;opacity:0}.opening-star svg{width:72px;height:72px;fill:#527cff;filter:drop-shadow(0 0 18px rgba(82,124,255,.58))}.client-preview.is-opening .opening-star{visibility:visible;animation:star-layer 1.3s ease both}.client-preview.is-opening .opening-star svg{animation:star-turn 1.3s cubic-bezier(.16,1,.3,1) both}.client-preview.is-opening .preview-columns{animation:gui-reveal .55s 1.3s cubic-bezier(.16,1,.3,1) both}.module-list.is-switching{animation:category-switch .4s ease both}
@keyframes star-layer{0%,75%{opacity:1;visibility:visible}100%{opacity:0;visibility:hidden}}@keyframes star-turn{0%{opacity:0;transform:rotate(-180deg) scale(.5)}22%{opacity:1}75%{opacity:1}100%{opacity:0;transform:rotate(180deg) scale(1.12)}}@keyframes gui-reveal{from{opacity:0;transform:scale(.9);filter:blur(8px)}to{opacity:1;transform:scale(1);filter:none}}@keyframes module-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes category-switch{from{opacity:.2;transform:translateX(18px)}to{opacity:1;transform:none}}@keyframes preview-gleam{0%,15%{left:-35%;opacity:0}25%{opacity:.75}55%{left:105%;opacity:.7}65%,100%{left:105%;opacity:0}}
.compact-footer{display:flex;justify-content:space-between;align-items:center;gap:18px;color:#777e91;font-size:10px;padding:10px 35px 20px}.compact-footer a:hover{color:#fff}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:900px){.modules-stage{grid-template-columns:1fr;gap:23px;min-height:0;padding:38px 24px 50px}.modules-copy{max-width:680px}.modules-copy h1{margin:16px 0}.modules-copy p{display:inline;margin-right:6px}.client-preview{height:570px;width:100%;max-width:790px}}
@media(max-width:560px){.modules-stage{padding:30px 12px 45px}.modules-copy h1{font-size:43px}.modules-copy p{font-size:13px}.client-preview{height:560px;border-radius:12px}.preview-columns{grid-template-columns:98px minmax(0,1fr)}.preview-sidebar{padding:10px 5px}.wordmark{height:60px;font-size:27px}.module-filters button{min-height:32px;padding:0 7px;font-size:10px}.preview-caption{font-size:8px}.unload-preview{font-size:9px;padding:7px 2px}.preview-main-head{height:60px;padding:0 8px}.preview-main-head h2{font-size:15px}.search-wrap{width:53%}.search-wrap input{height:32px;padding:0 6px;font-size:10px}.preview-meta{padding:6px 7px 3px;font-size:9px}.module-list{padding:6px}.module-item{min-height:48px;padding:6px;gap:6px}.module-switch{width:27px;height:17px}.module-switch:after{width:10px;height:10px;top:3.5px;left:3px}.module-switch[aria-checked=true]:after{transform:translateX(11px)}.module-item strong{font-size:11px}.module-item small{font-size:9px}.compact-footer{display:block;padding:5px 15px 20px}.compact-footer>*{display:block;margin:0 0 7px}}
@media(prefers-reduced-motion:reduce){.client-preview:before{animation:none}.client-preview.is-opening .opening-star{display:none}.client-preview.is-opening .preview-columns,.module-item,.module-list.is-switching{animation:none!important}.module-item:hover,.module-filters button:hover{transform:none}}
.wordmark img{display:block;width:112px;height:60px;object-fit:contain;margin:0 auto;animation:preview-logo-glow 4s ease-in-out infinite}
.closed-wordmark{display:block;width:160px;height:80px;object-fit:contain}
@keyframes preview-logo-glow{0%,100%{filter:drop-shadow(0 0 0 rgba(82,124,255,0))}50%{filter:drop-shadow(0 0 9px rgba(82,124,255,.4))}}
@media(max-width:560px){.wordmark img{width:85px;height:48px}}
@media(prefers-reduced-motion:reduce){.wordmark img{animation:none}}
