:root {
  color-scheme: dark;
  --bg: #0f141a;
  --bg-soft: #151b22;
  --panel: rgba(28, 35, 43, 0.9);
  --panel-strong: rgba(33, 41, 50, 0.96);
  --line: rgba(178, 194, 210, 0.15);
  --line-strong: rgba(65, 214, 226, 0.36);
  --text: #f6f1ea;
  --muted: #b9b3ab;
  --dim: #8a8580;
  --cyan: #39d6e4;
  --purple: #9c66ff;
  --green: #7ddf9d;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --max: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(156, 102, 255, 0.12), transparent 34rem),
    linear-gradient(225deg, rgba(57, 214, 228, 0.1), transparent 32rem),
    linear-gradient(180deg, #141a21 0%, var(--bg) 46%, #090d12 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 20, 26, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  height: 44px !important;
  max-height: 44px !important;
  overflow: hidden;
}

.brand-icon {
  width: 32px;
  height: 32px !important;
  max-height: 32px !important;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 0 10px rgba(57, 214, 228, 0.4));
}

.brand-text {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 950;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.header-actions,
.site-nav {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 24px;
}

.site-nav {
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--cyan);
}

.button,
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.nav-button,
.button-secondary {
  color: var(--text);
  background: rgba(30, 38, 46, 0.8);
}

.nav-button {
  color: var(--cyan);
  border-color: rgba(57, 214, 228, 0.32);
}

