/* The C.O.D.E. – Wing Chun Spider-Style edition */
.code-page{background:#080809;color:#f5f5f5;overflow-x:hidden}
.code-page .navbar{background:rgba(8,8,9,.96);border-bottom-color:#b71928}
.code-page .logo-text{color:#e02b3b}
.code-page .nav-link{color:#e8e8e8}
.code-page .nav-link:hover,.code-page .nav-link.active{color:#f2bd55}
.code-page .theme-switch{background:#171719;color:#fff;border:1px solid #9d202b;border-radius:5px;padding:8px 12px}
.code-page .contact-phone{color:#f0c46c}
.code-page .code-hero{position:relative;isolation:isolate;overflow:hidden;min-height:660px;padding:clamp(64px,9vw,120px) 24px;background:linear-gradient(115deg,rgba(0,0,0,.96),rgba(22,4,7,.93) 55%,rgba(0,0,0,.9)),url('../assets/images/backgrounds/BG-WCSS.webp') center/cover fixed}
.code-page .code-hero:before{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(ellipse at 78% 45%,rgba(190,24,42,.28),transparent 42%),repeating-linear-gradient(135deg,transparent 0 42px,rgba(220,38,38,.045) 43px 44px)}
.code-hero-pattern{position:absolute;z-index:-1;right:4%;top:12%;width:min(38vw,460px);aspect-ratio:1;border:1px solid rgba(220,38,38,.3);border-radius:50%;box-shadow:0 0 0 24px rgba(220,38,38,.025),0 0 0 55px rgba(220,38,38,.02),inset 0 0 70px rgba(220,38,38,.12)}
.code-hero-pattern:before,.code-hero-pattern:after{content:"";position:absolute;inset:10%;border:1px solid rgba(230,190,110,.25);border-radius:50%;transform:rotate(35deg) scaleX(.48)}
.code-hero-pattern:after{transform:rotate(-35deg) scaleX(.48)}
.code-hero-inner{max-width:1180px;margin:0 auto;position:relative}
.code-kicker,.code-section-kicker{display:inline-block;color:#e5bd72;font-size:11px;font-weight:800;letter-spacing:.2em}
.code-mark{font-size:clamp(3.5rem,10vw,8rem);font-weight:950;line-height:.98;letter-spacing:.04em;margin:28px 0 20px;text-shadow:0 8px 30px #000}
.code-mark span{color:#e02a3b;text-shadow:0 0 28px rgba(224,42,59,.38)}
.code-hero h1{font-size:clamp(1.35rem,3vw,2.1rem);color:#f3d9d9;margin:0 0 18px;max-width:760px}
.code-hero p{max-width:730px;color:#ddd;line-height:1.85;font-size:clamp(1rem,1.8vw,1.15rem)}
.code-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}
.code-page .btn-primary{background:#c91e31;color:#fff;border:1px solid #e34a58}
.code-page .btn-primary:hover{background:#e02a3b}
.code-page .code-secondary{border:1px solid #d5bd8a;color:#f2e8d1;background:rgba(0,0,0,.18)}
.code-seal{display:flex;align-items:center;gap:14px;margin-top:52px;color:#b9b9bd;font-size:10px;font-weight:800;letter-spacing:.2em}
.code-seal img{width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 0 12px rgba(224,42,59,.35))}
.code-context{position:relative;display:flex;align-items:center;justify-content:space-between;gap:35px;padding:70px max(24px,calc((100% - 1120px)/2));background:#f3f3f3;color:#171719;border-bottom:4px solid #bd1e2d}
.code-context-inner{max-width:760px}
.code-context h2{font-size:clamp(2rem,4vw,3rem);margin:12px 0 16px;color:#161616}
.code-context p{line-height:1.85;color:#45454a}
.code-symbols{display:flex;gap:10px;color:#b51e2d;font-size:clamp(2rem,5vw,4rem);font-family:serif;opacity:.72}
.code-embed-section{padding:76px 24px;background:#101012;color:#f5f5f5}
.code-section-head{max-width:950px;margin:0 auto 30px;text-align:center}
.code-section-head h2{font-size:clamp(2rem,4vw,3rem);margin:12px 0;color:#fff}
.code-section-head p{max-width:760px;margin:0 auto 12px;color:#c9c9ce;line-height:1.75}
.code-text-link{display:inline-block;color:#f0c46c;font-weight:700;text-decoration:none;margin-top:6px}
.code-text-link:hover{text-decoration:underline}
.code-frame{width:min(1160px,100%);margin:0 auto;background:#fff;border:1px solid rgba(220,38,38,.5);border-radius:12px;overflow:hidden;box-shadow:0 20px 55px rgba(0,0,0,.35)}
.code-frame iframe{display:block;width:100%;max-width:100%;border:0;background:#fff}
.training-frame{min-height:680px}
.training-frame iframe{height:clamp(680px,72vw,1000px);min-height:680px}
.code-offer-section{background:linear-gradient(180deg,#171012,#080809)}
.checkout-frame{width:min(100%,1280px);min-height:900px;margin-top:30px}
.checkout-frame iframe.ds24_payIFrame{box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0;height:1100px;min-height:900px;margin:0 auto;padding:0;border:0}
.code-transparency{padding:65px 24px;background:#e9e9eb;color:#202024}
.code-transparency-inner{max-width:950px;margin:0 auto;padding:28px 32px;border-left:4px solid #c51e30;background:#fff;box-shadow:0 12px 35px rgba(0,0,0,.08);line-height:1.8}
.code-transparency-inner p{margin:8px 0}
.code-disclaimer{font-size:13px;color:#555}
.code-footer{border-top:3px solid #b91c2c}
.code-footer a{color:#f0c46c}
@media(max-width:850px){
 .code-page .code-hero{min-height:600px;background-attachment:scroll}
 .code-hero-pattern{right:-170px;top:20%;width:380px;opacity:.55}
 .code-context{padding:55px 24px}
 .code-symbols{display:none}
 .training-frame{min-height:820px}
 .training-frame iframe{height:900px;min-height:820px}
 .checkout-frame{width:100%;min-height:1000px}
 .checkout-frame iframe.ds24_payIFrame{height:1200px;min-height:1000px}
}
@media(max-width:600px){
 .code-page .navbar-container{gap:10px;padding:0 12px}
 .code-page .logo-img{height:42px}
 .code-page .logo-text{font-size:12px;white-space:normal;max-width:112px}
 .code-page .navbar-contact{display:none}
 .code-page .code-hero{padding:62px 20px 70px;min-height:620px}
 .code-mark{font-size:clamp(3rem,15vw,5rem)}
 .code-seal{margin-top:38px;font-size:8px}
 .code-context{padding:48px 20px}
 .code-embed-section{padding:55px 12px}
 .code-section-head{padding:0 8px}
 .training-frame{min-height:900px;border-radius:8px}
 .training-frame iframe{height:1000px;min-height:900px}
 .checkout-frame{border-radius:8px;min-height:1000px}
 .checkout-frame iframe.ds24_payIFrame{height:1350px;min-height:1100px}
 .code-transparency{padding:42px 14px}
 .code-transparency-inner{padding:22px 18px}
}


/* Theme-aware palette: prevent mixed dark/light surfaces */
html[data-theme="dark"] body.code-page{background:#08090c!important;color:#f2f2f4!important}
html[data-theme="dark"] .code-page .navbar{background:rgba(9,9,13,.98)!important;border-bottom-color:#e0182d}
html[data-theme="dark"] .code-page .navbar .nav-link,
html[data-theme="dark"] .code-page .logo-text{color:#f2f2f4!important}
html[data-theme="dark"] .code-page .navbar .nav-link.active,
html[data-theme="dark"] .code-page .navbar .nav-link:hover{color:#e8bd70!important}
html[data-theme="dark"] .code-page .code-context{background:#17171c!important;color:#f1f1f3!important;border-color:#c51e30}
html[data-theme="dark"] .code-page .code-context h2{color:#fff!important}
html[data-theme="dark"] .code-page .code-context p{color:#d0d0d6!important}
html[data-theme="dark"] .code-page .code-embed-section{background:#101014!important;color:#f5f5f6!important}
html[data-theme="dark"] .code-page .code-section-head h2{color:#fff!important}
html[data-theme="dark"] .code-page .code-section-head p{color:#d0d0d6!important}
html[data-theme="dark"] .code-page .code-transparency{background:#17171c!important;color:#f2f2f4!important}
html[data-theme="dark"] .code-page .code-transparency-inner{background:#24242b!important;color:#f2f2f4!important;border-left-color:#e0182d}
html[data-theme="dark"] .code-page .code-disclaimer{color:#c4c4cb!important}
html[data-theme="dark"] .code-page .code-footer{background:#09090c!important;color:#eee!important}
html[data-theme="dark"] .code-page .code-footer h4,
html[data-theme="dark"] .code-page .code-footer p{color:#eee!important}
html[data-theme="light"] body.code-page{background:#f4f3f4!important;color:#17171b!important}
html[data-theme="light"] .code-page .navbar{background:#fff!important}
html[data-theme="light"] .code-page .navbar .nav-link,
html[data-theme="light"] .code-page .logo-text{color:#17171b!important}
html[data-theme="light"] .code-page .code-context{background:#f3f3f3!important;color:#171719!important}
html[data-theme="light"] .code-page .code-context h2{color:#161616!important}
html[data-theme="light"] .code-page .code-context p{color:#45454a!important}
html[data-theme="light"] .code-page .code-embed-section{background:#f0eff1!important;color:#17171b!important}
html[data-theme="light"] .code-page .code-section-head h2{color:#17171b!important}
html[data-theme="light"] .code-page .code-section-head p{color:#45454a!important}
html[data-theme="light"] .code-page .code-transparency{background:#e9e9eb!important;color:#202024!important}
html[data-theme="light"] .code-page .code-transparency-inner{background:#fff!important;color:#202024!important}
html[data-theme="light"] .code-page .code-disclaimer{color:#555!important}
html[data-theme="light"] .code-page .code-footer{background:#f7f7f8!important;color:#222!important}
html[data-theme="light"] .code-page .code-footer h4,
html[data-theme="light"] .code-page .code-footer p{color:#222!important}

/* Original dojo gateway artwork */
.code-portal-art{width:min(440px,42vw);margin:0;flex:0 0 min(440px,42vw);border:1px solid rgba(194,30,48,.45);border-radius:14px;overflow:hidden;background:#09090b;box-shadow:0 18px 50px rgba(0,0,0,.24)}
.code-portal-art img{display:block;width:100%;height:250px;object-fit:cover;object-position:center}
.code-portal-art figcaption{padding:11px 14px;text-align:center;color:#c69d58;font-size:10px;font-weight:800;letter-spacing:.16em}
@media(max-width:850px){.code-portal-art{width:100%;max-width:560px;flex-basis:auto;margin:8px auto 0}.code-portal-art img{height:220px}}

/* Mobile layout and embed alignment corrections */
.code-page .navbar-toggle{background:transparent;border:0;appearance:none;-webkit-appearance:none}
.code-page .navbar-toggle span{background:#e02b3b}
.code-context{min-width:0}
.code-context-inner{min-width:0;flex:1 1 0}
.code-portal-art{box-sizing:border-box;min-width:0;max-width:100%;flex-shrink:1}
.code-portal-art img{width:100%;max-width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.code-portal-art figcaption{box-sizing:border-box;width:100%;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.45;letter-spacing:clamp(.04em,.45vw,.12em);font-size:clamp(9px,1.8vw,11px)}
.checkout-frame{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;max-width:1280px;margin:30px auto 0;padding:0;box-sizing:border-box}
.checkout-frame iframe.ds24_payIFrame{display:block;position:relative;left:auto;right:auto;float:none;align-self:center;width:100%!important;max-width:100%!important;min-width:0!important;margin-left:auto!important;margin-right:auto!important}
@media(max-width:850px){
 .code-context{display:flex;flex-direction:column;align-items:stretch;gap:24px;padding:48px 20px}
 .code-context-inner{width:100%;max-width:none}
 .code-portal-art{width:100%;max-width:560px;margin:0 auto;flex:0 1 auto}
 .code-portal-art img{height:auto;aspect-ratio:16/9}
 .code-page .navbar-container{min-height:68px}
 .code-page .navbar-menu{top:100%}
}
@media(max-width:600px){
 .code-portal-art figcaption{padding:10px 12px;font-size:9px;letter-spacing:.04em}
 .checkout-frame{width:100%;margin-top:22px;border-radius:8px}
 .checkout-frame iframe.ds24_payIFrame{width:100%!important;max-width:100%!important;min-width:0!important}
 .code-section-head h2{overflow-wrap:anywhere}
 .code-page .code-actions .btn{max-width:100%;white-space:normal}
}
