.portal-shell { width: min(calc(100% - 40px), 1220px); margin-inline: auto; }
.store-body { min-height: 100vh; background: #f4f7fb; }
.store-header { position: sticky; z-index: 1100; top: 0; border-bottom: 1px solid #e1e7ef; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.store-nav { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 28px; }
.store-navigation { display: flex; align-items: center; gap: 8px; }
.store-navigation > a { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 9px; color: #43516a; font-size: .91rem; font-weight: 720; }
.store-navigation > a:hover { background: #f4f7fb; color: #0d1b35; }
.cart-link { border: 1px solid #d5dfea; background: white; }
.cart-link b { display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 10px; background: #1f6ff2; color: white; font-size: .68rem; }
.store-menu-toggle { display: none; width: 42px; height: 42px; place-items: center; border: 1px solid #e1e7ef; border-radius: 10px; background: white; color: #0d1b35; }
.store-hero { position: relative; overflow: hidden; padding: 82px 0 76px; background: radial-gradient(circle at 75% 20%,rgba(43,124,255,.32),transparent 29%),linear-gradient(135deg,#071225,#102242 60%,#0d3761); }
.store-hero::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); background-size: 48px 48px; content: ""; }
.store-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.store-hero h1 { max-width: 680px; margin: 0 0 20px; color: white; font-size: clamp(2.65rem,5vw,4.5rem); }
.store-hero h1 em { color: #87d9ff; font-style: normal; }
.store-hero p { max-width: 650px; margin: 0 0 28px; color: #b9c9e2; font-size: 1.1rem; }
.store-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.store-trust-list { display: grid; gap: 14px; padding: 28px; border: 1px solid rgba(255,255,255,.15); border-radius: 22px; background: rgba(255,255,255,.07); box-shadow: 0 24px 60px rgba(0,0,0,.18); backdrop-filter: blur(10px); }
.store-trust-list div { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 13px; padding: 14px; border-radius: 13px; background: rgba(255,255,255,.07); }
.store-trust-list span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: rgba(85,200,249,.13); color: #87d9ff; }
.store-trust-list strong { display: block; color: white; font-size: .96rem; }
.store-trust-list small { display: block; color: #aebfda; }
.store-section { padding: 78px 0 96px; }
.store-section-heading { max-width: 750px; margin-bottom: 36px; }
.store-section-heading h2 { margin: 0 0 12px; }
.store-section-heading p { margin: 0; font-size: 1.04rem; }
.store-note { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 28px; padding: 16px 18px; border: 1px solid #f1d79a; border-radius: 12px; background: #fff8e8; color: #754900; }
.store-note .portal-icon { margin-top: 2px; }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 19px; }
.product-card { display: flex; min-height: 430px; flex-direction: column; padding: 28px; border: 1px solid #dfe6ef; border-radius: 20px; background: white; box-shadow: 0 2px 3px rgba(13,27,53,.03); transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.product-card:hover { transform: translateY(-3px); border-color: #bfd1eb; box-shadow: 0 16px 40px rgba(13,27,53,.1); }
.product-card.featured { border-color: #77a9f9; box-shadow: 0 15px 44px rgba(31,111,242,.13); }
.product-kind { display: inline-flex; align-self: flex-start; margin-bottom: 20px; padding: 6px 9px; border-radius: 999px; background: #eaf2ff; color: #145bd7; font-size: .68rem; font-weight: 820; letter-spacing: .09em; text-transform: uppercase; }
.product-card h3 { margin: 0 0 9px; font-size: 1.38rem; }
.product-card > p { min-height: 56px; margin: 0 0 18px; font-size: .91rem; }
.product-price { display: flex; align-items: baseline; gap: 7px; margin-bottom: 20px; color: #0d1b35; }
.product-price strong { font-size: 2rem; letter-spacing: -.04em; }
.product-price small { color: #8290a5; }
.product-features { display: grid; gap: 9px; margin: 0 0 25px; padding: 18px 0 0; border-top: 1px solid #edf1f6; list-style: none; }
.product-features li { display: flex; gap: 8px; color: #43516a; font-size: .82rem; }
.product-features .portal-icon { width: 16px; height: 16px; margin-top: 3px; color: #087a55; }
.product-actions { display: flex; gap: 9px; margin-top: auto; }
.product-actions .button { flex: 1; }
.product-actions form { display: flex; width: 100%; }
.product-detail-link { display: inline-flex; align-items: center; justify-content: center; padding: 7px 4px 0; color: #617089; font-size: .76rem; font-weight: 740; }

.store-decision-section { padding: 78px 0; border-bottom: 1px solid #e1e7ef; background: white; }
.store-decision-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(420px,.9fr); align-items: center; gap: 72px; }
.store-decision-copy h2 { margin-bottom: 17px; font-size: clamp(2rem,3.5vw,3rem); }
.store-decision-copy p { max-width: 660px; margin-bottom: 22px; font-size: 1.02rem; }
.store-decision-points { display: grid; gap: 12px; }
.store-decision-points article { display: grid; grid-template-columns: 42px 1fr; gap: 15px; padding: 18px; border: 1px solid #dfe6ef; border-radius: 15px; background: #f8faff; }
.store-decision-points article > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: #eaf2ff; color: #145bd7; font-size: .76rem; font-weight: 850; }
.store-decision-points strong { display: block; margin-bottom: 3px; color: #26344d; }
.store-decision-points p { margin: 0; font-size: .8rem; }

.platform-sales-hero { position: relative; overflow: hidden; padding: 92px 0 88px; background: radial-gradient(circle at 78% 18%,rgba(43,124,255,.33),transparent 30%),linear-gradient(135deg,#071225,#102242 61%,#0d3761); }
.platform-sales-hero::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); background-size: 48px 48px; content: ""; }
.platform-sales-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.07fr) minmax(420px,.93fr); align-items: center; gap: 68px; }
.platform-sales-copy h1 { max-width: 760px; margin: 0 0 23px; color: white; font-size: clamp(2.75rem,5vw,4.75rem); }
.platform-sales-copy h1 em { color: #87d9ff; font-style: normal; }
.platform-sales-copy > p { max-width: 710px; margin-bottom: 31px; color: #b9c9e2; font-size: 1.12rem; }
.platform-proof { display: flex; flex-wrap: wrap; gap: 12px 21px; margin-top: 25px; color: #bdcae0; font-size: .82rem; }
.platform-proof span { display: inline-flex; align-items: center; gap: 7px; }
.platform-proof .portal-icon { width: 16px; height: 16px; color: #5ce0ad; }
.work-map { overflow: hidden; border: 1px solid rgba(255,255,255,.17); border-radius: 23px; background: rgba(255,255,255,.08); box-shadow: 0 28px 65px rgba(0,0,0,.22); backdrop-filter: blur(12px); }
.work-map-head { padding: 24px 25px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.work-map-head small,.work-map-head strong { display: block; }
.work-map-head small { margin-bottom: 6px; color: #87d9ff; font-size: .63rem; font-weight: 820; letter-spacing: .15em; }
.work-map-head strong { color: white; font-size: 1.2rem; }
.work-map-flow { display: grid; gap: 1px; background: rgba(255,255,255,.08); }
.work-map-flow article { display: grid; min-height: 76px; grid-template-columns: 38px 1fr 24px; align-items: center; gap: 13px; padding: 15px 20px; background: rgba(8,24,49,.87); }
.work-map-flow article > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: rgba(85,200,249,.12); color: #87d9ff; font-size: .65rem; font-weight: 850; }
.work-map-flow strong,.work-map-flow small { display: block; }
.work-map-flow strong { color: white; font-size: .88rem; }
.work-map-flow small { margin-top: 2px; color: #98abc8; font-size: .67rem; }
.work-map-flow i { color: #68a8ff; font-style: normal; }
.work-map-flow i .portal-icon { width: 17px; height: 17px; }
.work-map-flow article:last-child i { color: #5ce0ad; }
.work-map-foot { display: flex; align-items: center; gap: 10px; padding: 17px 23px; color: #b9c9e2; font-size: .72rem; }

.platform-section { padding: 94px 0; }
.platform-heading { margin-bottom: 43px; }
.platform-heading h2 { margin-bottom: 14px; font-size: clamp(2.05rem,3.7vw,3.35rem); }
.platform-heading p { font-size: 1.03rem; }
.split-platform-heading { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(340px,.75fr); align-items: end; gap: 75px; }
.split-platform-heading h2 { margin-bottom: 0; }
.split-platform-heading > div:last-child p:last-child,.split-platform-heading > p { margin-bottom: 2px; }
.centered-platform-heading { max-width: 820px; margin-inline: auto; text-align: center; }
.centered-platform-heading p { max-width: 700px; margin: 0 auto; }
.platform-introduction { background: white; }
.business-cost-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.business-cost-grid article { min-height: 270px; padding: 27px; border: 1px solid #dfe6ef; border-radius: 19px; background: #fafbfd; }
.business-cost-grid article > span { display: inline-block; margin-bottom: 34px; color: #1f6ff2; font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
.business-cost-grid h3 { margin-bottom: 10px; font-size: 1.2rem; }
.business-cost-grid p { margin: 0; font-size: .87rem; }

.change-section { background: #f4f7fb; }
.change-table { overflow: hidden; border: 1px solid #dbe3ed; border-radius: 19px; background: white; box-shadow: 0 10px 35px rgba(13,27,53,.06); }
.change-table > div { display: grid; grid-template-columns: .72fr 1fr 1.15fr; gap: 24px; align-items: center; padding: 18px 22px; border-bottom: 1px solid #e8edf4; }
.change-table > div:last-child { border-bottom: 0; }
.change-table-head { background: #0d1b35; color: white; }
.change-table-head span { color: #bac9df; font-size: .68rem; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
.change-table strong { color: #26344d; font-size: .83rem; }
.change-table > div:not(.change-table-head) > span { color: #617089; font-size: .79rem; }
.change-table > div:not(.change-table-head) > span:last-child { display: flex; gap: 9px; color: #245f50; font-weight: 650; }
.change-table .portal-icon { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 2px; color: #087a55; }

.capabilities-section { background: white; }
.capability-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 17px; }
.capability-grid article { min-height: 410px; padding: 29px; border: 1px solid #dfe6ef; border-radius: 20px; background: #fff; box-shadow: 0 2px 3px rgba(13,27,53,.025); }
.capability-icon { display: grid; width: 48px; height: 48px; margin-bottom: 22px; place-items: center; border-radius: 14px; }
.capability-icon.blue { background: #eaf2ff; color: #145bd7; }.capability-icon.cyan { background: #e9faff; color: #087ba9; }.capability-icon.green { background: #e5f8f0; color: #087a55; }.capability-icon.purple { background: #f1ebff; color: #6b41bd; }.capability-icon.amber { background: #fff4d8; color: #9a5b00; }.capability-icon.rose { background: #ffe9f0; color: #b83962; }
.capability-grid h3 { margin-bottom: 8px; font-size: 1.28rem; }
.capability-grid p { min-height: 70px; margin-bottom: 18px; font-size: .86rem; }
.capability-grid ul { display: grid; gap: 8px; margin: 0; padding: 17px 0 0; border-top: 1px solid #edf1f6; list-style: none; }
.capability-grid li { position: relative; padding-left: 17px; color: #43516a; font-size: .79rem; }
.capability-grid li::before { position: absolute; top: .62em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #2b7cff; content: ""; }

.daily-flow-section { background: radial-gradient(circle at 10% 15%,rgba(43,124,255,.28),transparent 30%),linear-gradient(135deg,#071225,#102242); }
.daily-flow-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(470px,1fr); align-items: center; gap: 78px; }
.daily-flow-grid h2 { margin-bottom: 18px; color: white; font-size: clamp(2.05rem,3.6vw,3.25rem); }
.daily-flow-grid > div > p { margin-bottom: 28px; color: #b9c9e2; }
.daily-flow-list { display: grid; gap: 1px; margin: 0; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.1); list-style: none; }
.daily-flow-list li { display: grid; grid-template-columns: 40px 1fr; gap: 15px; padding: 17px 20px; background: rgba(9,26,52,.9); }
.daily-flow-list li > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: rgba(85,200,249,.12); color: #87d9ff; font-size: .7rem; font-weight: 850; }
.daily-flow-list strong { color: white; font-size: .9rem; }
.daily-flow-list p { margin: 3px 0 0; color: #9eb0ca; font-size: .73rem; }

.roles-section { background: #f4f7fb; }
.role-value-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.role-value-grid article { display: flex; min-height: 310px; flex-direction: column; padding: 27px; border: 1px solid #dfe6ef; border-radius: 19px; background: white; }
.role-value-grid article > span { display: grid; width: 43px; height: 43px; margin-bottom: 28px; place-items: center; border-radius: 12px; background: linear-gradient(135deg,#1f6ff2,#55c8f9); color: white; font-weight: 850; }
.role-value-grid h3 { margin-bottom: 9px; }
.role-value-grid p { margin-bottom: 21px; font-size: .83rem; }
.role-value-grid strong { margin-top: auto; padding-top: 16px; border-top: 1px solid #edf1f6; color: #245f50; font-size: .75rem; }

.implementation-section { background: white; }
.implementation-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(470px,1fr); align-items: start; gap: 80px; }
.implementation-grid h2 { margin-bottom: 17px; font-size: clamp(2.05rem,3.6vw,3.25rem); }
.implementation-grid > div > p { font-size: 1.02rem; }
.implementation-assurance { display: grid; grid-template-columns: 46px 1fr; gap: 14px; margin-top: 27px; padding: 18px; border: 1px solid #cfe0f8; border-radius: 15px; background: #f1f6ff; }
.implementation-assurance > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: #e0ecff; color: #145bd7; }
.implementation-assurance strong { color: #26344d; }
.implementation-assurance p { margin: 3px 0 0; font-size: .78rem; }
.implementation-steps { margin: 0; padding: 0; list-style: none; }
.implementation-steps li { display: grid; grid-template-columns: 46px 1fr; gap: 17px; padding: 19px 0; border-bottom: 1px solid #e8edf4; }
.implementation-steps li:first-child { padding-top: 0; }
.implementation-steps li > span { color: #1f6ff2; font-size: .68rem; font-weight: 850; letter-spacing: .1em; }
.implementation-steps strong { color: #26344d; }
.implementation-steps p { margin: 3px 0 0; font-size: .79rem; }

.purchase-section { background: #eaf0f8; }
.purchase-card { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.6fr); align-items: center; gap: 70px; overflow: hidden; padding: 48px; border-radius: 25px; background: radial-gradient(circle at 80% 10%,rgba(85,200,249,.24),transparent 28%),linear-gradient(135deg,#071225,#16355f); box-shadow: 0 24px 65px rgba(13,27,53,.18); }
.purchase-copy h2 { max-width: 720px; margin-bottom: 16px; color: white; font-size: clamp(2rem,3.5vw,3.1rem); }
.purchase-copy > p { max-width: 720px; color: #b9c9e2; }
.purchase-includes { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; }
.purchase-includes span { display: inline-flex; align-items: center; gap: 7px; color: #c7d4e8; font-size: .78rem; }
.purchase-includes .portal-icon { width: 16px; height: 16px; color: #5ce0ad; }
.purchase-offer { padding: 26px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: rgba(255,255,255,.1); }
.purchase-offer > small,.purchase-offer > strong,.purchase-offer > span { display: block; }
.purchase-offer > small { margin-bottom: 6px; color: #87d9ff; font-size: .62rem; font-weight: 850; letter-spacing: .14em; }
.purchase-offer > strong { color: white; font-size: 2.35rem; letter-spacing: -.04em; }
.purchase-offer > span { margin-bottom: 20px; color: #aebed5; font-size: .72rem; }
.purchase-demo-link { display: block; margin-top: 14px; color: #d5e2f3; font-size: .74rem; font-weight: 700; text-align: center; }
.purchase-demo-link:hover { color: white; }
.module-price-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 16px; }
.module-price-strip a { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 16px; border: 1px solid #d6dfeb; border-radius: 12px; background: white; color: #43516a; font-size: .76rem; }
.module-price-strip a:hover { border-color: #9ebdea; color: #145bd7; }
.module-price-strip strong { color: #17233a; }

.faq-section { background: white; }
.faq-layout { display: grid; grid-template-columns: minmax(280px,.7fr) minmax(0,1.3fr); align-items: start; gap: 80px; }
.faq-layout h2 { margin-bottom: 14px; font-size: clamp(2rem,3.4vw,3rem); }
.faq-layout > div:first-child p { margin-bottom: 22px; }
.faq-list { overflow: hidden; border: 1px solid #dfe6ef; border-radius: 18px; background: white; }
.faq-list details { border-bottom: 1px solid #e7ecf3; }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { position: relative; padding: 20px 52px 20px 22px; color: #26344d; cursor: pointer; font-weight: 760; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 18px; right: 22px; color: #1f6ff2; content: "+"; font-size: 1.4rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -4px 52px 20px 22px; font-size: .84rem; }
.platform-final-cta { padding: 68px 0; background: linear-gradient(135deg,#145bd7,#1f6ff2 60%,#0e8ec2); }
.platform-final-inner { display: flex; align-items: center; justify-content: space-between; gap: 55px; }
.platform-final-inner h2 { max-width: 740px; margin-bottom: 10px; color: white; font-size: clamp(1.9rem,3.2vw,2.8rem); }
.platform-final-inner p { max-width: 700px; margin: 0; color: #dceaff; }
.platform-final-inner > div:last-child { display: flex; flex: 0 0 auto; gap: 10px; }
.store-footer { padding-top: 58px; background: #071225; }
.store-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 55px; padding-bottom: 48px; }
.store-footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.store-footer-grid strong { margin-bottom: 5px; color: white; }
.store-footer-grid a,.store-footer-grid span,.store-footer-grid p { margin: 0; color: #9db0ce; font-size: .85rem; }
.store-footer-grid a:hover { color: white; }
.store-footer-grid a .portal-icon { display: inline; width: 14px; height: 14px; vertical-align: -2px; }
.footer-brand .brand-copy strong { color: white; }
.store-footer-bottom { display: flex; min-height: 67px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); color: #8194b1; font-size: .76rem; }

.auth-page { display: grid; min-height: calc(100vh - 78px); grid-template-columns: 1fr 1fr; }
.auth-visual { display: flex; justify-content: center; flex-direction: column; padding: 70px max(40px,calc((100vw - 1220px)/2)); background: radial-gradient(circle at 20% 15%,rgba(43,124,255,.34),transparent 33%),linear-gradient(145deg,#071225,#102242); }
.auth-visual h1 { max-width: 560px; margin-bottom: 18px; color: white; }
.auth-visual > p { max-width: 560px; color: #b9c9e2; font-size: 1.05rem; }
.auth-points { display: grid; gap: 12px; margin-top: 22px; }
.auth-points span { display: flex; align-items: center; gap: 9px; color: #cbd9ec; }
.auth-points .portal-icon { width: 17px; height: 17px; color: #5ce0ad; }
.auth-panel { display: grid; place-items: center; padding: 55px; background: white; }
.auth-card { width: min(100%,490px); }
.auth-card .portal-eyebrow { margin-bottom: 13px; }
.auth-card h2 { margin-bottom: 10px; font-size: 2.25rem; }
.auth-card > p { margin-bottom: 30px; }
.auth-switch { margin-top: 23px; color: #617089; text-align: center; }
.auth-switch a { font-weight: 760; }

.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1/-1; }
.field label { color: #26344d; font-size: .79rem; font-weight: 750; }
.field input,.field select,.field textarea { width: 100%; min-height: 47px; padding: 11px 13px; border: 1px solid #cfd9e6; border-radius: 10px; outline: 0; background: white; color: #17233a; transition: border .15s ease,box-shadow .15s ease; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,.field select:focus,.field textarea:focus { border-color: #2b7cff; box-shadow: 0 0 0 4px rgba(43,124,255,.12); }
.field small { color: #8290a5; font-size: .72rem; }
.field-error { color: #b4233d!important; }
.checkbox-field { display: flex; align-items: flex-start; gap: 9px; color: #617089; font-size: .82rem; }
.checkbox-field input { margin-top: 5px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.center-actions { justify-content: center; }
.form-actions .button-primary { min-width: 150px; }
.button-danger { border-color: #f4bdc8; background: #fff0f3; color: #ad2847; }
.button-quiet { border-color: #dbe3ed; background: white; color: #43516a; }
.button-success { background: #087a55; color: white; }
.button-block { width: 100%; }

.flash-stack { position: relative; z-index: 1050; display: grid; gap: 8px; padding-top: 14px; }
.portal-main > .flash-stack { width: auto; margin: 0 30px; }
.flash { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 15px; border: 1px solid #c7dcfa; border-radius: 11px; background: #edf5ff; color: #164e9f; box-shadow: 0 6px 20px rgba(13,27,53,.06); }
.flash-success { border-color: #b8e8d4; background: #edfbf5; color: #087a55; }
.flash-warning { border-color: #f0d79c; background: #fff8e8; color: #805000; }
.flash-error { border-color: #f1c0ca; background: #fff1f4; color: #a52845; }
.flash button { border: 0; background: transparent; color: currentColor; cursor: pointer; font-size: 1.3rem; }

.portal-body { overflow-x: hidden; background: #f4f7fb; }
.portal-layout { display: grid; min-height: 100vh; grid-template-columns: 270px minmax(0,1fr); }
.portal-sidebar { position: sticky; z-index: 1200; top: 0; display: flex; height: 100vh; flex-direction: column; overflow-y: auto; background: #0a172c; color: white; }
.portal-brand { min-height: 78px; padding: 0 23px; border-bottom: 1px solid rgba(255,255,255,.08); }
.portal-brand .brand-copy strong { color: white; }
.portal-brand .brand-copy small { color: #8ea2bf; }
.portal-user-card { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 11px; margin: 18px 15px 12px; padding: 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.045); }
.portal-user-card > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; background: linear-gradient(135deg,#1f6ff2,#55c8f9); color: white; font-weight: 820; }
.portal-user-card div { min-width: 0; }
.portal-user-card strong,.portal-user-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-user-card strong { color: white; font-size: .82rem; }
.portal-user-card small { color: #90a3c0; font-size: .67rem; }
.portal-side-nav { display: grid; gap: 3px; padding: 8px 13px 20px; }
.portal-side-nav > small { margin: 19px 10px 8px; color: #6f83a0; font-size: .61rem; font-weight: 820; letter-spacing: .15em; }
.portal-side-nav > a { display: flex; min-height: 43px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: #aebed4; font-size: .79rem; font-weight: 650; }
.portal-side-nav > a:hover { background: rgba(255,255,255,.06); color: white; }
.portal-side-nav > a.active { background: linear-gradient(90deg,rgba(43,124,255,.24),rgba(43,124,255,.08)); color: white; box-shadow: inset 3px 0 #4b91ff; }
.portal-side-nav .portal-icon { width: 18px; height: 18px; }
.sidebar-logout { margin-top: auto; padding: 13px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-logout button { display: flex; width: 100%; min-height: 42px; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: #aebed4; cursor: pointer; font-size: .79rem; font-weight: 650; }
.sidebar-logout button:hover { background: rgba(255,255,255,.06); color: white; }
.sidebar-logout .portal-icon { width: 18px; height: 18px; }
.portal-main { min-width: 0; }
.portal-topbar { position: sticky; z-index: 1000; top: 0; display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 32px; border-bottom: 1px solid #e1e7ef; background: rgba(255,255,255,.95); backdrop-filter: blur(14px); }
.breadcrumbs { display: flex; align-items: center; gap: 9px; color: #8290a5; font-size: .82rem; }
.breadcrumbs a { color: #617089; }
.breadcrumbs strong { color: #26344d; }
.topbar-actions { display: flex; align-items: center; gap: 13px; color: #43516a; font-size: .78rem; }
.topbar-actions a { color: #617089; }
.topbar-actions strong { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-dot { width: 8px; height: 8px; border-radius: 50%; background: #35b67f; box-shadow: 0 0 0 4px #e2f7ef; }
.sidebar-toggle { display: none; width: 42px; height: 42px; place-items: center; border: 1px solid #dbe3ed; border-radius: 9px; background: white; color: #17233a; }
.portal-content { padding: 36px 34px 60px; }
.portal-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; margin-bottom: 28px; }
.portal-page-heading h1 { margin: 0 0 9px; font-size: clamp(2rem,3.3vw,3rem); }
.portal-page-heading p { max-width: 720px; margin: 0; }
.portal-eyebrow { display: inline-block; margin-bottom: 8px; color: #1f6ff2; font-size: .68rem; font-weight: 820; letter-spacing: .14em; text-transform: uppercase; }
.heading-actions { display: flex; flex: 0 0 auto; gap: 9px; }
.portal-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.metric-card { min-height: 150px; padding: 22px; border: 1px solid #dfe6ef; border-radius: 16px; background: white; box-shadow: 0 2px 3px rgba(13,27,53,.025); }
.metric-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.metric-card-top span { color: #8290a5; font-size: .77rem; font-weight: 650; }
.metric-card-top i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #eaf2ff; color: #145bd7; }
.metric-card strong { display: block; color: #17233a; font-size: 1.82rem; letter-spacing: -.04em; }
.metric-card small { color: #8290a5; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 18px; }
.panel { border: 1px solid #dfe6ef; border-radius: 17px; background: white; box-shadow: 0 2px 3px rgba(13,27,53,.025); }
.panel + .panel { margin-top: 18px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 21px 23px; border-bottom: 1px solid #edf1f6; }
.panel-header h2,.panel-header h3 { margin: 0; font-size: 1.05rem; }
.panel-header a { font-size: .77rem; font-weight: 740; }
.panel-body { padding: 23px; }
.empty-state { padding: 45px 25px; text-align: center; }
.empty-state span { display: grid; width: 54px; height: 54px; margin: 0 auto 14px; place-items: center; border-radius: 15px; background: #eaf2ff; color: #145bd7; }
.empty-state h3 { margin-bottom: 7px; }
.empty-state p { max-width: 470px; margin: 0 auto 18px; }

.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th,.data-table td { padding: 14px 16px; border-bottom: 1px solid #edf1f6; text-align: left; vertical-align: middle; }
.data-table th { color: #8290a5; font-size: .66rem; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.data-table td { color: #43516a; font-size: .79rem; }
.data-table td strong { color: #26344d; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafbfd; }
.table-link { font-weight: 740; }
.status-pill { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; font-size: .66rem; font-weight: 800; white-space: nowrap; }
.status-pill.success { background: #e5f8f0; color: #087a55; }
.status-pill.warning { background: #fff4d8; color: #8b5600; }
.status-pill.danger { background: #ffe9f0; color: #ad2847; }
.status-pill.info { background: #eaf2ff; color: #145bd7; }
.search-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 12px; border: 1px solid #dfe6ef; border-radius: 14px; background: white; }
.search-bar input,.search-bar select { min-height: 42px; padding: 9px 12px; border: 1px solid #d5dfea; border-radius: 9px; background: white; }
.search-bar input { min-width: 240px; flex: 1; }

.licence-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.licence-card { padding: 23px; border: 1px solid #dfe6ef; border-radius: 17px; background: white; }
.licence-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.licence-card h3 { margin: 0 0 5px; }
.licence-card p { margin: 0; font-size: .8rem; }
.licence-key { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; padding: 13px; border: 1px solid #dbe4ef; border-radius: 10px; background: #f8faff; }
.licence-key code { overflow: hidden; color: #26344d; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.copy-button { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #cfdae8; border-radius: 7px; background: white; color: #43516a; cursor: pointer; font-size: .7rem; font-weight: 720; }
.licence-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.licence-meta div { min-width: 0; padding: 11px; border-radius: 10px; background: #f4f7fb; }
.licence-meta small,.licence-meta strong { display: block; }
.licence-meta small { margin-bottom: 3px; color: #8290a5; font-size: .64rem; }
.licence-meta strong { overflow: hidden; color: #43516a; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.licence-actions { display: flex; gap: 9px; margin-top: 17px; }
.support-meter { height: 7px; margin: 15px 0 7px; overflow: hidden; border-radius: 5px; background: #e8edf4; }
.support-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#1f6ff2,#55c8f9); }

.detail-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(310px,.8fr); gap: 18px; }
.details-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.details-list div { padding-bottom: 13px; border-bottom: 1px solid #edf1f6; }
.details-list dt { margin-bottom: 4px; color: #8290a5; font-size: .68rem; font-weight: 700; }
.details-list dd { margin: 0; color: #26344d; font-size: .86rem; font-weight: 650; overflow-wrap: anywhere; }
.timeline { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding-left: 28px; }
.timeline li::before { position: absolute; top: 5px; left: 2px; width: 9px; height: 9px; border: 3px solid #dce9ff; border-radius: 50%; background: #1f6ff2; content: ""; }
.timeline li::after { position: absolute; top: 19px; bottom: -18px; left: 8px; width: 1px; background: #dfe6ef; content: ""; }
.timeline li:last-child::after { display: none; }
.timeline strong,.timeline small { display: block; }
.timeline strong { color: #26344d; font-size: .8rem; }
.timeline small { color: #8290a5; font-size: .69rem; }

.cart-layout { display: grid; grid-template-columns: minmax(0,1fr) 370px; align-items: start; gap: 23px; }
.cart-items { display: grid; gap: 13px; }
.cart-item { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 16px; padding: 19px; border: 1px solid #dfe6ef; border-radius: 15px; background: white; }
.cart-item-icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 14px; background: #eaf2ff; color: #145bd7; }
.cart-item h3 { margin: 0 0 3px; font-size: 1rem; }
.cart-item p { margin: 0; font-size: .75rem; }
.cart-item-price { text-align: right; }
.cart-item-price strong { display: block; color: #17233a; }
.cart-item-price button { padding: 3px 0; border: 0; background: transparent; color: #ad2847; cursor: pointer; font-size: .7rem; }
.order-summary { position: sticky; top: 96px; padding: 24px; border: 1px solid #dfe6ef; border-radius: 17px; background: white; box-shadow: 0 12px 35px rgba(13,27,53,.08); }
.order-summary h2 { margin-bottom: 20px; font-size: 1.25rem; }
.summary-line { display: flex; justify-content: space-between; gap: 18px; margin: 11px 0; color: #617089; font-size: .82rem; }
.summary-total { margin-top: 17px; padding-top: 17px; border-top: 1px solid #dfe6ef; color: #17233a; font-size: 1rem; font-weight: 800; }
.summary-note { margin: 15px 0; padding: 12px; border-radius: 10px; background: #f4f7fb; color: #617089; font-size: .72rem; }
.paypal-button-shell { display: grid; gap: 12px; margin-top: 18px; }
paypal-button { display: block; width: 100%; min-height: 48px; }
.checkout-status { min-height: 22px; color: #617089; font-size: .77rem; }
.checkout-status.is-error { color: #ad2847; }

.admin-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding: 20px 22px; border-radius: 16px; background: linear-gradient(135deg,#0d1b35,#1c3b6a); color: white; }
.admin-callout h2 { margin: 0 0 5px; color: white; font-size: 1.15rem; }
.admin-callout p { margin: 0; color: #b9c9e2; font-size: .8rem; }
.admin-callout .status-pill { flex: 0 0 auto; }
.admin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.admin-form { display: grid; gap: 16px; }
.danger-zone { border-color: #f0c7d0; }
.danger-zone .panel-header { background: #fff7f8; }
.danger-zone .panel-header h2 { color: #9e2943; }
.code-block { overflow-x: auto; padding: 13px; border-radius: 10px; background: #0d1b35; color: #c9d8ed; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: .71rem; }
.audit-details { max-width: 390px; color: #617089; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: .67rem; overflow-wrap: anywhere; }
.error-page { display: grid; min-height: 65vh; place-items: center; padding: 80px 0; }
.error-card { max-width: 620px; margin-inline: auto; padding: 48px; border: 1px solid #dfe6ef; border-radius: 22px; background: white; text-align: center; box-shadow: 0 16px 50px rgba(13,27,53,.1); }
.error-card h1 { margin: 17px 0 10px; }
.narrow-panel { max-width: 760px; }
.wide-panel { max-width: 900px; }
.support-progress { width: 100%; height: 7px; margin: 15px 0 7px; overflow: hidden; border: 0; border-radius: 5px; background: #e8edf4; }
.support-progress::-webkit-progress-bar { border-radius: 5px; background: #e8edf4; }
.support-progress::-webkit-progress-value { border-radius: 5px; background: linear-gradient(90deg,#1f6ff2,#55c8f9); }
.support-progress::-moz-progress-bar { border-radius: 5px; background: linear-gradient(90deg,#1f6ff2,#55c8f9); }

@media (max-width: 1120px) {
    .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .business-cost-grid,.role-value-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .capability-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .portal-layout { grid-template-columns: 240px minmax(0,1fr); }
    .portal-content { padding-inline: 25px; }
    .store-footer-grid { grid-template-columns: 1.4fr repeat(2,1fr); }
    .store-footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 900px) {
    .store-menu-toggle { display: grid; }
    .store-navigation { position: absolute; top: 78px; right: 20px; left: 20px; display: none; align-items: stretch; flex-direction: column; padding: 13px; border: 1px solid #dfe6ef; border-radius: 14px; background: white; box-shadow: 0 20px 50px rgba(13,27,53,.14); }
    .store-navigation.is-open { display: flex; }
    .store-navigation > a { width: 100%; }
    .store-hero-grid { grid-template-columns: 1fr; gap: 42px; }
    .store-decision-grid,.platform-sales-grid,.split-platform-heading,.daily-flow-grid,.implementation-grid,.faq-layout { grid-template-columns: 1fr; gap: 42px; }
    .store-trust-list { grid-template-columns: repeat(3,1fr); }
    .store-trust-list div { grid-template-columns: 1fr; text-align: center; }
    .store-trust-list span { margin-inline: auto; }
    .work-map { max-width: 680px; }
    .change-table > div { grid-template-columns: .7fr 1fr 1.1fr; gap: 16px; }
    .purchase-card { grid-template-columns: 1fr; gap: 35px; }
    .platform-final-inner { align-items: flex-start; flex-direction: column; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-visual { min-height: 410px; padding: 65px 30px; }
    .auth-panel { padding: 55px 30px; }
    .portal-layout { display: block; }
    .portal-sidebar { position: fixed; left: 0; transform: translateX(-105%); width: 280px; box-shadow: 20px 0 60px rgba(0,0,0,.22); transition: transform .2s ease; }
    .portal-sidebar.is-open { transform: translateX(0); }
    .sidebar-toggle { display: grid; }
    .portal-topbar { padding-inline: 20px; }
    .topbar-actions > a,.topbar-actions .account-dot { display: none; }
    .dashboard-grid,.detail-grid,.cart-layout { grid-template-columns: 1fr; }
    .order-summary { position: static; }
}

@media (max-width: 680px) {
    .portal-shell { width: min(calc(100% - 28px),1220px); }
    .store-nav { min-height: 70px; }
    .store-navigation { top: 70px; right: 14px; left: 14px; }
    .store-nav .brand-copy small { display: none; }
    .store-hero { padding: 60px 0; }
    .store-hero h1 { font-size: 2.55rem; }
    .platform-sales-hero { padding: 64px 0; }
    .platform-sales-copy h1 { font-size: 2.6rem; }
    .platform-section { padding: 68px 0; }
    .store-decision-section { padding: 62px 0; }
    .store-trust-list { grid-template-columns: 1fr; }
    .product-grid,.licence-grid,.admin-grid,.form-grid,.metric-grid,.business-cost-grid,.capability-grid,.role-value-grid,.module-price-strip { grid-template-columns: 1fr; }
    .business-cost-grid article,.capability-grid article,.role-value-grid article { min-height: auto; }
    .capability-grid p { min-height: 0; }
    .change-table { border: 0; background: transparent; box-shadow: none; }
    .change-table-head { display: none!important; }
    .change-table > div { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; padding: 18px; border: 1px solid #dbe3ed; border-radius: 14px; background: white; }
    .change-table > div:not(.change-table-head) > span:nth-child(2) { padding-bottom: 10px; border-bottom: 1px solid #edf1f6; }
    .daily-flow-grid,.implementation-grid { gap: 36px; }
    .daily-flow-list li { padding-inline: 15px; }
    .purchase-card { padding: 29px 22px; }
    .purchase-offer { padding: 22px; }
    .platform-final-inner > div:last-child { width: 100%; flex-direction: column; }
    .platform-final-inner .button { width: 100%; }
    .field-full { grid-column: auto; }
    .product-card { min-height: auto; }
    .store-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .store-footer-grid > div:last-child { grid-column: auto; }
    .store-footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; }
    .auth-visual { min-height: 360px; }
    .auth-panel { padding: 44px 20px; }
    .portal-topbar { min-height: 70px; }
    .breadcrumbs span,.breadcrumbs a { display: none; }
    .topbar-actions strong { max-width: 110px; }
    .portal-content { padding: 27px 15px 50px; }
    .portal-main > .flash-stack { margin-inline: 15px; }
    .portal-page-heading { align-items: flex-start; flex-direction: column; gap: 17px; }
    .portal-page-heading h1 { font-size: 2.05rem; }
    .heading-actions { width: 100%; }
    .heading-actions .button { flex: 1; }
    .licence-meta,.details-list { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 46px 1fr; }
    .cart-item-icon { width: 46px; height: 46px; }
    .cart-item-price { grid-column: 2; text-align: left; }
    .search-bar { align-items: stretch; flex-direction: column; }
    .search-bar input { min-width: 0; }
    .admin-callout { align-items: flex-start; flex-direction: column; }
    .error-card { padding: 35px 22px; }
}