.button-primary {
  color: #071113;
  border-color: rgba(57, 214, 228, 0.58);
  background: linear-gradient(135deg, #4be8f0, var(--cyan));
  box-shadow: 0 12px 28px rgba(57, 214, 228, 0.2);
}

.button-secondary:hover,
.nav-button:hover {
  border-color: rgba(156, 102, 255, 0.48);
}

.button-primary:hover {
  box-shadow: 0 14px 34px rgba(57, 214, 228, 0.28);
}

.hero,
.section {
  scroll-margin-top: 96px;
}

.hero {
  padding: 88px 24px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: #9df7bd;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 600px;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.25;
}

.hero-text {
  max-width: 570px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.product-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(178, 194, 210, 0.17);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(33, 41, 50, 0.92), rgba(17, 22, 28, 0.92));
  box-shadow:
    var(--shadow),
    0 0 30px rgba(156, 102, 255, 0.12);
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.mock-window {
  overflow: hidden;
  border: 1px solid rgba(178, 194, 210, 0.14);
  border-radius: 6px;
  background: #10141b;
  font-size: 12px;
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(178, 194, 210, 0.1);
  background: #151b22;
}

.mock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.mock-dot-red {
  background: #ff5f56;
}

.mock-dot-yellow {
  background: #ffbd2e;
}

.mock-dot-green {
  background: #27c93f;
}

.mock-titlebar-label {
  margin-left: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.mock-body {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 92px;
  min-height: 260px;
}

.mock-sidebar {
  padding: 12px 8px;
  border-right: 1px solid rgba(178, 194, 210, 0.08);
  background: #0d1117;
}

.mock-sidebar-network {
  margin-bottom: 8px;
  color: var(--dim);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mock-sidebar-channel {
  padding: 6px 8px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.mock-sidebar-channel.is-active {
  color: var(--text);
  background: rgba(57, 214, 228, 0.14);
}

.mock-chat {
  display: grid;
  gap: 10px;
  padding: 14px 12px;
  background: #10141b;
}

.mock-message {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.mock-name {
  font-weight: 900;
}

.mock-badge {
  display: inline-flex;
  align-items: center;
  height: 15px;
  padding: 0 5px;
  border-radius: 3px;
  color: #071113;
  font-size: 8.5px;
  font-weight: 950;
}

.mock-badge-mod {
  background: #2d9b57;
}

.mock-badge-vip {
  background: #d5369b;
}

.mock-badge-sub {
  background: #5c7cfa;
  color: #fff;
}

.mock-emote {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: linear-gradient(135deg, #ffd56c, #ff9f6c);
  vertical-align: middle;
}

.mock-emote-alt {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
}

.mock-cheer {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #ff6ec7);
}

.mock-message-cheer {
  color: #cbb8ff;
  font-weight: 800;
}

.mock-userlist {
  padding: 12px 8px;
  border-left: 1px solid rgba(178, 194, 210, 0.08);
  background: #0d1117;
}

.mock-userlist-heading {
  margin-bottom: 8px;
  color: var(--dim);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.mock-user {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.mock-avatar {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.mock-avatar-2 {
  background: linear-gradient(135deg, var(--purple), #ff6ec7);
}

.mock-avatar-3 {
  background: linear-gradient(135deg, #3a86ff, var(--cyan));
}

@media (max-width: 560px) {
  .mock-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .mock-sidebar,
  .mock-userlist {
    display: none;
  }
}

.section {
  padding: 88px 24px;
}

.section > * {
  width: min(var(--max), 100%);
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.6;
}

.pricing-grid,
.feature-grid {
  display: grid;
  gap: 18px;
}

.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.download-card,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 38, 46, 0.9), rgba(21, 27, 34, 0.9));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.plan-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
}

.featured-plan {
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(57, 214, 228, 0.1), rgba(156, 102, 255, 0.08) 48%, transparent),
    linear-gradient(180deg, rgba(31, 39, 48, 0.94), rgba(21, 27, 34, 0.94));
}

.plan-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.plan-top p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.price {
  flex: 0 0 auto;
  color: var(--text);
  font-size: clamp(2rem, 3vw, 2.55rem);
  font-weight: 950;
  line-height: 1;
  text-align: right;
}

.price span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  min-height: 22px;
  padding-left: 28px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.check-list li::before {
  position: absolute;
  top: 0.05em;
  left: 0;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(125, 223, 157, 0.34);
  border-radius: 50%;
  color: var(--green);
  content: "✓";
  font-size: 0.72rem;
  font-weight: 950;
}

.plan-card .button {
  align-self: flex-start;
  margin-top: 22px;
}

.feature-card {
  min-height: 0;
  padding: 22px;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.feature-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  border: 1px solid rgba(57, 214, 228, 0.28);
  border-radius: var(--radius);
  color: var(--cyan);
  background: rgba(57, 214, 228, 0.07);
  font-weight: 950;
}

.compact-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.download-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 26px;
}

.download-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.download-card p:not(.eyebrow) {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 16px 18px;
  box-shadow: none;
}

.faq-list summary {
  cursor: pointer;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.35;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 38px;
  color: var(--dim);
  font-size: 0.95rem;
  font-weight: 800;
}

.site-footer a {
  color: var(--cyan);
}

.auth-page {
  display: grid;
  min-height: calc(100vh - 72px);
  padding: 88px 24px;
  place-items: center;
}

.auth-card {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(57, 214, 228, 0.08), rgba(156, 102, 255, 0.08)),
    var(--panel);
  box-shadow: var(--shadow);
}

.account-card {
  width: min(720px, 100%);
}

.auth-card h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.auth-copy,
.form-status {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 850;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(178, 194, 210, 0.2);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(11, 16, 22, 0.86);
  font: inherit;
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(57, 214, 228, 0.62);
  box-shadow: 0 0 0 3px rgba(57, 214, 228, 0.12);
}

.auth-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: #ffb4ae;
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.auth-switch a {
  color: var(--cyan);
  font-weight: 900;
}

.auth-admin-setup {
  margin-top: 10px;
  color: var(--dim);
  font-size: 0.9rem;
}

.admin-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.admin-panel > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 18, 24, 0.54);
}

.admin-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-panel strong {
  color: var(--text);
  font-size: 1.1rem;
}

.admin-page {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 88px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 16px;
}

.admin-hero h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.admin-hero p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-summary {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(57, 214, 228, 0.1), rgba(156, 102, 255, 0.08)),
    rgba(21, 27, 34, 0.86);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.admin-summary strong {
  overflow: hidden;
  color: var(--text);
  font-size: 1.2rem;
  text-overflow: ellipsis;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-stats article {
  padding: 16px;
  border: 1px solid rgba(178, 194, 210, 0.13);
  border-radius: var(--radius);
  background: rgba(21, 27, 34, 0.7);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.admin-stats strong {
  display: block;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
}

.admin-card-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 4px;
}

.admin-card-heading h2,
.license-list-header h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.admin-card-heading p:not(.eyebrow),
.license-list-header p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.license-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.twofa-card {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
  padding: 22px;
  overflow: hidden;
  border-color: rgba(178, 194, 210, 0.16);
  background:
    linear-gradient(135deg, rgba(57, 214, 228, 0.08), rgba(156, 102, 255, 0.07)),
    var(--panel);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
}

.twofa-card.is-enabled {
  border-color: rgba(125, 223, 157, 0.34);
}

.twofa-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.account-twofa-card .twofa-header {
  grid-template-columns: minmax(0, 1fr);
}

.account-twofa-card .twofa-badge {
  justify-self: start;
}

.twofa-header h2 {
  margin: 0;
  font-size: clamp(1.24rem, 2vw, 1.58rem);
}

.twofa-header p:not(.eyebrow) {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.twofa-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 199, 89, 0.28);
  border-radius: 999px;
  color: #ffd56c;
  background: rgba(255, 199, 89, 0.1);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.twofa-card.is-enabled .twofa-badge {
  border-color: rgba(125, 223, 157, 0.32);
  color: var(--green);
  background: rgba(125, 223, 157, 0.12);
}

.twofa-setup {
  display: grid;
  grid-template-columns: minmax(172px, 220px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(178, 194, 210, 0.14);
  border-radius: var(--radius);
  background: rgba(11, 16, 22, 0.32);
}

.twofa-qr-panel,
.twofa-manual-panel {
  min-width: 0;
  border: 1px solid rgba(178, 194, 210, 0.14);
  border-radius: var(--radius);
  background: rgba(21, 27, 34, 0.72);
}

.twofa-qr-panel {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 12px;
  text-align: center;
}

.twofa-qr-panel span,
.twofa-manual-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.twofa-manual-panel {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
}

.twofa-qr-wrap {
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.twofa-qr-wrap img {
  display: block;
  width: 150px;
  height: 150px;
}

.twofa-secret {
  display: block;
  max-width: 100%;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(57, 214, 228, 0.18);
  border-radius: var(--radius);
  color: var(--cyan);
  background: rgba(11, 16, 22, 0.72);
  font-size: 0.85rem;
  line-height: 1.45;
}

.twofa-actions {
  display: grid;
  grid-template-columns: minmax(140px, 180px) auto;
  gap: 10px;
  align-items: center;
}

.twofa-actions input {
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(178, 194, 210, 0.2);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(11, 16, 22, 0.86);
  font: inherit;
  text-align: center;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.twofa-card .form-status {
  min-height: 20px;
  margin: -4px 0 0;
}

.download-card .twofa-badge {
  border-color: rgba(57, 214, 228, 0.28);
  color: var(--cyan);
  background: rgba(57, 214, 228, 0.1);
}

.download-assets {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-asset {
  display: flex;
  align-items: center;
  gap: 10px;
}

.download-size {
  color: var(--muted);
  font-size: 0.85rem;
}

.download-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.download-notes {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(178, 194, 210, 0.14);
  border-radius: var(--radius);
  background: rgba(11, 16, 22, 0.32);
}

.download-notes pre {
  max-height: 220px;
  margin: 0;
  overflow-y: auto;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.download-history {
  display: grid;
  gap: 12px;
}

.download-history-toggle {
  justify-self: start;
}

.download-history-list {
  display: grid;
  gap: 10px;
}

.download-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(178, 194, 210, 0.14);
  border-radius: var(--radius);
  background: rgba(11, 16, 22, 0.32);
}

.download-history-meta {
  display: grid;
  gap: 2px;
}

.download-history-date {
  color: var(--muted);
  font-size: 0.85rem;
}

.download-history-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.license-form,
.license-list {
  padding: 24px;
}

.license-form {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 92px;
  background:
    radial-gradient(circle at top right, rgba(57, 214, 228, 0.12), transparent 36%),
    var(--panel);
}

.license-form .section-heading,
.license-list .section-heading {
  margin-bottom: 2px;
}

.license-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 850;
}

.field-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
}

.license-form input,
.license-form select,
.license-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(178, 194, 210, 0.2);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(11, 16, 22, 0.86);
  font: inherit;
}

.license-form textarea {
  min-height: 92px;
  padding-top: 12px;
  resize: vertical;
}

.license-form input:focus,
.license-form select:focus,
.license-form textarea:focus {
  outline: none;
  border-color: rgba(57, 214, 228, 0.62);
  box-shadow: 0 0 0 3px rgba(57, 214, 228, 0.12);
}

.duration-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}

.license-list-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(178, 194, 210, 0.12);
}

.license-table,
.version-table {
  display: grid;
  gap: 12px;
}

.required-update-form {
  display: flex !important;
  flex-wrap: wrap;
}

.required-update-form select,
.required-update-form input {
  min-height: 44px;
  min-width: 160px;
  flex: 1 1 160px;
  padding: 0 12px;
  border: 1px solid rgba(178, 194, 210, 0.2);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(11, 16, 22, 0.86);
  font: inherit;
}

.license-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 0.48fr) minmax(120px, 0.36fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(178, 194, 210, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent),
    rgba(13, 18, 24, 0.64);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.license-row:hover {
  border-color: rgba(57, 214, 228, 0.28);
  background-color: rgba(18, 25, 32, 0.82);
  transform: translateY(-1px);
}

.status-border-active {
  border-left: 3px solid rgba(125, 223, 157, 0.82);
}

.status-border-expired,
.status-border-revoked {
  border-left: 3px solid rgba(255, 130, 123, 0.82);
}

.license-code-block {
  min-width: 0;
}

.license-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 9px;
}

.license-type {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 900;
}

.license-row code {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.license-meta {
  min-width: 0;
}

.license-row strong {
  color: var(--text);
  font-size: 0.96rem;
}

.status-pill {
  display: inline-flex;
  min-height: 24px;
  padding: 0 10px;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: capitalize;
}

.status-active {
  color: #9df7bd;
  background: rgba(125, 223, 157, 0.12);
}

.status-expired,
.status-revoked {
  color: #ffb4ae;
  background: rgba(255, 130, 123, 0.12);
}

.license-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.license-actions .button {
  min-height: 34px;
  padding-inline: 10px;
  font-size: 0.84rem;
}

.license-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-state {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(178, 194, 210, 0.2);
  border-radius: var(--radius);
  color: var(--muted);
}

.form-status.is-ok {
  color: #9df7bd;
}

@media (max-width: 960px) {
  .hero,
  .section {
    padding: 72px 20px;
  }

  .pricing-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    max-width: 760px;
  }

  .admin-hero,
  .license-layout {
    grid-template-columns: 1fr;
  }

  .license-form {
    position: static;
  }

  .twofa-setup {
    grid-template-columns: 1fr;
  }

  .twofa-actions {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .license-row {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.45fr);
  }

  .license-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 0 16px;
  }

  .site-nav {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .brand-text {
    font-size: 1rem;
  }

  .header-actions {
    gap: 12px;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 88px;
  }

  .hero,
  .section {
    padding: 56px 16px;
  }

  h1 {
    font-size: clamp(2rem, 8.8vw, 2.25rem);
  }

  h2 {
    font-size: clamp(1.72rem, 7vw, 2rem);
  }

  .hero-actions,
  .hero-actions .button,
  .download-card .button,
  .plan-card .button {
    width: 100%;
  }

  .plan-top,
  .download-card,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .price {
    text-align: left;
  }

  .plan-card,
  .feature-card,
  .download-card {
    padding: 20px;
  }

  .compact-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .site-footer {
    width: calc(100% - 32px);
  }

  .auth-page {
    padding: 56px 16px;
  }

  .auth-card {
    padding: 22px;
  }

  .admin-panel {
    grid-template-columns: 1fr;
  }

  .admin-page {
    width: calc(100% - 32px);
    padding: 56px 0;
  }

  .license-list-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-stats,
  .license-row {
    grid-template-columns: 1fr;
  }

  .admin-stats article,
  .license-form,
  .license-list {
    padding: 18px;
  }

  .license-actions,
  .license-actions .button {
    width: 100%;
  }
}
