/* WEB-B003-HF2 — reference-led structural redesign. No backend or data modifications. */
:root{--r8-bg:#050b18;--r8-sidebar:#0a1427;--r8-card:#131e33;--r8-border:#27344f;--r8-muted:#9eacc6;--r8-electric:#176cff;--r8-teal:#27d5b4}
body{background:#050b18!important;color:#f7f9ff}
.cc-home-hero,.cc-home-resource-section,.cc-home-guardian,.r8-store-hero,.store-products-section,.r8-delivery-section,.portal-dashboard-shell{background:#050b18!important}
.cc-home-hero .container,.cc-home-resource-section .container,.cc-home-guardian .container,.r8-store-hero .container,.store-products-section .container{max-width:1540px!important;width:calc(100% - 72px)!important}
/* Homepage: large editorial headline + realistic product UI composition (reference 3). */
.cc-home-hero{padding:54px 0 42px!important;position:relative;overflow:hidden}
.cc-home-hero:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 75% 45%,rgba(17,89,255,.22),transparent 42%);pointer-events:none}
.cc-home-hero-grid{display:grid!important;grid-template-columns:minmax(0,.91fr) minmax(0,1.09fr)!important;gap:42px!important;align-items:center!important;position:relative}
.cc-home-copy h1{font-size:clamp(3.1rem,5.3vw,6rem)!important;line-height:1.05!important;letter-spacing:-.055em!important;font-weight:850!important;max-width:720px}
.cc-home-copy h1 span{background:linear-gradient(105deg,#2177ff,#29d5bc)!important;background-clip:text!important;-webkit-background-clip:text!important;color:transparent!important}
.cc-home-lead{font-size:1.08rem!important;line-height:1.7!important;max-width:520px;color:#aebbd3!important}
.cc-home-actions .btn-primary,.r8-store-account-card .btn-primary,.portal-dashboard-shell .btn-primary{background:linear-gradient(100deg,#176cff,#22cfae)!important;border:0!important;box-shadow:0 10px 28px rgba(12,93,255,.22)!important}
.cc-home-actions .btn{min-height:48px;border-radius:11px!important}
.cc-home-feature-strip{background:#0c172b!important;border:1px solid #233657!important;border-radius:16px!important;padding:18px!important;margin-top:35px!important}
.r8-hero-dashboard{border:1px solid #2d4874;background:#091224;border-radius:19px;box-shadow:0 35px 100px rgba(0,0,0,.65),0 0 60px rgba(13,93,250,.2);transform:perspective(1400px) rotateY(-5deg) rotateX(2deg);overflow:hidden;min-height:440px;position:relative}
.r8-hero-dashboard:after{content:"";position:absolute;inset:auto 5% -14px;background:#1358f8;filter:blur(35px);height:25px;opacity:.55}
.r8-preview-bar{height:57px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;background:#0c182c;border-bottom:1px solid #233455;color:#fff;font-size:.87rem}
.r8-preview-bar em{font-style:normal;font-weight:400;color:#94a8c8}.r8-preview-bar>span{color:#3ad4b6;font-size:.61rem;letter-spacing:.13em}.r8-logo-bolt{background:#1a69ff;border-radius:8px;padding:5px 10px;margin-right:7px}
.r8-preview-body{display:grid;grid-template-columns:59px minmax(0,1fr);min-height:383px}.r8-preview-rail{border-right:1px solid #233455;display:flex;align-items:center;flex-direction:column;gap:22px;padding-top:25px;color:#7c95b8}.r8-preview-rail span{padding:8px}.r8-preview-rail .selected{background:#175ff2;color:#fff;border-radius:8px}.r8-preview-content{padding:25px 24px}.r8-preview-content>small{font-size:.58rem;letter-spacing:.18em;color:#42b6fb}.r8-preview-content h3{font-size:1.45rem!important;margin:6px 0 20px!important;color:#fff!important}.r8-preview-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.r8-preview-metrics>div{border:1px solid #263956;border-radius:11px;background:#111f37;padding:13px 10px;min-width:0}.r8-preview-metrics span{font-size:.52rem;letter-spacing:.08em;color:#94a8c7;display:block}.r8-preview-metrics strong{display:block;font-size:1.5rem;color:#fff;margin:6px 0}.r8-preview-metrics small{font-size:.59rem;color:#49d5b9}.r8-preview-chart{background:#0e1a30;border:1px solid #243754;border-radius:12px;padding:15px 16px 0;margin-top:13px;height:143px}.r8-preview-chart>span{font-size:.61rem;color:#a8b8d3;letter-spacing:.13em}.r8-preview-chart svg{width:100%;height:100px}.r8-preview-activity{display:flex;gap:7px;margin-top:12px;flex-wrap:wrap}.r8-preview-activity span{border:1px solid #2b4266;background:#13253f;color:#c8dbf5;padding:6px 9px;border-radius:7px;font-size:.58rem}
.cc-home-resource-section{padding:46px 0!important}.cc-home-section-head h2{font-size:clamp(2rem,3vw,3rem)!important}.cc-resource-grid{gap:15px!important}.cc-resource-card{border:1px solid #283a57!important;background:#111c30!important;border-radius:15px!important;overflow:hidden}.cc-resource-media{background:#0b1528!important}.cc-resource-card-body{background:#111c30!important}.cc-resource-link{color:#5db4ff!important}.cc-home-guardian{padding:42px 0 65px!important}.cc-guardian-panel{background:#101b30!important;border:1px solid #293d5c!important;border-radius:18px!important}
/* Marketplace: real left navigation + wide catalog (reference 2). */
.r8-store-hero{padding:38px 0 30px!important;border-bottom:1px solid #1b2b45}.r8-store-hero h1{font-size:clamp(2.4rem,4vw,4.3rem)!important;letter-spacing:-.045em}.r8-store-hero p{color:#a9bad4!important}.store-products-section{padding:0!important}.r8-marketplace-layout{display:grid;grid-template-columns:242px minmax(0,1fr);gap:35px;align-items:start;max-width:none!important;width:100%!important;padding:0 36px 0 0!important}.r8-market-sidebar{position:sticky;top:0;min-height:calc(100vh - 90px);background:#0a172b;border-right:1px solid #213450;padding:30px 16px 24px 28px;display:flex;flex-direction:column;gap:6px}.r8-market-title{color:#f2f7ff;font-weight:800;font-size:.9rem;letter-spacing:.08em;padding:11px 12px 21px;border-bottom:1px solid #203552;margin-bottom:12px}.r8-market-sidebar a{padding:13px 12px;border-radius:9px;color:#aebdd5!important;text-decoration:none;font-size:.86rem;font-weight:650}.r8-market-sidebar a:hover,.r8-market-sidebar a.active{background:#0e395d;color:#fff!important;box-shadow:inset 3px 0 #1dd0c9}.r8-market-separator{color:#6e88ad;font-size:.66rem;letter-spacing:.16em;font-weight:800;padding:25px 12px 10px}.r8-market-aside-foot{margin-top:auto;padding:30px 12px 0;color:#a2b6d7;font-size:.68rem;letter-spacing:.1em}.r8-market-aside-foot small{display:block;color:#627b9d;margin-top:6px;letter-spacing:0}.r8-market-main{min-width:0;padding:35px 0 65px}.r8-market-main .r8-store-section-heading{margin-bottom:27px!important}.r8-market-main h2{font-size:clamp(2rem,3vw,3.3rem)!important;letter-spacing:-.04em}.r8-market-main .r8-b002-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important}.r8-market-main .r8-store-product-card{background:#111c31!important;border:1px solid #293a58!important;border-radius:16px!important;box-shadow:none!important}.r8-market-main .product-image-link{background:#0b1629!important}.r8-market-main .product-card-image{height:200px!important;object-fit:contain!important}.r8-market-main .product-body{padding:18px!important}.r8-market-main .product-body h3{font-size:1.12rem!important}.r8-market-main .product-body p{font-size:.83rem!important;color:#9bacc9!important}.r8-market-main .product-body .btn{border-radius:9px!important}
/* Customer portal: reference 4's full-height sidebar and high-density cards. */
.portal-dashboard-shell{padding:0!important;min-height:100vh}.portal-dashboard-shell .r8-unified-portal-layout{display:grid!important;grid-template-columns:258px minmax(0,1fr)!important;gap:0!important;width:100%!important;max-width:none!important;padding:0!important;align-items:stretch!important}.portal-dashboard-shell .r8-portal-sidebar{position:sticky!important;top:0!important;height:100vh;min-height:100vh!important;overflow-y:auto;background:#10192c!important;border:0!important;border-right:1px solid #28354e!important;border-radius:0!important;padding:26px 16px!important;gap:14px!important}.portal-dashboard-shell .r8-portal-brand{font-size:1.25rem;padding:4px 12px 24px!important}.portal-dashboard-shell .r8-portal-side-label{color:#8292ae!important;font-size:.65rem!important}.portal-dashboard-shell .r8-portal-sidebar nav a{padding:12px 14px!important;font-size:.88rem!important;border-radius:8px!important}.portal-dashboard-shell .r8-portal-sidebar nav a.is-active{background:#176aff!important;box-shadow:0 4px 15px rgba(23,106,255,.25)}.portal-dashboard-shell .r8-portal-main{padding:0 35px 65px!important;max-width:none!important;min-width:0}.r8-workspace-header{height:64px;border-bottom:1px solid #23344f;display:flex;justify-content:space-between;align-items:center;color:#b4c3dd;font-size:.7rem;letter-spacing:.12em}.r8-workspace-indicator{color:#35d4b8}.portal-dashboard-shell .portal-topbar{padding:26px 0 22px!important}.portal-dashboard-shell .portal-topbar h1{font-size:clamp(1.7rem,2.5vw,2.5rem)!important}.r8-portal-overview-label{display:flex;justify-content:space-between;align-items:center;margin:15px 0 15px}.r8-portal-overview-label h2{margin:0;font-size:1.5rem}.r8-portal-overview-label span{font-size:.66rem;color:#7f97bb;letter-spacing:.1em}.portal-dashboard-shell .portal-stats{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin:0 0 18px!important}.portal-dashboard-shell .portal-stats>div{background:#20283d!important;border:1px solid #2b3a56!important;border-radius:14px!important;padding:25px 20px!important;min-height:122px;display:flex;flex-direction:column;justify-content:space-between}.portal-dashboard-shell .portal-stats strong{font-size:2.15rem!important}.portal-dashboard-shell .portal-stats span{color:#acb9d0!important}.r8-portal-feature-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:18px;margin-bottom:20px}.r8-feature-panel{border:1px solid #2c3953;background:#1b2439;border-radius:16px;padding:24px;min-width:0;overflow:hidden}.r8-feature-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.r8-feature-heading h3{font-size:1.22rem;margin:0}.r8-feature-heading span{color:#92a6c6;font-size:.64rem;letter-spacing:.1em}.r8-feature-panel>p{font-size:.85rem;color:#a7b6cf;max-width:420px;line-height:1.6}.r8-feature-orbit{margin-top:20px;min-height:150px;display:flex;justify-content:center;align-items:center;gap:10px;background:radial-gradient(ellipse at center,rgba(32,101,255,.22),transparent 70%);flex-wrap:wrap}.r8-feature-orbit>span{width:115px;height:115px;border-radius:50%;display:grid;place-items:center;border:2px solid #1e84ff;background:#0b1b36;box-shadow:0 0 25px #115eff66;color:white;font-weight:900;font-size:1.5rem}.r8-feature-orbit i{font-size:.57rem;font-style:normal;letter-spacing:.09em;color:#76e3d2;border:1px solid #2a4966;border-radius:99px;padding:9px}.portal-dashboard-shell .r8-feature-links .platform-portal-launchpad{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:20px 0 0!important}.portal-dashboard-shell .r8-feature-links .platform-portal-launchpad>a{background:#101d32!important;padding:13px!important;border:1px solid #2c3f5d!important;border-radius:10px!important}.portal-dashboard-shell .r8-feature-links .platform-portal-launchpad>a small{font-size:.68rem!important}.portal-dashboard-shell .portal-panel{background:#1b2439!important;border:1px solid #2b3954!important;border-radius:15px!important;padding:23px!important;margin-bottom:18px!important}.portal-dashboard-shell .portal-panel-heading h2{font-size:1.4rem!important}.portal-dashboard-shell .portal-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:15px!important}.portal-dashboard-shell .portal-product-card{background:#121d32!important;border:1px solid #2d3c5a!important}.portal-dashboard-shell .portal-product-image-wrap{height:160px!important}.portal-dashboard-shell .portal-history-table th{background:#121d31!important}.portal-dashboard-shell .portal-history-table td{border-bottom:1px solid #2b3a55!important}
@media(max-width:1200px){.r8-market-main .r8-b002-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.r8-portal-feature-grid{grid-template-columns:1fr}.portal-dashboard-shell .portal-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.cc-home-hero-grid{gap:20px!important}.r8-hero-dashboard{transform:none}}
@media(max-width:850px){.cc-home-hero-grid{grid-template-columns:1fr!important}.cc-home-hero .container,.cc-home-resource-section .container,.cc-home-guardian .container{width:calc(100% - 32px)!important}.r8-marketplace-layout{grid-template-columns:1fr;padding:0 18px!important}.r8-market-sidebar{position:static;min-height:0;flex-direction:row;overflow-x:auto;gap:6px;padding:12px;border:1px solid #263957;border-radius:12px;margin-top:18px}.r8-market-sidebar a{white-space:nowrap}.r8-market-title,.r8-market-separator,.r8-market-aside-foot{display:none}.r8-market-main{padding:18px 0 45px}.portal-dashboard-shell .r8-unified-portal-layout{grid-template-columns:1fr!important}.portal-dashboard-shell .r8-portal-sidebar{height:auto!important;min-height:0!important;position:relative!important;display:block;padding:12px!important}.portal-dashboard-shell .r8-portal-sidebar nav{display:flex!important;overflow-x:auto!important}.portal-dashboard-shell .r8-portal-sidebar nav a{white-space:nowrap}.portal-dashboard-shell .r8-portal-side-label,.portal-dashboard-shell .r8-portal-side-foot{display:none}.portal-dashboard-shell .r8-portal-main{padding:0 16px 40px!important}}
@media(max-width:560px){.r8-hero-dashboard{min-height:350px}.r8-preview-body{grid-template-columns:40px 1fr}.r8-preview-content{padding:16px 10px}.r8-preview-metrics>div{padding:8px 5px}.r8-preview-metrics strong{font-size:1.1rem}.r8-market-main .r8-b002-grid{grid-template-columns:1fr!important}.portal-dashboard-shell .portal-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.portal-dashboard-shell .portal-product-grid{grid-template-columns:1fr!important}.portal-dashboard-shell .r8-feature-links .platform-portal-launchpad{grid-template-columns:1fr!important}.r8-feature-orbit{min-height:100px}.r8-feature-orbit>span{width:80px;height:80px}}
