.keys-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.keys-main { flex: 1; width: min(100%,900px); margin: 0 auto; padding: 170px 24px 90px; }
.keys-heading { margin-bottom: 40px; }
.keys-heading .eyebrow { margin-bottom: 18px; }
.keys-heading h1 { font-size: clamp(36px,5vw,56px); font-weight: 600; line-height: 1.1; letter-spacing: -.035em; }
.keys-heading p { color: var(--ink-mute); margin-top: 18px; font-size: 15px; line-height: 1.6; }
.keys-empty { padding: 58px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid #ffffff14; border-radius: 18px; background: #0f1218eb; }
.keys-empty svg { width: 44px; height: 44px; color: #7c98ba; margin-bottom: 24px; }
.keys-empty h2 { font-size: 19px; font-weight: 500; }
.keys-empty p { max-width: 340px; font-size: 13px; line-height: 1.7; color: var(--ink-mute); margin-top: 12px; }
.keys-empty .btn-white { margin-top: 28px; }
.keys-page nav [aria-current="page"] { border-color: #ffffff38; background: #ffffff19; }
.keys-page footer { position: relative; z-index: 1; }
@media (max-width:600px) { .keys-main { padding: 130px 20px 64px; } .keys-empty { padding: 40px 20px; } }

/* Licence cards */
.keys-page .key-licence { padding: 20px; border: 1px solid #ffffff16; border-radius: 12px; background: #101214; box-shadow: none; }
.key-card-heading,.key-code-row,.key-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.key-card-heading { align-items: flex-start; }
.key-identity h2 { color: #eceef0; font-size: 21px; line-height: 1.3; font-weight: 550; letter-spacing: -.02em; }
.key-plan { margin-top: 6px; color: #8c9198; font-size: 12px; line-height: 1.5; }
.key-status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: #a0a6ae; font-size: 11px; line-height: 1.5; margin-top: 4px; }
.key-status::before { content: ''; width: 5px; height: 5px; background: #787e87; border-radius: 50%; }
.key-status-active::before { background: #9fbbdf; }
.key-licence[data-status="expired"] .key-status::before,.key-licence[data-status="revoked"] .key-status::before { background: #787e87; }
.key-code-label { margin: 16px 0 6px; color: #8c9198; font-size: 11px; }
.key-code-row { padding: 7px 10px; gap: 14px; border: 1px solid #ffffff0e; border-radius: 7px; background: #0b0d0f; }
.key-code { min-width: 0; overflow-wrap: anywhere; color: #bdc6d3; font: 12px var(--mono); line-height: 1.8; }
.key-code-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.key-control { border: 0; border-radius: 4px; background: transparent; color: #a2a8b1; font-size: 11px; padding: 6px 8px; }
.key-control:hover { color: #eceef0; background: #ffffff08; }
.key-access { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 16px; margin-top: 14px; }
.key-time { display: block; color: #c5c9cf; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.key-activation-note { color: #7e858e; font-size: 11px; line-height: 1.7; margin-top: 5px; }
.key-card-footer { margin-top: 15px; padding-top: 13px; border-top: 1px solid #ffffff0c; }
.key-order { color: #737a84; font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.key-order-id { color: #9299a3; font-family: var(--mono); font-size: 10px; }
.key-download { margin-left: auto; flex: none; padding: 9px 16px; font-size: 12px; }
.key-download:disabled { opacity: .35; cursor: not-allowed; }
.key-licence button:focus-visible { outline: 2px solid #b4d2f7; outline-offset: 3px; }

@media (max-width:600px) {
  .keys-page .key-licence { padding: 18px; }
  .key-card-heading { gap: 12px; }
  .key-identity h2 { font-size: 20px; }
  .key-code-row { flex-wrap: wrap; gap: 6px; }
  .key-code-actions { margin-left: auto; }
  .key-card-footer { flex-wrap: wrap; gap: 16px; }
  .key-download { width: 100%; justify-content: center; }

}