:root {
  --j6-primary: #3b82f6;
  --j6-primary-2: #2563eb;
  --j6-text: #f8fafc;
  --j6-muted: rgba(248, 250, 252, .78);
  --j6-border: rgba(255, 255, 255, .16);
  --j6-glass: rgba(15, 23, 42, .58);
  --j6-glass-2: rgba(15, 23, 42, .72);
  --j6-shadow: 0 24px 80px rgba(2, 8, 23, .48);
  --j6-danger: #f87171;
  --j6-success: #4ade80;
}

.j6-license-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.j6-license-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.28), transparent 32%),
    radial-gradient(circle at bottom right, rgba(37,99,235,.20), transparent 28%),
    rgba(2, 8, 23, .66);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.j6-license-modal {
  position: relative;
  width: min(100%, 460px);
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid var(--j6-border);
  box-shadow: var(--j6-shadow);
  color: var(--j6-text);
  overflow: hidden;
}

.j6-license-glow {
  position: absolute;
  top: -90px;
  right: -90px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(59,130,246,.35), transparent 70%);
  pointer-events: none;
}

.j6-license-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  background: rgba(59,130,246,.16);
  color: #dbeafe;
  border: 1px solid rgba(147,197,253,.22);
}

.j6-license-header h2 {
  margin: 16px 0 10px;
  font-size: 31px;
  line-height: 1.1;
}

.j6-license-header p {
  margin: 0 0 20px;
  color: var(--j6-muted);
  line-height: 1.55;
}

.j6-license-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #dbeafe;
  margin-bottom: 8px;
}

.j6-license-input-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}

#j6SerialInput {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  color: #fff;
  border-radius: 16px;
  height: 54px;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  transition: .2s ease;
}

#j6SerialInput::placeholder { color: rgba(255,255,255,.50); }
#j6SerialInput:focus {
  border-color: rgba(96,165,250,.72);
  box-shadow: 0 0 0 4px rgba(59,130,246,.14);
  background: rgba(255,255,255,.09);
}

.j6-paste-btn,
.j6-activate-btn {
  border: 0;
  cursor: pointer;
  transition: transform .16s ease, opacity .16s ease, box-shadow .16s ease;
}

.j6-paste-btn {
  flex-shrink: 0;
  height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.12);
}

.j6-activate-btn {
  margin-top: 14px;
  width: 100%;
  height: 56px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--j6-primary), var(--j6-primary-2));
  box-shadow: 0 16px 36px rgba(37,99,235,.35);
  position: relative;
}

.j6-paste-btn:hover,
.j6-activate-btn:hover { transform: translateY(-1px); }
.j6-paste-btn:active,
.j6-activate-btn:active { transform: translateY(0); }

.btn-loader {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  display: inline-block;
  animation: j6-spin .8s linear infinite;
  vertical-align: middle;
}

@keyframes j6-spin { to { transform: rotate(360deg); } }

.j6-license-msg {
  margin-top: 14px;
  min-height: 22px;
  font-size: 14px;
  color: #dbeafe;
}
.j6-license-msg.error { color: #fecaca; }
.j6-license-msg.success { color: #bbf7d0; }

.j6-license-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: var(--j6-muted);
  font-size: 13px;
  line-height: 1.6;
}

.j6-license-domain strong { color: #fff; }

@media (max-width: 640px) {
  .j6-license-modal {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .j6-license-header h2 {
    font-size: 26px;
  }

  .j6-license-input-wrap {
    flex-direction: column;
  }

  .j6-paste-btn,
  #j6SerialInput {
    width: 100%;
  }
}
