:root {
  --bg: #08090d;
  --bg-1: #0e1017;
  --bg-2: #12151e;
  --bg-3: #171b25;
  --ink: #f4f1ea;
  --ink-mute: #a7abb6;
  --ink-dim: #727885;
  --line: rgba(255, 255, 255, .11);
  --line-2: rgba(255, 255, 255, .2);
  --gold: #e5b85e;
  --gold-2: #f2d18c;
  --crimson: #9d83ff;
  --crimson-2: #bcaeff;
  --crimson-deep: #674de0;
  --emerald: #54d8e4;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow: 0 30px 80px -45px rgba(0, 0, 0, .92);
}

html { scroll-behavior: smooth; }
body,
button,
input,
select,
textarea { font-family: "Manrope", sans-serif !important; }
body { background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.58; }
h1,
h2,
h3,
h4,
.brand,
.studio,
.capacity-number { font-family: "Manrope", sans-serif !important; }
.mono,
.kicker,
.v-tag,
.field label,
.acct-header .kicker,
.tier-ribbon,
.picker-label,
.commerce-status { font-family: "Manrope", sans-serif !important; }

.portal-header { position: sticky; z-index: 1000; top: 0; height: 76px; border-bottom: 1px solid var(--line); background: rgba(8, 9, 13, .96); backdrop-filter: blur(18px); }
.portal-nav-shell { width: min(1400px, calc(100% - 48px)); height: 100%; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; }
.portal-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: .94rem; font-weight: 800; letter-spacing: .11em; text-decoration: none; }
.portal-brand > span { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(229, 184, 94, .65); border-radius: 50%; color: var(--gold); font-size: .76rem; letter-spacing: 0; box-shadow: inset 0 0 16px rgba(229, 184, 94, .08); }
.portal-primary-nav { justify-self: center; display: flex; align-items: center; gap: 24px; font-size: .96rem; font-weight: 650; }
.portal-primary-nav > a,
.portal-dropdown > summary { padding: 25px 0; color: #d1d3d9; text-decoration: none; cursor: pointer; white-space: nowrap; list-style: none; }
.portal-primary-nav > a:hover,
.portal-dropdown > summary:hover { color: #fff; }
.portal-dropdown { position: relative; }
.portal-dropdown > summary::-webkit-details-marker { display: none; }
.portal-dropdown > summary span { margin-left: 4px; color: var(--ink-dim); }
.portal-dropdown-panel { position: absolute; top: calc(100% + 10px); left: -22px; width: 330px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(14, 16, 23, .99); box-shadow: 0 30px 80px rgba(0, 0, 0, .58); }
.portal-dropdown-panel::before { position: absolute; inset: -18px 0 auto; height: 18px; content: ""; }
.portal-products a { display: block; padding: 13px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.portal-products a:hover,
.portal-feature-grid a:hover { background: rgba(255, 255, 255, .06); }
.portal-products strong { display: block; font-size: 1.03rem; }
.portal-products small { display: block; margin-top: 3px; color: var(--ink-dim); font-size: .82rem; }
.portal-features .portal-dropdown-panel { position: fixed; top: 75px; left: 50%; width: min(1180px, calc(100vw - 48px)); transform: translateX(-50%); }
.portal-feature-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; padding: 20px; }
.portal-feature-grid > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; align-content: start; }
.portal-feature-grid b { grid-column: 1 / -1; padding: 0 10px 9px; color: var(--gold); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.portal-feature-grid a { padding: 10px; border-radius: 8px; color: #e4e5e8; font-size: .9rem; text-decoration: none; }
.portal-nav-actions { display: flex; align-items: center; gap: 10px; }
.portal-nav-actions a { color: #d8d9de; padding: 9px 11px; font-size: .9rem; font-weight: 750; text-decoration: none; }
.portal-nav-actions a:last-child { padding: 10px 16px; border: 1px solid rgba(229, 184, 94, .55); border-radius: 999px; color: var(--gold-2); }
.portal-nav-actions a:last-child:hover { background: var(--gold); color: #090a0d; }
.portal-menu-toggle { display: none; border: 0; background: none; color: var(--ink); }
.portal-menu-toggle i { display: block; width: 22px; height: 1px; margin: 5px; background: currentColor; }
.portal-menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.acct-page,
.dl-page,
.pricing-page { min-height: calc(100vh - 76px); }
.acct-page,
.dl-page { padding-top: 54px; }
.signin-card,
.dl-card,
.tier-panel,
.acct-section,
.license-card { border-color: var(--line-2) !important; background: linear-gradient(145deg, rgba(23, 27, 37, .94), rgba(14, 16, 23, .98)) !important; }
.signin-card h2,
.dl-card h1 { font-size: 1.75rem !important; }
.signin-card p,
.dl-card p,
.acct-section p,
.license-card p { font-size: .94rem !important; }
.signin-card label { font-size: .78rem !important; }
.btn { min-height: 46px; font-size: .9rem !important; }
.footer { background: #08090d; border-top: 1px solid var(--line); }
.footer-bottom { font-size: .86rem; }

@media (max-width: 1120px) {
  .portal-nav-shell { gap: 18px; }
  .portal-primary-nav { gap: 15px; font-size: .88rem; }
  .portal-nav-actions a { font-size: .84rem; }
}

@media (max-width: 860px) {
  .portal-header { height: 68px; }
  .portal-nav-shell { width: min(100% - 28px, 1400px); grid-template-columns: 1fr auto auto; }
  .portal-menu-toggle { display: block; }
  .portal-primary-nav { display: none; position: fixed; inset: 68px 0 auto; width: 100%; max-height: calc(100vh - 68px); padding: 14px 18px 24px; overflow-y: auto; background: rgba(8, 9, 13, .99); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; justify-self: stretch; gap: 0; }
  .portal-primary-nav.open { display: flex; }
  .portal-primary-nav > a,
  .portal-dropdown > summary { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: .96rem; }
  .portal-dropdown-panel,
  .portal-features .portal-dropdown-panel { position: static; width: 100%; padding: 8px; transform: none; border-radius: 10px; box-shadow: none; }
  .portal-feature-grid,
  .portal-feature-grid > div { grid-template-columns: 1fr; }
  .portal-nav-actions a:first-child { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .portal-nav-actions a:last-child { padding: 8px 11px; font-size: .78rem; }
  .acct-wrap,
  .dl-wrap { padding-inline: 18px; }
  .signin-card,
  .dl-card { padding: 25px 20px !important; }
}
