.customer-page { background: radial-gradient(ellipse at 70% 0, #250c103d, transparent 48%), #080707; min-height: 100vh; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.portal-shell { display: grid; grid-template-columns: 228px minmax(0,1fr); gap: 35px; max-width: 1160px; margin: 104px auto 0; padding-bottom: 20px; }
.portal-sidebar { align-self: start; position: sticky; top: 104px; min-height: calc(100dvh - 134px); border-right: 1px solid #2b2023; padding: 20px 22px 20px 0; display: flex; flex-direction: column; }
.workspace-label { display: flex; align-items: center; gap: 11px; margin-bottom: 40px; }
.workspace-mark { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #8f3442; border-radius: 11px; background: linear-gradient(145deg,#6e1c2b,#200e13); color: #ff9ba7; font-weight: 800; font-size: 21px; }
.workspace-label strong { display: block; font-size: .85rem; }
.workspace-label small { display: block; color: #9e838e; font-size: .72rem; margin-top: 5px; }
.sidebar-caption { font-size: .61rem; letter-spacing: .15em; color: #b58e9c; padding-left: 11px; }
.portal-nav { display: grid; gap: 6px; margin: 14px 0 34px; }
.portal-nav a { display: flex; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 10px; padding: 13px 11px; font-size: .8rem; }
.portal-nav a[aria-current="page"] { background: linear-gradient(90deg,#4a1922aa,#22101477); border-color: #60303a; color: #fff1f4; box-shadow: inset 3px 0 #fa6476; }
.portal-nav a[aria-current="page"] .icon { color: #ff7f8e; }
.nav-count { margin-left: auto; font-size: .7rem; color: #cc9da9; }
.sidebar-support { background: #130d10; border: 1px solid #34222a; border-radius: 12px; padding: 18px 15px; margin-top: auto; }
.sidebar-support > .icon { color: #d87386; margin-bottom: 17px; }
.sidebar-support strong { display: block; font-size: .82rem; }
.sidebar-support p { color: #a48c95; line-height: 1.65; font-size: .74rem; margin: 9px 0 16px; }
.sidebar-support a { font-size: .75rem; color: #f1a6b5; display: flex; justify-content: space-between; }
.sidebar-profile { display: flex; align-items: center; gap: 11px; padding-top: 24px; margin-top: 24px; border-top: 1px solid #2b2023; }
.avatar { width: 34px; height: 34px; border: 1px solid #683545; border-radius: 10px; background: #341521; color: #ffb6c5; display: grid; place-items: center; font-size: .85rem; font-weight: 650; flex: none; }
.sidebar-profile > span:last-child { min-width: 0; }
.sidebar-profile strong, .sidebar-profile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile strong { font-size: .8rem; }
.sidebar-profile small { font-size: .66rem; color: #a18591; margin-top: 4px; }
.portal-main { min-width: 0; }
.portal-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: .69rem; color: #97848a; padding: 15px 0 26px; }
.portal-topline strong { color: #ead9df; font-weight: 500; }
.portal-topline > span:first-child > span { margin-inline: 7px; color: #684d56; }
.private-indicator { display: flex; align-items: center; gap: 7px; font-size: .65rem; }
.private-indicator i { width: 5px; height: 5px; border-radius: 50%; background: #ff7187; box-shadow: 0 0 8px #ef526166; }
.welcome-panel { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr) 230px; align-items: center; gap: 20px; padding: 39px; border: 1px solid #542731; border-radius: 19px; background: radial-gradient(ellipse at 95% 30%,#631b2d80,transparent 66%),linear-gradient(120deg,#1b0e14,#130a0e); }
.welcome-panel .eyebrow, .page-heading .eyebrow { font-size: .65rem; letter-spacing: .13em; font-weight: 600; color: #dc8195; }
.portal-main h1 { font-size: clamp(2rem,3.4vw,3rem); letter-spacing: -.055em; line-height: 1.12; font-weight: 650; overflow-wrap: anywhere; }
.red-dot { color: #ff5369; }
.welcome-panel p { color: #bfa4af; font-size: .85rem; line-height: 1.7; margin: 15px 0 25px; }
.welcome-panel .button { min-height: 43px; font-size: .79rem; }
.welcome-art { position: relative; display: grid; place-items: center; align-self: stretch; min-height: 190px; }
.welcome-art img { width: 132px; height: 140px; object-fit: cover; border: 1px solid #a94553; border-radius: 27px; transform: rotate(-8deg); box-shadow: 0 16px 70px #ff1e452f; animation: customer-float 7s ease-in-out infinite; }
.logo-orbit { position: absolute; width: 220px; height: 220px; border: 1px solid #a13b4d30; border-radius: 50%; }
.logo-orbit::before, .logo-orbit::after { content: ''; position: absolute; inset: -24px; border: 1px solid #a13b4d20; border-radius: 50%; }
.logo-orbit::after { inset: 24px; border-color: #b3425540; }
.stat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 19px; }
.stat-card { display: flex; flex-direction: column; align-items: start; border: 1px solid #34252b; border-radius: 13px; background: linear-gradient(125deg,#171014,#100c0f); padding: 20px; }
.stat-card > span { display: flex; align-items: center; gap: 9px; color: #bea0ad; font-size: .73rem; }
.stat-card .icon { width: 16px; height: 16px; color: #d68096; }
.stat-card > strong { font-size: 2.1rem; font-weight: 550; letter-spacing: -.05em; margin: 16px 0 9px; }
.stat-card > .date-value { font-size: 1.35rem; letter-spacing: -.03em; min-height: 40px; display: flex; align-items: center; }
.stat-card small { color: #ac8f9b; font-size: .65rem; line-height: 1.5; }
.portal-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 34px 0 17px; }
.portal-main h2 { font-size: 1.15rem; letter-spacing: -.03em; line-height: 1.4; }
.portal-section-heading p { color: #a58c96; font-size: .76rem; margin-top: 5px; line-height: 1.6; }
.portal-section-heading .text-link { font-size: .74rem; white-space: nowrap; color: #e8b3c1; }
.license-empty { display: grid; justify-items: center; text-align: center; border: 1px dashed #4e2c39; border-radius: 14px; padding: 34px 24px; background: radial-gradient(ellipse at 50% 0,#39132044,transparent 70%),#100b0e; }
.empty-key { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #321320; border: 1px solid #5b293d; color: #e98aa5; margin-bottom: 15px; }
.license-empty h3 { font-size: 1rem; letter-spacing: -.025em; }
.license-empty p { font-size: .76rem; line-height: 1.7; color: #ae929f; max-width: 365px; margin: 8px 0 18px; }
.license-empty .button { min-height: 36px; font-size: .73rem; }
.license-card { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 22px; background: linear-gradient(120deg,#1a0e14,#110c10); border: 1px solid #452733; border-radius: 13px; margin-bottom: 12px; }
.license-card > img { width: 48px; height: 51px; border-radius: 11px; object-fit: cover; }
.license-card h3 { font-size: .95rem; overflow-wrap: anywhere; }
.license-card p { font-size: .72rem; color: #a98a98; margin-top: 7px; overflow-wrap: anywhere; line-height: 1.6; }
.license-card-meta { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.license-card-meta small { font-size: .69rem; color: #bca1ae; }
.license-status { display: inline-flex; align-items: center; gap: 6px; font-size: .65rem; font-weight: 600; border: 1px solid #406952; background: #14241c; color: #a3deb9; padding: 5px 9px; border-radius: 7px; }
.license-status::before { content:''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.license-status[data-status="expired"] { color: #ddbb89; border-color: #655035; background: #282016; }
.license-status[data-status="revoked"] { color: #ff9aa9; border-color: #723442; background: #2d111a; }
.account-shortcut { display: flex; align-items: center; gap: 15px; border: 1px solid #34252b; border-radius: 13px; padding: 20px; margin-top: 20px; background: #120c10; transition: border-color .2s; }
.account-shortcut:hover { border-color: #925264; }
.account-shortcut strong { display: block; font-size: .84rem; }
.account-shortcut small { display: block; color: #af919f; margin-top: 6px; font-size: .72rem; }
.account-shortcut > span:last-child { margin-left: auto; color: #e1a6b9; }
.shortcut-icon { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #59303f; border-radius: 11px; color: #e089a5; background: #28131f; flex: none; }
.page-heading { padding: 22px 0 30px; }
.page-heading p { margin-top: 13px; color: #b298a4; font-size: .87rem; line-height: 1.7; }
.redeem-panel { display: grid; grid-template-columns: .9fr 1.2fr; gap: 35px; padding: 28px; border: 1px solid #653040; border-radius: 16px; background: radial-gradient(ellipse at 0 0,#4b18234f,transparent 70%),#160e13; }
.redeem-panel h2 { margin-top: 16px; }
.redeem-panel p:not(.form-error) { color: #b497a5; font-size: .77rem; line-height: 1.7; margin-top: 9px; }
.redeem-panel .form-field { margin-top: 3px; }
.redeem-panel input { font-family: ui-monospace,monospace; font-size: .74rem; }
.redeem-panel .button { min-height: 42px; font-size: .8rem; margin-top: 13px; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; align-items: start; }
.settings-card { padding: 26px; border: 1px solid #3d2632; border-radius: 15px; background: #160e13; }
.settings-heading { display: flex; gap: 11px; align-items: center; padding-bottom: 12px; color: #f4dbe5; }
.settings-heading .icon { color: #df8eaa; }
.settings-card .button { margin-top: 23px; font-size: .8rem; min-height: 43px; }
.field-note { font-size: .71rem; line-height: 1.7; color: #ae8e9e; margin-top: 10px; }
.form-field input[readonly] { color: #bb94a6; background: #1d1019; }
.profile-details, .license-detail-list { display: grid; gap: 15px; margin: 25px 0 0; padding-top: 22px; border-top: 1px solid #3d2632; }
.profile-details div, .license-detail-list div { display: grid; gap: 6px; }
.profile-details dt, .license-detail-list dt { font-size: .7rem; color: #b592a4; }
.profile-details dd, .license-detail-list dd { font-size: .75rem; color: #edcfdf; overflow-wrap: anywhere; }
.profile-details dd[data-customer-id], [data-detail-id], [data-detail-key] { font-family: ui-monospace,monospace; }
.license-dialog h2 { margin-top: 18px; }
.license-detail-list { margin-bottom: 20px; }
.license-dialog .dialog-header .eyebrow { margin: 0; }
.form-error.success { color: #a6ddbb; }
.download-intro { display:flex; align-items:center; gap:15px; padding:20px 23px; border:1px solid #5c2d3b; border-radius:13px; background:linear-gradient(115deg,#28121d,#120d10); }
.download-intro strong { font-size:.87rem; }
.download-intro p { color:#b695a5; font-size:.75rem; margin-top:7px; line-height:1.6; }
.download-access-badge { margin-left:auto; white-space:nowrap; font-size:.65rem; color:#e5a2b8; padding:6px 9px; border:1px solid #714050; border-radius:7px; background:#311620; }
.download-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.download-card { display:flex; flex-direction:column; align-items:stretch; padding:27px; border:1px solid #512b3a; border-radius:16px; background:radial-gradient(ellipse at 100% 0,#51192855,transparent 65%),#160e13; }
.download-card-top { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:23px; }
.download-card-top img { width:58px; height:62px; object-fit:cover; border-radius:13px; border:1px solid #79374a; }
.download-state { font-size:.62rem; padding:6px 8px; border-radius:7px; border:1px solid #6a4d34; background:#2b1c15; color:#e3b590; }
.download-state[data-available="true"] { border-color:#406952; background:#14241c; color:#a3deb9; }
.download-card h3 { font-size:1.27rem; letter-spacing:-.04em; }
.download-subtitle { color:#bb9aa9; font-size:.8rem; line-height:1.75; margin-top:10px; }
.download-details { display:grid; gap:13px; margin-block:24px; border-top:1px solid #452633; padding-top:20px; }
.download-details div { display:grid; grid-template-columns:100px minmax(0,1fr); gap:10px; font-size:.73rem; }
.download-details dt { color:#aa8497; }
.download-details dd { color:#e5c4d4; overflow-wrap:anywhere; }
.download-card .button { width:100%; margin-top:auto; min-height:44px; font-size:.8rem; }
.download-card .button:disabled { cursor:not-allowed; opacity:.65; box-shadow:none; }
.download-card .download-subtitle:last-of-type { margin-bottom:25px; }
.download-loading { font-size:.82rem; color:#c9a0b3; padding-block:20px; }
.download-footnote { margin-top:25px; color:#ac899b; font-size:.72rem; line-height:1.8; }
.download-footnote a { color:#efadbf; white-space:nowrap; }
.portal-footer { border-top: 1px solid #2a1b23; margin-top: 40px; padding: 22px 0; display: flex; justify-content: space-between; font-size: .68rem; color: #a18193; gap: 20px; }
.portal-footer a { color: #d7a6bc; }
.portal-loading { min-height: 400px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #d1a3ba; font-size: .85rem; }
.loading-ring { width: 20px; height: 20px; border: 2px solid #5b293e; border-top-color: #ff7f9d; border-radius: 50%; animation: customer-spin .8s linear infinite; }
.portal-load-error { padding: 70px 0; }
.portal-load-error p { margin: 20px 0; color: #bc9baa; }
.no-script { position: fixed; z-index: 10; inset: auto 20px 20px; background: #431927; border: 1px solid #a94c6b; padding: 20px; border-radius: 10px; }
[data-panel]:not([hidden]) { animation: enter-up .35s ease both; }
@keyframes customer-float { 50% { transform: translateY(-8px) rotate(-5deg); } }
@keyframes customer-spin { to { transform: rotate(360deg); } }
@media (max-width:1240px) { .portal-shell { margin-inline: 24px; } }
@media (max-width:980px) { .download-grid { grid-template-columns:1fr; } }
@media (min-width:701px) and (max-width:960px) { .portal-shell { margin-top:135px; } .portal-sidebar { top:135px; min-height:calc(100dvh - 165px); } }
@media (max-width:980px) { .portal-shell { grid-template-columns: 185px minmax(0,1fr); gap: 22px; } .portal-sidebar { padding-right: 16px; } .welcome-panel { padding: 28px; grid-template-columns: minmax(0,1fr) 140px; } .welcome-art img { width: 104px; height: 111px; } .logo-orbit { width: 165px; height: 165px; } .stat-card { padding: 15px; } .settings-grid { grid-template-columns: 1fr; } .redeem-panel { grid-template-columns: 1fr; gap: 22px; } }
@media (max-width:700px) {
 .portal-shell { display: block; margin: 125px 16px 0; } .portal-sidebar { position: static; min-height: 0; border: 0; padding: 0; }
 .workspace-label, .sidebar-caption, .sidebar-support, .sidebar-profile { display: none; }
 .portal-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin: 0 0 12px; padding-bottom: 17px; border-bottom: 1px solid #3c2331; }
 .portal-nav a { padding: 12px 5px; gap: 6px; justify-content: center; white-space: nowrap; font-size: .68rem; } .portal-nav .icon { width: 15px; height: 15px; } .nav-count { display: none; }
 .portal-nav:has([data-download-tab]:not([hidden])) { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .portal-nav:has([data-download-tab]:not([hidden])) a { font-size:.65rem; white-space:normal; text-align:center; min-height:45px; }
 .portal-nav:has([data-download-tab]:not([hidden])) .icon { display:none; }
 .download-intro { padding:18px; gap:12px; } .download-access-badge { display:none; } .download-card { padding:23px; }
 .portal-topline { font-size: .64rem; padding: 8px 0 22px; } .private-indicator { display: none; }
 .welcome-panel { padding: 26px 23px; gap: 0; grid-template-columns: minmax(0,1fr) 80px; } .welcome-art { min-height: 100px; } .welcome-art img { width: 75px; height: 80px; border-radius: 16px; } .logo-orbit { width: 115px; height: 115px; } .welcome-panel .eyebrow { font-size: .57rem; max-width: 170px; line-height: 1.7; } .welcome-panel p { font-size: .77rem; }
 .welcome-panel .button { padding-inline: 12px; font-size: .72rem; gap: 6px; } .welcome-panel .button .icon { width: 16px; }
 .stat-grid { gap: 8px; } .stat-card { padding: 14px 10px; } .stat-card > span { font-size: .6rem; gap: 5px; } .stat-card .icon { display: none; } .stat-card > strong { font-size: 1.8rem; } .stat-card > .date-value { font-size: .87rem; min-height: 34px; } .stat-card small { font-size: .58rem; }
 .portal-section-heading { align-items: start; } .portal-section-heading .text-link { padding-top: 4px; font-size: .65rem; } .portal-main h2 { font-size: 1.05rem; } .portal-section-heading p { font-size: .72rem; }
 .license-card { grid-template-columns: 40px minmax(0,1fr); padding: 18px; gap: 13px; } .license-card > img { width: 40px; height: 43px; } .license-card > button { grid-column: 2; justify-self: start; }
 .account-shortcut { padding: 17px; gap: 11px; } .account-shortcut strong { font-size: .76rem; } .account-shortcut small { font-size: .66rem; }
 .redeem-panel, .settings-card { padding: 22px; } .page-heading { padding-top: 8px; } .portal-footer { font-size: .63rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
