[hidden] { display: none !important; }
.portal-header > a:nth-child(2) { margin-left: auto; color: var(--mid); }
.portal { padding-block: clamp(36px, 8vw, 96px); }
.portal-intro { margin-bottom: 28px; }
.portal h1 { margin: 12px 0; }
.portal h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 10px; }
.portal p { color: var(--mid); }
#status:not(:empty) { background: var(--panel); border-left: 3px solid var(--red); padding: 12px; }
.portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; align-items: start; }
.portal-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 4vw, 38px); }
#access { max-width: 500px; }
.portal form, #license-box { display: grid; gap: 10px; margin-top: 18px; }
.portal label { font-weight: 700; }
.portal input, .portal textarea {
  box-sizing: border-box; width: 100%; padding: 12px; border: 1px solid #665458;
  background: #100d0f; color: var(--ink); border-radius: 9px; font: inherit;
}
.portal .btn { white-space: normal; }
#purchase .btn { margin: 6px 4px 0 0; }
.access-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.access-actions [aria-pressed="true"] { border-color: var(--red); }
#profile-fields { display: grid; gap: 10px; }

#purchase h3 { margin: 24px 0 12px; }
.portal-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: 14px;
}
.portal-plan {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 10px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #100d0f;
}
.portal-plan-pro {
  border-color: var(--red);
  background: linear-gradient(145deg, #35151c, #100d0f 65%);
}
.portal-plan p, .portal-plan h4 { margin: 0; }
.portal-plan h4 { font-size: clamp(23px, 2.4vw, 30px); }
.portal-plan .plan-category {
  color: #ff777f;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.plan-price strong { color: var(--ink); font-size: 1.25rem; }
#purchase .portal-plan .btn { margin: 4px 0 0; justify-content: center; }
.portal-plan .btn:disabled { opacity: .66; cursor: default; }

#account { grid-template-columns: 1fr; }
#activation-fields, #company-field { display: grid; gap: 10px; }
#activation-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
#activation-fields:disabled { opacity: .65; }
#generate-license { justify-self: start; }

.portal-support { margin-top: 24px; }
.portal .portal-support-button {
  display: inline-flex;
  min-height: 58px;
  max-width: 100%;
  justify-content: center;
  padding: 14px 24px;
  background: #25d366;
  border: 1px solid #25d366;
  color: #09190f;
  font-size: 1rem;
  text-align: center;
}
.portal .portal-support-button:hover { background: #66e894; color: #09190f; }
