.license-page {
  background:
    radial-gradient(circle at 78% 10%, rgba(139,92,246,.14), transparent 28rem),
    radial-gradient(circle at 12% 70%, rgba(249,115,22,.055), transparent 26rem),
    var(--black);
}

.license-shell {
  min-height: calc(100vh - 150px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 132px 24px 96px;
}

.license-lookup {
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
  align-items: center;
  gap: clamp(3rem, 9vw, 8rem);
}

.license-lookup-copy h1,
.license-dashboard-head h1 {
  font-size: clamp(3.6rem, 6.8vw, 6.6rem);
  line-height: .92;
  letter-spacing: -.062em;
}

.license-lookup-copy > p:not(.page-kicker) {
  max-width: 650px;
  margin: 1.8rem 0 0;
  color: #aaa7b1;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.72;
}

.license-trust-list {
  margin-top: 3rem;
  display: grid;
  gap: .7rem;
}

.license-trust-list span {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: #c6c3cd;
  font-size: .88rem;
}

.license-trust-list i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139,92,246,.25);
  border-radius: .45rem;
  color: var(--purple-light);
  background: rgba(139,92,246,.07);
  font: normal .58rem var(--mono);
}

.license-access-card {
  position: relative;
  padding: clamp(1.8rem, 4vw, 2.75rem);
  border: 1px solid rgba(188,165,255,.22);
  border-radius: 1.1rem;
  background: linear-gradient(145deg, rgba(24,21,36,.97), rgba(12,11,18,.98));
  box-shadow: 0 38px 100px rgba(0,0,0,.45), 0 0 70px rgba(139,92,246,.07);
  overflow: hidden;
}

.license-access-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -150px;
  right: -90px;
  border-radius: 50%;
  background: rgba(139,92,246,.15);
  filter: blur(24px);
}

.license-key-symbol {
  width: 54px;
  height: 54px;
  margin-bottom: 1.4rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(188,165,255,.26);
  border-radius: .75rem;
  color: var(--purple-light);
  background: rgba(139,92,246,.11);
}

