.customer-page { background: radial-gradient(ellipse at 70% 0, #25252b3d, 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 #34343b; 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 #686a73; border-radius: 11px; background: linear-gradient(145deg,#34343b,#25252b); color: #ececf0; font-weight: 800; font-size: 21px; }
.workspace-label strong { display: block; font-size: .85rem; }
.workspace-label small { display: block; color: #9a9ca5; font-size: .72rem; margin-top: 5px; }
.sidebar-caption { font-size: .61rem; letter-spacing: .15em; color: #9a9ca5; 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,#34343baa,#25252b77); border-color: #686a73; color: #fff1f4; box-shadow: inset 3px 0 #9a9ca5; }
.portal-nav a[aria-current="page"] .icon { color: #ececf0; }
.nav-count { margin-left: auto; font-size: .7rem; color: #ececf0; }
.sidebar-support { background: #17171b; border: 1px solid #34343b; border-radius: 12px; padding: 18px 15px; margin-top: auto; }
.sidebar-support > .icon { color: #9a9ca5; margin-bottom: 17px; }
.sidebar-support strong { display: block; font-size: .82rem; }
.sidebar-support p { color: #9a9ca5; line-height: 1.65; font-size: .74rem; margin: 9px 0 16px; }
.sidebar-support a { font-size: .75rem; color: #ececf0; 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 #34343b; }
.avatar { width: 34px; height: 34px; border: 1px solid #686a73; border-radius: 10px; background: #34343b; color: #ececf0; 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: #9a9ca5; 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: #686a73; }
.private-indicator { display: flex; align-items: center; gap: 7px; font-size: .65rem; }
.private-indicator i { width: 5px; height: 5px; border-radius: 50%; background: #ececf0; box-shadow: 0 0 8px #9a9ca566; }
.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 #34343b; border-radius: 19px; background: radial-gradient(ellipse at 95% 30%,#34343b80,transparent 66%),linear-gradient(120deg,#25252b,#17171b); }
.welcome-panel .eyebrow, .page-heading .eyebrow { font-size: .65rem; letter-spacing: .13em; font-weight: 600; color: #ececf0; }
.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: #9a9ca5; }
.welcome-panel p { color: #ececf0; 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 #9a9ca5; border-radius: 27px; transform: rotate(-8deg); box-shadow: 0 16px 70px #9a9ca52f; animation: customer-float 7s ease-in-out infinite; }
.logo-orbit { position: absolute; width: 220px; height: 220px; border: 1px solid #686a7330; border-radius: 50%; }
.logo-orbit::before, .logo-orbit::after { content: ''; position: absolute; inset: -24px; border: 1px solid #686a7320; border-radius: 50%; }
.logo-orbit::after { inset: 24px; border-color: #9a9ca540; }
.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 #34343b; border-radius: 13px; background: linear-gradient(125deg,#17171b,#17171b); padding: 20px; }
.stat-card > span { display: flex; align-items: center; gap: 9px; color: #ececf0; font-size: .73rem; }
.stat-card .icon { width: 16px; height: 16px; color: #ececf0; }
.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: #9a9ca5; 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: #9a9ca5; font-size: .76rem; margin-top: 5px; line-height: 1.6; }
.portal-section-heading .text-link { font-size: .74rem; white-space: nowrap; color: #ececf0; }
.license-empty { display: grid; justify-items: center; text-align: center; border: 1px dashed #34343b; border-radius: 14px; padding: 34px 24px; background: radial-gradient(ellipse at 50% 0,#34343b44,transparent 70%),#17171b; }
.empty-key { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #25252b; border: 1px solid #34343b; color: #ececf0; margin-bottom: 15px; }
.license-empty h3 { font-size: 1rem; letter-spacing: -.025em; }
.license-empty p { font-size: .76rem; line-height: 1.7; color: #9a9ca5; 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,#17171b,#17171b); border: 1px solid #34343b; 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: #9a9ca5; 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: #ececf0; }
.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: #ececf0; border-color: #686a73; background: #25252b; }
.license-status[data-status="revoked"] { color: #ececf0; border-color: #686a73; background: #25252b; }
.account-shortcut { display: flex; align-items: center; gap: 15px; border: 1px solid #34343b; border-radius: 13px; padding: 20px; margin-top: 20px; background: #17171b; transition: border-color .2s; }
.account-shortcut:hover { border-color: #9a9ca5; }
.account-shortcut strong { display: block; font-size: .84rem; }
.account-shortcut small { display: block; color: #9a9ca5; margin-top: 6px; font-size: .72rem; }
.account-shortcut > span:last-child { margin-left: auto; color: #ececf0; }
.shortcut-icon { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #686a73; border-radius: 11px; color: #ececf0; background: #25252b; flex: none; }
.page-heading { padding: 22px 0 30px; }
.page-heading p { margin-top: 13px; color: #ececf0; font-size: .87rem; line-height: 1.7; }
.redeem-panel { display: grid; grid-template-columns: .9fr 1.2fr; gap: 35px; padding: 28px; border: 1px solid #686a73; border-radius: 16px; background: radial-gradient(ellipse at 0 0,#34343b4f,transparent 70%),#17171b; }
.redeem-panel h2 { margin-top: 16px; }
.redeem-panel p:not(.form-error) { color: #ececf0; 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 #34343b; border-radius: 15px; background: #17171b; }
.settings-heading { display: flex; gap: 11px; align-items: center; padding-bottom: 12px; color: #f4dbe5; }
.settings-heading .icon { color: #ececf0; }
.settings-card .button { margin-top: 23px; font-size: .8rem; min-height: 43px; }
.field-note { font-size: .71rem; line-height: 1.7; color: #9a9ca5; margin-top: 10px; }
.form-field input[readonly] { color: #ececf0; background: #25252b; }
.profile-details, .license-detail-list { display: grid; gap: 15px; margin: 25px 0 0; padding-top: 22px; border-top: 1px solid #34343b; }
.profile-details div, .license-detail-list div { display: grid; gap: 6px; }
.profile-details dt, .license-detail-list dt { font-size: .7rem; color: #ececf0; }
.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 #686a73; border-radius:13px; background:linear-gradient(115deg,#25252b,#17171b); }
.download-intro strong { font-size:.87rem; }
.download-intro p { color:#ececf0; font-size:.75rem; margin-top:7px; line-height:1.6; }
.download-access-badge { margin-left:auto; white-space:nowrap; font-size:.65rem; color:#ececf0; padding:6px 9px; border:1px solid #686a73; border-radius:7px; background:#25252b; }
.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 #34343b; border-radius:16px; background:radial-gradient(ellipse at 100% 0,#34343b55,transparent 65%),#17171b; }
.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 #686a73; }
.download-state { font-size:.62rem; padding:6px 8px; border-radius:7px; border:1px solid #686a73; background:#25252b; color:#ececf0; }
.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:#ececf0; font-size:.8rem; line-height:1.75; margin-top:10px; }
.download-details { display:grid; gap:13px; margin-block:24px; border-top:1px solid #34343b; padding-top:20px; }
.download-details div { display:grid; grid-template-columns:100px minmax(0,1fr); gap:10px; font-size:.73rem; }
.download-details dt { color:#9a9ca5; }
.download-details dd { color:#ececf0; 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:#ececf0; padding-block:20px; }
.download-footnote { margin-top:25px; color:#9a9ca5; font-size:.72rem; line-height:1.8; }
.download-footnote a { color:#ececf0; white-space:nowrap; }
.portal-footer { border-top: 1px solid #25252b; margin-top: 40px; padding: 22px 0; display: flex; justify-content: space-between; font-size: .68rem; color: #9a9ca5; gap: 20px; }
.portal-footer a { color: #ececf0; }
.portal-loading { min-height: 400px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #ececf0; font-size: .85rem; }
.loading-ring { width: 20px; height: 20px; border: 2px solid #34343b; border-top-color: #ececf0; border-radius: 50%; animation: customer-spin .8s linear infinite; }
.portal-load-error { padding: 70px 0; }
.portal-load-error p { margin: 20px 0; color: #ececf0; }
.no-script { position: fixed; z-index: 10; inset: auto 20px 20px; background: #34343b; border: 1px solid #9a9ca5; 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 #34343b; }
 .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; } }
.session-security { margin-top: 20px; }
.session-security .button { margin-top: 14px; }

/* Discord & HWID Extensions */
.button-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #5865F2 !important;
  color: #fff !important;
  font-weight: 700;
  border: none;
  border-radius: 11px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.35);
  text-decoration: none;
}
.button-discord:hover {
  background: #4752C4 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(88, 101, 242, 0.5);
}
.hwid-box {
  margin-top: 18px;
  padding: 18px;
  background: #17171b;
  border: 1px solid #34343b;
  border-radius: 13px;
}
.hwid-chip {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  padding: 4px 8px;
  background: #25252b;
  border: 1px solid #34343b;
  border-radius: 6px;
  color: #ececf0;
  display: inline-block;
}
.hwid-status-ready {
  color: #4ade80 !important;
  border-color: rgba(74, 222, 128, 0.3) !important;
  background: rgba(74, 222, 128, 0.1) !important;
}
.hwid-status-cooldown {
  color: #9a9ca5 !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
  background: rgba(251, 191, 36, 0.1) !important;
}
.discord-banner-card {
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.12), rgba(20, 13, 16, 0.9));
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 14px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