.license-key-symbol svg { width: 29px; }
.card-eyebrow, .panel-kicker { margin: 0 0 .45rem; color: #777482; font: .61rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.license-access-card h2 { font-size: clamp(1.85rem, 3vw, 2.45rem); letter-spacing: -.04em; }
.access-card-copy { margin: .75rem 0 1.75rem; color: #918e9a; font-size: .85rem; line-height: 1.65; }
.access-card-copy strong { color: #c9c6d0; font-weight: 500; }
.license-form label { display: block; margin-bottom: .55rem; color: #d8d5df; font-size: .78rem; font-weight: 600; }

.license-input-wrap { position: relative; }
.license-input-wrap input,
.add-domain-controls input {
  width: 100%;
  height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: .65rem;
  outline: none;
  color: var(--white);
  background: rgba(255,255,255,.025);
  font: .8rem var(--mono);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.license-input-wrap input { padding: 0 3rem 0 1rem; letter-spacing: .04em; }
.license-input-wrap input:focus,
.add-domain-controls input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139,92,246,.12); background: rgba(139,92,246,.03); }
.license-input-wrap input::placeholder { color: #5e5a68; }
.input-clear { position: absolute; right: .7rem; top: 50%; width: 32px; height: 32px; transform: translateY(-50%); border: 0; border-radius: .4rem; color: #777482; background: transparent; font-size: 1.2rem; cursor: pointer; opacity: 0; pointer-events: none; }
.license-input-wrap.has-value .input-clear { opacity: 1; pointer-events: auto; }
.input-clear:hover { color: var(--white); background: rgba(255,255,255,.05); }
.form-error, .domain-error { min-height: 1.3rem; margin: .4rem 0 0; color: #ff9f67; font-size: .72rem; }
.license-submit { width: 100%; margin-top: .5rem; border: 0; cursor: pointer; }
.license-submit b { margin-left: auto; font-size: 1.1rem; }

.license-help-row { margin-top: 1.35rem; padding-top: 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); color: #75727e; font-size: .74rem; }
.license-help-row a { color: #c8b8fa; text-decoration: none; }
.privacy-note { margin: 1rem 0 0; display: flex; align-items: center; gap: .5rem; color: #5f5c67; font-size: .68rem; }
.privacy-note svg { width: 16px; flex: 0 0 auto; }

.license-loading { min-height: 650px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.license-loading[hidden] { display: none; }
.license-loading h1 { margin-top: 1.5rem; font-size: clamp(2.2rem, 5vw, 4rem); }
.license-loading p { margin: .6rem 0 0; color: #87838f; }
.loading-mark { width: 76px; height: 76px; position: relative; border: 1px solid rgba(139,92,246,.25); border-radius: 50%; animation: license-spin 1.6s linear infinite; }
.loading-mark span { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 16px var(--purple); }
.loading-mark span:nth-child(1) { top: -4px; left: 33px; }
.loading-mark span:nth-child(2) { right: 4px; bottom: 11px; background: var(--orange); box-shadow: 0 0 16px var(--orange); }
.loading-mark span:nth-child(3) { left: 5px; bottom: 12px; opacity: .45; }
@keyframes license-spin { to { transform: rotate(360deg); } }

.license-dashboard { animation: dashboard-in .45s ease both; }
.license-dashboard[hidden] { display: none; }
@keyframes dashboard-in { from { opacity: 0; transform: translateY(10px); } }
.preview-banner { margin: -1rem 0 1.5rem; padding: .8rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid rgba(249,115,22,.25); border-radius: .65rem; background: rgba(249,115,22,.07); color: #bcb8c3; font-size: .74rem; }
.preview-banner[hidden] { display: none; }
.preview-banner div { display: flex; flex-wrap: wrap; gap: .35rem .7rem; }
.preview-banner strong { color: #ffb17b; }
.preview-banner code { color: #ffd1b2; font-family: var(--mono); }
.preview-banner button { border: 0; color: #928d98; background: transparent; font-size: 1.15rem; cursor: pointer; }

.license-dashboard-head { margin-bottom: 2.3rem; display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.license-dashboard-head h1 { font-size: clamp(3.1rem, 6vw, 5.6rem); }
.back-link { display: inline-block; margin-bottom: 1.4rem; color: #777482; text-decoration: none; font-size: .74rem; }
.back-link:hover { color: var(--white); }
.dashboard-key { min-width: 250px; padding: .9rem 1rem; display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; border: 1px solid var(--line); border-radius: .65rem; background: rgba(255,255,255,.02); }
.dashboard-key span { grid-column: 1 / -1; color: #6f6c77; font: .58rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.dashboard-key strong { color: #c9c4d2; font: .74rem var(--mono); letter-spacing: .04em; }
.dashboard-key button { border: 0; color: var(--purple-light); background: transparent; font: .62rem var(--mono); cursor: pointer; }

.license-status-card { padding: 1.4rem; display: grid; grid-template-columns: minmax(250px, .85fr) 1.65fr auto; align-items: center; gap: 1.5rem; border: 1px solid rgba(188,165,255,.2); border-radius: .9rem; background: linear-gradient(125deg, rgba(139,92,246,.11), rgba(255,255,255,.018) 40%, rgba(249,115,22,.035)); }
.status-product { display: flex; align-items: center; gap: 1rem; }
.product-monogram { width: 62px; height: 62px; flex: 0 0 auto; display: grid; place-items: center; border-radius: .75rem; color: var(--white); background: linear-gradient(145deg, var(--purple), #6135ca); font: 700 .82rem var(--display); box-shadow: 0 14px 35px rgba(139,92,246,.24); }
.status-product span { color: #7d7986; font-size: .66rem; }
.status-product h2 { margin: .1rem 0; font-size: 1.18rem; }
.status-product p { margin: 0; color: #aaa6b1; font-size: .7rem; }
.status-metrics { display: grid; grid-template-columns: repeat(4, minmax(92px, 1fr)); border-left: 1px solid var(--line); }
.status-metrics > div { min-height: 55px; padding: .15rem 1rem; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.status-metrics span { color: #6f6b77; font-size: .61rem; }
.status-metrics strong { margin-top: .25rem; color: #d9d6df; font-family: var(--display); font-size: .82rem; }
.status-metrics strong b { font: inherit; }
.status-active { display: flex; align-items: center; gap: .4rem; color: #c9bbfa !important; }
.status-active i { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 10px var(--purple); }
.status-actions { display: flex; gap: .6rem; }
.status-actions .button { min-height: 42px; padding: .65rem .85rem; border: 0; white-space: nowrap; cursor: pointer; }
.status-actions .button-quiet { border: 1px solid var(--line); background: transparent; }

.license-dashboard-grid { margin-top: 1rem; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(285px, .65fr); gap: 1rem; align-items: start; }
.portal-panel { border: 1px solid var(--line); border-radius: .85rem; background: rgba(14,13,21,.84); }
.domains-panel { padding: clamp(1.25rem, 2.7vw, 2rem); }
.panel-head { display: flex; justify-content: space-between; gap: 1.5rem; align-items: start; }
.panel-head h2 { font-size: 1.55rem; letter-spacing: -.035em; }
.usage-chip { padding: .35rem .55rem; border: 1px solid rgba(139,92,246,.22); border-radius: 999px; color: #a899cb; background: rgba(139,92,246,.06); font: .62rem var(--mono); }
.usage-chip b { color: #d1c4fb; font: inherit; }
.usage-track { height: 3px; margin: 1.35rem 0 1.1rem; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.06); }
.usage-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), var(--orange)); transition: width .5s ease; }
.domain-list { display: grid; }
.domain-row { min-height: 70px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: .85rem; border-top: 1px solid var(--line); }
.domain-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: .5rem; color: #9a8bc0; background: rgba(139,92,246,.05); }
.domain-icon svg { width: 17px; }
.domain-copy { min-width: 0; }
.domain-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; color: #dfdce4; font-size: .8rem; white-space: nowrap; }
.domain-copy span { color: #696672; font-size: .65rem; }
.domain-badge { color: #9c8bc5; font: .58rem var(--mono); text-transform: uppercase; }
.domain-action { padding: .35rem .55rem; border: 1px solid transparent; border-radius: .4rem; color: #777482; background: transparent; font: .62rem var(--mono); cursor: pointer; }
.domain-action:hover { color: #ffae7d; border-color: rgba(249,115,22,.25); background: rgba(249,115,22,.05); }
.domain-empty { padding: 2.4rem 1rem; border-top: 1px solid var(--line); color: #777482; text-align: center; font-size: .8rem; }

.add-domain-form { margin-top: .9rem; padding-top: 1.3rem; display: grid; grid-template-columns: minmax(180px, .75fr) minmax(260px, 1.25fr); gap: 1.2rem; border-top: 1px solid var(--line); }
.add-domain-form label { color: #dedbe4; font-family: var(--display); font-size: .9rem; font-weight: 600; }
.add-domain-form p:not(.domain-error) { margin: .15rem 0 0; color: #6b6873; font-size: .65rem; }
.add-domain-controls { display: grid; grid-template-columns: 1fr auto; }
.add-domain-controls input { height: 43px; padding: 0 .8rem; border-radius: .55rem 0 0 .55rem; font-family: var(--body); font-size: .76rem; }
.add-domain-controls button { padding: 0 .9rem; border: 0; border-radius: 0 .55rem .55rem 0; color: white; background: var(--purple); font-size: .7rem; font-weight: 600; cursor: pointer; }
.add-domain-form .domain-error { grid-column: 2; margin-top: -1rem; }

.portal-sidebar { display: grid; gap: 1rem; }
.subscription-panel, .support-panel { padding: 1.35rem; }
.detail-list { margin: 1.1rem 0; }
.detail-list div { padding: .62rem 0; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); }
.detail-list dt { color: #706d78; font-size: .68rem; }
.detail-list dd { margin: 0; color: #c8c5ce; font-size: .7rem; text-align: right; }
.renew-state { display: inline-flex; align-items: center; gap: .35rem; color: #b8a8e7; }
.renew-state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--purple); }
.renew-state.off { color: #8b8793; }
.renew-state.off::before { background: #68646f; }
.text-action { width: 100%; padding: .75rem 0 0; display: flex; justify-content: space-between; border: 0; border-top: 1px solid var(--line); color: #c4b7ec; background: transparent; font-size: .7rem; cursor: pointer; }
.support-panel { position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(139,92,246,.12), rgba(249,115,22,.045)); }
.support-icon { width: 32px; height: 32px; margin-bottom: 1.2rem; display: grid; place-items: center; border: 1px solid rgba(188,165,255,.24); border-radius: 50%; color: var(--purple-light); font: .7rem var(--mono); }
.support-panel h2 { font-size: 1.15rem; }
.support-panel p { margin: .45rem 0 1rem; color: #85818e; font-size: .72rem; }
.support-panel a { color: var(--purple-light); text-decoration: none; font-size: .7rem; }

.license-security-note { margin-top: 1rem; padding: 1rem 1.15rem; display: flex; align-items: center; gap: .85rem; border: 1px solid var(--line); border-radius: .7rem; color: #777482; background: rgba(255,255,255,.012); }
.license-security-note svg { width: 25px; flex: 0 0 auto; color: #7f70a6; }
.license-security-note div { display: flex; flex-wrap: wrap; gap: .25rem .7rem; font-size: .68rem; }
.license-security-note strong { color: #aaa6b1; }
.license-toast { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 80; max-width: 360px; padding: .8rem 1rem; border: 1px solid rgba(188,165,255,.25); border-radius: .6rem; color: #e3dff0; background: #171421; box-shadow: 0 18px 50px rgba(0,0,0,.45); font-size: .75rem; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s; }
.license-toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .license-status-card { grid-template-columns: 1fr 1.6fr; }
  .status-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 1rem; border-top: 1px solid var(--line); }
  .license-dashboard-grid { grid-template-columns: 1fr; }
  .portal-sidebar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .license-shell { padding-top: 108px; }
  .license-lookup { min-height: auto; grid-template-columns: 1fr; gap: 3rem; }
  .license-lookup-copy { text-align: center; }
  .license-lookup-copy > p:not(.page-kicker) { margin-left: auto; margin-right: auto; }
  .license-trust-list { max-width: 360px; margin-left: auto; margin-right: auto; text-align: left; }
  .license-dashboard-head { align-items: start; flex-direction: column; gap: 1.5rem; }
  .dashboard-key { width: 100%; }
  .license-status-card { grid-template-columns: 1fr; }
  .status-metrics { border: 1px solid var(--line); border-radius: .55rem; overflow: hidden; }
  .status-actions { grid-column: auto; }
  .portal-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .license-shell { padding-left: 16px; padding-right: 16px; }
  .license-lookup-copy h1 { font-size: clamp(3.1rem, 16vw, 4.5rem); }
  .license-access-card { padding: 1.4rem; }
  .license-help-row { align-items: flex-start; flex-direction: column; }
  .status-metrics { grid-template-columns: 1fr 1fr; }
  .status-metrics > div:nth-child(2) { border-right: 0; }
  .status-metrics > div { padding: .8rem; border-bottom: 1px solid var(--line); }
  .status-metrics > div:nth-child(n+3) { border-bottom: 0; }
  .status-actions { flex-direction: column; }
  .domain-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .domain-badge { display: none; }
  .add-domain-form { grid-template-columns: 1fr; }
  .add-domain-form .domain-error { grid-column: 1; margin-top: -1rem; }
  .add-domain-controls { grid-template-columns: 1fr; gap: .5rem; }
  .add-domain-controls input, .add-domain-controls button { height: 44px; border-radius: .5rem; }
  .preview-banner { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .license-dashboard, .loading-mark { animation: none; }
  .usage-track span, .license-toast { transition: none; }
}
